This high-risk/high-traffic page is protected.

Template:Head: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(why was this not done)
m (Text replacement - "\[\[(:)?Image:" to "[[$1File:")
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>[[Image:{{NameToIcon|{{{c|{{{1}}}}}}}}Head{{#if:{{{g|}}}|{{{g}}}}}.png{{#if:{{{s|}}}|{{!}}{{{s}}}}}|link={{{l|}}}]]</includeonly><noinclude>{{ArticleIcons|protected=highrisk}}This template is for displaying the head icon of a character.
<includeonly>[[File:{{NameToIcon|{{{c|{{{1}}}}}}}}Head{{#if:{{{cl|}}}|{{{cl}}}}}{{#if:{{{g|}}}|{{#ifeq:{{{g}}}|SSB4|SSB4-U|{{{g}}}}}}}.png{{#if:{{{s|}}}|{{!}}{{{s}}}}}|link={{#if:{{{l|}}}|{{{l}}}|{{{c|{{{1}}}}}}{{#if:{{{g|}}}|&#32;({{#switch:{{{g}}}|SSB4-U|SSB4-3=SSB4|#default={{{g}}}}})}}}}]]</includeonly><noinclude>{{ArticleIcons|protected=highrisk}}This template is for displaying the head icon of a character.
<pre>
<pre>
|c = Name of character in filename of icon.
|c = Name of character, spelled how it is for their character pages.
|g = Game abbreviation: SSB, SSBM, or SSBB. If left out, uses SSBB if possible and SSBM otherwise.
|cl = Colour, in order to use palette-swapped icons. Must be same colour word used in filename. If left out, uses default.
|s = Size. Default is image's regular size.
|g = Game abbreviation: SSB, SSBM, SSBB, SSB4, SSB4-3, or SSB4-U. SSB4 defaults to -U.
|l = Link. If left out, image is unclickable. Otherwise, makes it into a link (to maybe the character's page).
|s = Size. Default is image's regular size.
|l = Link. If left out, image links to the character's page. If set to something, image links there. If set to blank, image links nowhere.
</pre>
</pre>


You can leave out the <code>c=</code> part, but not the other ones.
You can leave out the <code>c=</code> part, but not the other ones. In addition, if you specify a colour, you must specify a game.


==Example use==
==Example use==
<code><nowiki>{{head|Mario|s=20px|l=Mario (SSBB)}}</nowiki></code>
<code><nowiki>{{head|Mario|s=20px}}</nowiki></code>
{{head|Mario|s=20px|l=Mario (SSBB)}}
{{head|Mario|s=20px}}


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

Latest revision as of 13:57, February 10, 2021

This template is for displaying the head icon of a character.

|c  = Name of character, spelled how it is for their character pages.
|cl = Colour, in order to use palette-swapped icons. Must be same colour word used in filename. If left out, uses default.
|g  = Game abbreviation: SSB, SSBM, SSBB, SSB4, SSB4-3, or SSB4-U. SSB4 defaults to -U.
|s  = Size. Default is image's regular size.
|l  = Link. If left out, image links to the character's page. If set to something, image links there. If set to blank, image links nowhere.

You can leave out the c= part, but not the other ones. In addition, if you specify a colour, you must specify a game.

Example use

{{head|Mario|s=20px}} Mario