Template:Squared icon: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
 
Line 1: Line 1:
<includeonly><span style="height:{{{size|32px}}};overflow:hidden;display:inline-block;vertical-align:middle">[[File:{{{1|{{{image|}}}}}}|{{{image-size|{{{size|32px}}}}}}|{{#if:{{{link|}}}|link={{{link}}}|}}|{{#if:{{{name|}}}|{{{name|{{{link|}}}}}}|}}]]</span></includeonly><noinclude>
<includeonly><span style="height:{{{size|32px}}};overflow:hidden;display:inline-block;vertical-align:middle">[[File:{{{1|{{{image|}}}}}}|{{{image-size|{{{size|32px}}}}}}|{{#if:{{{link|}}}|link={{{link}}}}}|{{#if:{{{name|}}}|{{{name}}}}}]]</span></includeonly><noinclude>
==Usage==
==Usage==
<code><nowiki>{{squared icon|SMB Super Mario Sprite.png}}</nowiki></code> makes: {{squared icon|SMB Super Mario Sprite.png}}
<code><nowiki>{{squared icon|SMB Super Mario Sprite.png}}</nowiki></code> makes: {{squared icon|SMB Super Mario Sprite.png}}
Line 9: Line 9:
*'''<code>name</code>''' (same as <tt>link</tt> by default)
*'''<code>name</code>''' (same as <tt>link</tt> by default)
*'''<code>image-size</code>''' (same as <tt>size</tt> parameter by default, can be different from <tt>size</tt> if desired)
*'''<code>image-size</code>''' (same as <tt>size</tt> parameter by default, can be different from <tt>size</tt> if desired)
[[Category:Content templates]]
 
</noinclude>
[[Category:Formatting templates]]</noinclude>

Latest revision as of 12:22, October 25, 2024

Usage

{{squared icon|SMB Super Mario Sprite.png}} makes: Super Mario's sprite from Super Mario Bros.

There are a few available parameters:

  • image (same as blank parameter)
  • size (32px by default)
  • link (no link by default)
  • name (same as link by default)
  • image-size (same as size parameter by default, can be different from size if desired)