Difference between revisions of "Template:Character Label"
Jump to navigation
Jump to search
m |
m (Undo revision 299309 by PrivateTarkus (talk)) Tag: Undo |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
<includeonly><!-- | <includeonly><!-- | ||
+ | -->{{#vardefine:chara|{{{2}}}}}<!--name of the character | ||
+ | -->{{#vardefine:game|{{{1}}}}}<!-- game for the character | ||
--><span class="charaLabel"><!-- | --><span class="charaLabel"><!-- | ||
-->[[File:{{#var:game}}_{{#var:chara}}_Icon.png|link={{{linkOverride|{{#var:game}}/{{#var:chara}}}}}|{{#if:{{{3|}}}|x{{{3|}}}|x24px}}|alt=]]<!-- | -->[[File:{{#var:game}}_{{#var:chara}}_Icon.png|link={{{linkOverride|{{#var:game}}/{{#var:chara}}}}}|{{#if:{{{3|}}}|x{{{3|}}}|x24px}}|alt=]]<!-- | ||
− | --></span | + | --></span> <span>{{#if: {{{linkOverride|}}}|[[{{{linkOverride|}}}|'''{{{label|{{#var:chara}}}}}''']] | [[{{#var:game}}/{{#var:chara}}|'''{{{label|{{#var:chara}}}}}''']]}}</span><!-- |
− | |||
--></includeonly><noinclude>{{clear}}{{doc}}</noinclude> | --></includeonly><noinclude>{{clear}}{{doc}}</noinclude> |
Latest revision as of 13:27, 13 July 2022
Arguments
1st arg = Game Code 2nd arg = Character Name 3rd arg = icon size (optional) "Label" = text override (optional) "LinkOverride" = link override (optional)
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}}====
{{character Label|GGACR|Venom|120px|OverrideIconToUse|OverrideNameToShow|OverrideLink}}
- Can also be used with CLabel shorthand.
{{CLabel|GGACR|Ky Kiske}}
Example
Venom Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Goldlewis Dickinson Maecenas quis felis volutpat, cursus dolor vel, bibendum urna.
Testament Duis dignissim posuere justo, vitae sodales felis aliquam sit amet.
Happy Chaos Donec efficitur ante ac dolor convallis volutpat.
Example without size value
Example with size value
Example with size, and name override values
- This links to Ky's page
Example with rectangular size
default size
larger size
The above documentation is transcluded from Template:Character Label/doc. (edit | history)