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{{#if:{{{height|}}}|-height}}" style="display:inline-block;{{#if:{{{2|{{{width|}}}}}}|width:{{{2|{{{width}}}}}};}}{{#if:{{{height|}}}|height:{{{height}}};}}">{{{1}}}</div></includeonly><noinclude>
<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.


=== Based on width ===
=== Fit to square ===
<pre>{{external image|https://www.porplemontage.com/porple.png|50px}}</pre>
<pre>{{external image|https://www.porplemontage.com/porple.png|100px}}</pre>
{{external image|https://www.porplemontage.com/porple.png|50px}}
{{external image|https://www.porplemontage.com/porple.png|100px}}


=== Based on height ===
=== 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}}
porple.png

Resize to width

{{external image|https://www.porplemontage.com/porple.png|width=50px}}
porple.png

Resize to height

{{external image|https://www.porplemontage.com/porple.png|height=100px}}
porple.png