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;width:{{{2|auto}}}">{{{1}}}</div></includeonly><noinclude>
<includeonly><div class="image-resize{{#if:{{{height|}}}|-height}}" style="display:inline-block;{{#if:{{{2|}}}|width:{{{2}}};}}{{#if:{{{height|}}}|height:{{{height}}}}}">{{{1}}}</div></includeonly><noinclude>
Used to resize an external image. Usage:
Used to resize external images.  
*Parameter 1: Image URL
 
*Parameter 2: Desired image width, e.g. <code>50px</code>
=== Based on width ===
<pre>{{external image|https://www.porplemontage.com/porple.png|50px}}</pre>
{{external image|https://www.porplemontage.com/porple.png|50px}}
 
=== Based on height ===
<pre>{{external image|https://www.porplemontage.com/porple.png|height=100px}}</pre>
{{external image|https://www.porplemontage.com/porple.png|height=100px}}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 15:42, April 9, 2021

Used to resize external images.

Based on width

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

Based on height

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