« Modèle:Character » : différence entre les versions
Une page d'Inkipédia, le wiki Splatoon
(https://splatoonwiki.org/wiki/Template:Character) |
(trad) |
||
Ligne 12 : | Ligne 12 : | ||
|Harmony=Hotlantis | |Harmony=Hotlantis | ||
|#default={{{2}}} | |#default={{{2}}} | ||
}}{{#if:{{{var|}}}|_{{{var}}}}}.png|{{#iferror:{{#expr:{{{3|24}}}}}|24}}px|link={{{2}}}]]{{#ifeq:{{{3|}}}|icononly||{{#ifeq:{{{4|}}}|icononly|| [[{{{2}}}]]}}}}</includeonly><noinclude>__NOTOC__ | }}{{#if:{{{var|}}}|_{{{var}}}}}.png|{{#iferror:{{#expr:{{{3|24}}}}}|24}}px|link={{Français|personnage|{{{2}}}}}]]{{#ifeq:{{{3|}}}|icononly||{{#ifeq:{{{4|}}}|icononly|| [[{{Français|personnage|{{{2}}}}}]]}}}}</includeonly><noinclude>__NOTOC__ | ||
Displays an inline [[character]] icon with a text link. | Displays an inline [[character]] icon with a text link. | ||
Version du 18 juillet 2024 à 01:04
Displays an inline character icon with a text link.
Usage
{{Character|<game>|<name>|<size>|<icononly>}}
Parameters
Parameter | Type | Status | Description |
---|---|---|---|
game | Unnamed | Required | The game that the character belongs to. Must be one of the following:
|
name | Unnamed | Required | The English name of the character. |
size | Unnamed | Optional | The pixel width for the icon. The default size is 24. |
icononly | Unnamed | Optional | If present, the text label will be omitted. |
var | Named | Optional | If present, the variant name will be appended to the file name, to choose between different variants of the same same character's icons. |
Examples
Markup
* {{Character|S|Spyke}} * {{Character|S2|Murch}} * {{Character|S|Annie|32}} * {{Character|S2|Crusty Sean|icononly}} * {{Character|S|Crusty Sean|32|icononly}} * {{Character|OC|Callie}} * {{Character|OC|Callie|var=Inkantation}} * {{Character|RotM|Agent 1}} * {{Character|RotM|Agent 2}} * {{Character|RotM|Shiver}} * {{Character|RotM|Frye}} * {{Character|RotM|Big Man}}