Editing Template:Clean image/doc

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 17: Line 17:


===Examples===
===Examples===
To be practical the results will be as if <code><nowiki>|image=[[File:Bucket.png|100px|link=abyssal whip]]</nowiki></code> as the input.
To be practical the results will be as if <code><nowiki>|image=[[File:Basic bacon.png|100px|link=abyssal whip]]</nowiki></code> as the input.


{| class="wikitable"
{| class="wikitable"
Line 28: Line 28:
| Just clean
| Just clean
| <pre>{{clean image|file={{{image}}}}}</pre>
| <pre>{{clean image|file={{{image}}}}}</pre>
| {{clean image|file=[[File:Bucket.png|100px|link=pirate]]}}
| {{clean image|file=[[File:Basic bacon.png|100px|link=pirate]]}}
| Should result in
| Should result in
<pre>[[File:{FILENAME}]]</pre>
<pre>[[File:{FILENAME}]]</pre>
Line 35: Line 35:
| Clean + width
| Clean + width
| <pre>{{clean image|file={{{image}}}|width=50}}</pre>
| <pre>{{clean image|file={{{image}}}|width=50}}</pre>
| {{clean image|file=[[File:Bucket.png|100px|link=pirate]]|width=50}}
| {{clean image|file=[[File:Basic bacon.png|100px|link=pirate]]|width=50}}
| Should result in
| Should result in
<pre>[[File:{FILENAME}|{WIDTH}px]]</pre>
<pre>[[File:{FILENAME}|{WIDTH}px]]</pre>
Line 41: Line 41:
| Clean + height
| Clean + height
| <pre>{{clean image|file={{{image}}}|height=20}}</pre>
| <pre>{{clean image|file={{{image}}}|height=20}}</pre>
| {{clean image|file=[[File:Bucket.png|100px|link=pirate]]|height=20}}
| {{clean image|file=[[File:Basic bacon.png|100px|link=pirate]]|height=20}}
| Should result in
| Should result in
<pre>[[File:{FILENAME}|x{HEIGHT}px]]</pre>
<pre>[[File:{FILENAME}|x{HEIGHT}px]]</pre>
Line 50: Line 50:
{{clean image|file={{{image}}}|width=11|height=50}}
{{clean image|file={{{image}}}|width=11|height=50}}
{{clean image|file={{{image}}}|width=66|height=66}}</pre>
{{clean image|file={{{image}}}|width=66|height=66}}</pre>
|<poem>{{clean image|file=[[File:Bucket.png|100px|link=pirate]]|width=44|height=20}}
|<poem>{{clean image|file=[[File:Basic bacon.png|100px|link=pirate]]|width=44|height=20}}
{{clean image|file=[[File:Bucket.png|100px|link=pirate]]|width=11|height=50}}
{{clean image|file=[[File:Basic bacon.png|100px|link=pirate]]|width=11|height=50}}
{{clean image|file=[[File:Bucket.png|100px|link=pirate]]|width=66|height=60}}</poem>
{{clean image|file=[[File:Basic bacon.png|100px|link=pirate]]|width=66|height=60}}</poem>
| Should result in
| Should result in
<pre>[[File:{FILENAME}|{WIDTH}x{HEIGHT}px]]</pre>
<pre>[[File:{FILENAME}|{WIDTH}x{HEIGHT}px]]</pre>
Remember that height is still a maximum limit here. The size will be {WIDTH}px wide unless this makes the height more than {HEIGHT}px, in which case it is sized down to {HEIGHT}px tall. Aspect ratio is always kept.
Remember that height is still a maximum limit here. The size will be {WIDTH}px wide unless this makes the height more than {HEIGHT}px, in which case it is sized down to {HEIGHT}px tall. Aspect ratio is always kept.


Bucket.png is 22px wide and 30px tall. In the first use it is trying to resize to twice as wide but the maximum height of 20px forces it to resize down to 15x20px. The second use it successfully resizes down to half as wide, 11x15px. The third use is trying to go thrice as wide but the height limit only allows it to go twice as tall, so is 44x60px.
Basic bacon.png is 22px wide and 30px tall. In the first use it is trying to resize to twice as wide but the maximum height of 20px forces it to resize down to 15x20px. The second use it successfully resizes down to half as wide, 11x15px. The third use is trying to go thrice as wide but the height limit only allows it to go twice as tall, so is 44x60px.
|-
|-
| Clean + link
| Clean + link
| <pre>{{clean image|file={{{image}}}|link=Sturlet}}</pre>
| <pre>{{clean image|file={{{image}}}|link=Sturlet}}</pre>
| {{clean image|file=[[File:Bucket.png|100px|link=pirate]]|link=Sturlet}}
| {{clean image|file=[[File:Basic bacon.png|100px|link=pirate]]|link=Sturlet}}
| Should result in
| Should result in
<pre>[[File:{FILENAME}|link={LINK}]]</pre>
<pre>[[File:{FILENAME}|link={LINK}]]</pre>
Line 67: Line 67:
| Clean + link suppress
| Clean + link suppress
| <pre>{{clean image|file={{{image}}}|link=no}}</pre>
| <pre>{{clean image|file={{{image}}}|link=no}}</pre>
| {{clean image|file=[[File:Bucket.png|100px|link=pirate]]|link=no}}
| {{clean image|file=[[File:Basic bacon.png|100px|link=pirate]]|link=no}}
| Should result in
| Should result in
<pre>[[File:{FILENAME}|link=]]</pre>
<pre>[[File:{FILENAME}|link=]]</pre>
Line 73: Line 73:
| Clean + alignment
| Clean + alignment
| <pre>{{clean image|file={{{image}}}|align=right}}</pre>
| <pre>{{clean image|file={{{image}}}|align=right}}</pre>
| {{clean image|file=[[File:Bucket.png]]|align=right}}
| {{clean image|file=[[File:Basic bacon.png]]|align=right}}
| Should result in
| Should result in
<pre>[[File:{FILENAME}|align=right]]</pre>
<pre>[[File:{FILENAME}|align=right]]</pre>
Please note that all contributions to Brighter Shores Wiki are considered to be released under the CC BY-NC-SA 3.0 (see Brighter Shores:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template