Template:Squared icon: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
(Created page with "<includeonly><div style="height:{{{size|32px}}};overflow:hidden;display:inline-block;vertical-align:middle">[[File:{{{image}}}|{{#if:{{{link|}}}|link={{{link}}}|}}|{{{image-size|{{{size|32px}}}}}}]]</div></includeonly><noinclude> ==Usage== <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: *'''image''' *'''size''' *'''link''' *'''image-size''' Category:Conte...")
 
mNo edit summary
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><div style="height:{{{size|32px}}};overflow:hidden;display:inline-block;vertical-align:middle">[[File:{{{image}}}|{{#if:{{{link|}}}|link={{{link}}}|}}|{{{image-size|{{{size|32px}}}}}}]]</div></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:
*'''image'''
*'''<code>image</code>''' (same as blank parameter)
*'''size'''
*'''<code>size</code>''' (<tt>32px</tt> by default)
*'''link'''
*'''<code>link</code>''' (no link by default)
*'''image-size'''
*'''<code>name</code>''' (same as <tt>link</tt> by default)
[[Category:Content templates]]
*'''<code>image-size</code>''' (same as <tt>size</tt> parameter by default, can be different from <tt>size</tt> if desired)
</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)