Template:Squared icon: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (→Usage) |
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}}} | <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: | |||
</noinclude> | [[Category:Formatting templates]]</noinclude> |
Latest revision as of 12:22, October 25, 2024
Usage
{{squared icon|SMB Super Mario Sprite.png}}
makes:
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)