Template:External image: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div class="image-resize | <includeonly><div class="image-resize" style="display:inline-block;{{#if:{{{width|{{{2|}}}}}}|width:{{{width|{{{2}}}}}};}}{{#if:{{{height|{{{2|}}}}}}|height:{{{height|{{{2}}}}}};}}">{{{1}}}</div></includeonly><noinclude> | ||
Used to resize external images. | Used to resize external images. | ||
=== | === Fit to square === | ||
<pre>{{external image|https://www.porplemontage.com/porple.png| | <pre>{{external image|https://www.porplemontage.com/porple.png|100px}}</pre> | ||
{{external image|https://www.porplemontage.com/porple.png| | {{external image|https://www.porplemontage.com/porple.png|100px}} | ||
=== | === Resize to width === | ||
<pre>{{external image|https://www.porplemontage.com/porple.png|width=50px}}</pre> | |||
{{external image|https://www.porplemontage.com/porple.png|width=50px}} | |||
=== Resize to height === | |||
<pre>{{external image|https://www.porplemontage.com/porple.png|height=100px}}</pre> | <pre>{{external image|https://www.porplemontage.com/porple.png|height=100px}}</pre> | ||
{{external image|https://www.porplemontage.com/porple.png|height=100px}} | {{external image|https://www.porplemontage.com/porple.png|height=100px}} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 16:07, April 9, 2021
Used to resize external images.
Fit to square
{{external image|https://www.porplemontage.com/porple.png|100px}}
Resize to width
{{external image|https://www.porplemontage.com/porple.png|width=50px}}
Resize to height
{{external image|https://www.porplemontage.com/porple.png|height=100px}}