Template:Squared icon: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><span style="height:{{{size|32px}}};overflow:hidden;display:inline-block;vertical-align:middle">[[File:{{{1|{{{image|}}}}}}|{{#if:{{{link|}}}|link={{{link}}}|}}|{{#if:{{{name|}}}|{{{name|{{{link|}}}}}}|}}||{{{image-size|{{{size|32px}}}}}}]]</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}}


There are a few available parameters:
There are a few available parameters:
*'''<code>image</code>'''(same as blank parameter)
*'''<code>image</code>''' (same as blank parameter)
*'''<code>size</code>''' (<tt>32px</tt> by default)
*'''<code>size</code>''' (<tt>32px</tt> by default)
*'''<code>link</code>''' (no link by default)
*'''<code>link</code>''' (no link by default)
*'''<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)