No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{clear}}{{doc}}</noinclude> | <noinclude>{{clear}}{{doc}}</noinclude> | ||
<span>[[File:{{{1}}}_{{{2}}}_Icon.png|frameless|link={{{1}}}/{{{2}}}|{{#if:{{{3|}}}|{{{3|}}}|24px}}]] [[{{{1}}}/{{{2}}}|'''{{{2}}}''']]</span> | <span>[[{{#if:{{4|}}|{{4|}}|File:{{{1}}}_{{{2}}}_Icon.png|frameless|link={{{1}}}/{{{2}}}|{{#if:{{{3|}}}|{{{3|}}}|24px}}]] [[{{{1}}}/{{{2}}}|'''{{{2}}}''']]</span> |
Revision as of 07:33, 29 March 2020
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
[[{{#if:Template:4|Template:4|File:GGACR_Venom_Icon.png|frameless|link=GGACR/Venom|24px]] Venom Lorem ipsum dolor sit amet, consectetur adipiscing elit.
[[{{#if:Template:4|Template:4|File:GGST_Goldlewis Dickinson_Icon.png|frameless|link=GGST/Goldlewis Dickinson|24px]] Goldlewis Dickinson Maecenas quis felis volutpat, cursus dolor vel, bibendum urna.
[[{{#if:Template:4|Template:4|File:GGACR_Testament_Icon.png|frameless|link=GGACR/Testament|24px]] Testament Duis dignissim posuere justo, vitae sodales felis aliquam sit amet.
[[{{#if:Template:4|Template:4|File:GGST_Happy Chaos_Icon.png|frameless|link=GGST/Happy Chaos|24px]] Happy Chaos Donec efficitur ante ac dolor convallis volutpat.
Example without size value
[[{{#if:Template:4|Template:4|File:GGACR_Venom_Icon.png|frameless|link=GGACR/Venom|24px]] Venom
Example with size value
[[{{#if:Template:4|Template:4|File:GGACR_Ky Kiske_Icon.png|frameless|link=GGACR/Ky Kiske|24px]] Ky Kiske
Example with size, and name override values
- This links to Ky's page
[[{{#if:Template:4|Template:4|File:GGACR_Ky Kiske_Icon.png|frameless|link=GGACR/Ky Kiske|24px]] Ky Kiske
Example with rectangular size
default size
[[{{#if:Template:4|Template:4|File:GGST_Nagoriyuki_Icon.png|frameless|link=GGST/Nagoriyuki|24px]] Nagoriyuki
larger size
[[{{#if:Template:4|Template:4|File:GGST_Nagoriyuki_Icon.png|frameless|link=GGST/Nagoriyuki|24px]] Nagoriyuki
The above documentation is transcluded from Template:Character Label/doc. (edit | history)
[[{{#if:Template:4|Template:4|File:{{{1}}}_{{{2}}}_Icon.png|frameless|link={{{1}}}/{{{2}}}|24px]] [[{{{1}}}/{{{2}}}|{{{2}}}]]