mNo edit summary |
m (bringing back the override) |
||
Line 2: | Line 2: | ||
-->{{#vardefine:chara|{{{2|{{ROOTPAGENAME}}}}}}}<!-- If a chara is not provided, fall back to the base page name | -->{{#vardefine:chara|{{{2|{{ROOTPAGENAME}}}}}}}<!-- If a chara is not provided, fall back to the base page name | ||
-->{{#vardefine:game|{{{1|{{BASEPAGENAME}}}}}}}<!-- If a game is not provided, fall back to the root page name | -->{{#vardefine:game|{{{1|{{BASEPAGENAME}}}}}}}<!-- If a game is not provided, fall back to the root page name | ||
-->{{#vardefine:override|{{{4|}}}<!-- If a game is not provided, fall back to the root page name | |||
--><span class="charaLabel"><!-- | --><span class="charaLabel"><!-- | ||
-->[[File:{{#var:game}}_{{#var:chara}}_Icon.png|link={{#var:game}}/{{#var:chara}}|{{#if:{{{3|}}}|x{{{3|}}}|x24px}}]]<!-- | -->[[File:{{#varexists:override|{{#var:override}}|{{#var:game}}_{{#var:chara}}_Icon.png}}|link={{#var:game}}/{{#var:chara}}|{{#if:{{{3|}}}|x{{{3|}}}|x24px}}]]<!-- | ||
--></span> <span>[[{{#var:game}}/{{#var:chara}}|'''{{{label|{{#var:chara}}}}}''']]</span><!-- | --></span> <span>[[{{#var:game}}/{{#var:chara}}|'''{{{label|{{#var:chara}}}}}''']]</span><!-- | ||
--></includeonly><noinclude>{{clear}}{{doc}}</noinclude> | --></includeonly><noinclude>{{clear}}{{doc}}</noinclude> |
Revision as of 14:31, 21 March 2022
Arguments
If one unnamed arg is given (e.g. {{Character Label|Sol}}): 1st arg = Character Name The template will default to the game from the RootPageName of the current page If two unnamed args are given (e.g. {{Character Label|GGACR|Sol}}): 1st arg = Game Code 2nd arg = Character Name If no unnamed args are given, the template will default to the game and character of the current page "size" = icon size (optional) "icon" = icon override (optional) "label" = text override (optional) "linkOverride" = link override (optional) "format" = none/italic/bold (optional). Default to bold "L" = put something into this field to disable links (Use with either format=none, label=, or P=) "P" = put something into this field to remove the text from the label
Usage
- Icon default size is 24px.
{{character Label|GGACR|Slayer}} {{character Label|GGACR|Venom|120px}}
- Does not work within section headers.
===={{character Label|GGACR|Venom}}====
Full Args
{{character Label|GGACR|Venom|120px|icon=OverrideIconToUse.png|label=OverrideNameToShow|linkOverride=OverrideLink|format=TextFormat}}
- Can also be used with CLabel shorthand.
{{CLabel|GGACR|Ky Kiske}}
Example
{{#vardefine:override| Venom Lorem ipsum dolor sit amet, consectetur adipiscing elit.
{{#vardefine:override| Goldlewis Dickinson Maecenas quis felis volutpat, cursus dolor vel, bibendum urna.
{{#vardefine:override| Testament Duis dignissim posuere justo, vitae sodales felis aliquam sit amet.
{{#vardefine:override| Happy Chaos Donec efficitur ante ac dolor convallis volutpat.
Example without size value
{{#vardefine:override| Venom
Example with size value
{{#vardefine:override| Ky Kiske
Example with size, and name override values
- This links to Ky's page
{{#vardefine:override| JOHNNY ARCSYS
Example with rectangular size
default size
{{#vardefine:override| Nagoriyuki
larger size
{{#vardefine:override| Nagoriyuki
The above documentation is transcluded from Template:Character Label/doc. (edit | history)