Template:PMHead: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
mNo edit summary |
(Adding case for P+) |
||
Line 1: | Line 1: | ||
<includeonly>[[File:{{NameToIcon|{{{c|{{{1}}}}}}}}Head{{#if:{{{cl|}}}|{{{cl}}}}}{{#switch:{{{c|{{{1}}}}}}|Mewtwo|Roy|Knuckles= | <includeonly>[[File:{{NameToIcon|{{{c|{{{1}}}}}}}}Head{{#if:{{{cl|}}}|{{{cl}}}}}{{#switch:{{{c|{{{1}}}}}}|Mewtwo|Roy=PM|Knuckles=P+|#default={{#ifeq:{{{fpm|n}}}|y|PM|SSBB}}}}.png{{#if:{{{s|}}}|{{!}}{{{s}}}}}|link={{#if:{{{l|}}}|{{{l}}}|{{{c|{{{1}}}}}} {{#switch:{{{c|{{{1}}}}}}|Knuckles=(P+)|#default=(PM)}}}}]]</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. | ||
Line 8: | Line 8: | ||
</pre> | </pre> | ||
This is a pared-down version of {{t|Head}} specific to PM-related things. If "c" is "Mewtwo" or "Roy", or "fpm" is "y", it points to NameHeadPM.png; otherwise it points to NameHeadSSBB.png. In any case, the image links to <nowiki>[[Character (PM)]]</nowiki>. | This is a pared-down version of {{t|Head}} specific to PM-related things. If "c" is "Mewtwo" or "Roy", or "fpm" is "y", it points to NameHeadPM.png; if "c" is "Knuckles" it points to NameHeadP+.png; otherwise it points to NameHeadSSBB.png. In any case, the image links to <nowiki>[[Character (PM)]]</nowiki>. | ||
==Example use== | ==Example use== |
Latest revision as of 04:32, April 18, 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. |fpm = "force PM". Set to "y" if the colour selected is PM-exclusive.
This is a pared-down version of {{Head}} specific to PM-related things. If "c" is "Mewtwo" or "Roy", or "fpm" is "y", it points to NameHeadPM.png; if "c" is "Knuckles" it points to NameHeadP+.png; otherwise it points to NameHeadSSBB.png. In any case, the image links to [[Character (PM)]].