Template:SRHead: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(Basically {{PMHead}}, but Smash Remix (with some wikicode formatting because of the long #switch). I think I changed every mention of PM. Still need the other head icons uploaded)
 
m (Since base game characters have no changes, makes sense to make them link to SSB. Revert if it is ever decided they get SR pages)
Line 2: Line 2:
-->{{#switch:{{{c|{{{1}}}}}}|Bowser|Dr. Mario|Sheik|Young Link|Ganondorf|Dark Samus|King Dedede|Falco|Wolf|Mewtwo|Lucas|Marth|Wario|Sonic|Conker|Marina|Goemon=SR|#default={{#ifeq:{{{fsr|n}}}|y|SR|SSB}}}}.png<!--
-->{{#switch:{{{c|{{{1}}}}}}|Bowser|Dr. Mario|Sheik|Young Link|Ganondorf|Dark Samus|King Dedede|Falco|Wolf|Mewtwo|Lucas|Marth|Wario|Sonic|Conker|Marina|Goemon=SR|#default={{#ifeq:{{{fsr|n}}}|y|SR|SSB}}}}.png<!--
-->{{#if:{{{s|}}}|{{!}}{{{s}}}}}<!--
-->{{#if:{{{s|}}}|{{!}}{{{s}}}}}<!--
-->|link={{#if:{{{l|}}}|{{{l}}}|{{{c|{{{1}}}}}}&#32;(SR)}}]]</includeonly><noinclude>This template is for displaying the head icon of a character.
-->|link={{#if:{{{l|}}}|{{{l}}}|{{{c|{{{1}}}}}}&#32;({{#switch:{{{c|{{{1}}}}}}|Bowser|Dr. Mario|Sheik|Young Link|Ganondorf|Dark Samus|King Dedede|Falco|Wolf|Mewtwo|Lucas|Marth|Wario|Sonic|Conker|Marina|Goemon=SR|#default=SSB}})}}]]</includeonly><noinclude>This template is for displaying the head icon of a character.
<pre>
<pre>
|c  = Name of character, spelled how it is for their character pages.
|c  = Name of character, spelled how it is for their character pages.

Revision as of 13:24, July 22, 2023

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.
|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.
|fsr = "force SR". Set to "y" if the colour selected is Smash Remix-exclusive.

This is a pared-down version of {{Head}} specific to Smash Remix-related things. If "c" is "Bowser", "Dr. Mario", "Sheik", "Young Link", "Ganondorf", "Dark Samus", "King Dedede", "Falco", "Wolf", "Mewtwo", "Lucas", "Marth", "Wario", "Sonic", "Conker", "Marina", or "Goemon", or "fsr" is "y", it points to NameHeadSR.png; otherwise it points to NameHeadSSB.png. In any case, the image links to [[Character (SR)]].

Example use

{{SRHead|Mario|s=20px}} Mario (SSB)