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