Template:External image: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
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="resize {{{class|}}}" style="display:inline-block;width:{{{2|auto}}};height:{{{3|auto}}}">{{{1|}}}</div></includeonly><noinclude>
Used to resize external images.
Use this template to resize external images for [[SmashWiki:User pages|user pages]] or [[SmashWiki:April Fools'|April Fools']]. Format:


=== Based on width ===
<pre>{{external image|URL|width|height}}</pre>
<pre>{{external image|https://www.porplemontage.com/porple.png|50px}}</pre>
{{external image|https://www.porplemontage.com/porple.png|50px}}


=== Based on height ===
=== Resize options ===
<pre>{{external image|https://www.porplemontage.com/porple.png|height=100px}}</pre>
* Resize to width: <code><nowiki>{{external image|https://www.porplemontage.com/porple.png|50px}}</nowiki></code>
{{external image|https://www.porplemontage.com/porple.png|height=100px}}
* Resize to height: <code><nowiki>{{external image|https://www.porplemontage.com/porple.png|auto|100px}}</nowiki></code>
* Fit to square: <code><nowiki>{{external image|https://www.porplemontage.com/porple.png|100px|100px}}</nowiki></code>


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

Latest revision as of 12:05, March 24, 2024

Use this template to resize external images for user pages or April Fools'. Format:

{{external image|URL|width|height}}

Resize options

  • 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}}