More actions
dustloop:Template:Character Label>Kisequé mNo edit summary |
dustloop:Template:Character Label>Wakeup720 Updating args list for new implementation |
||
| Line 1: | Line 1: | ||
{{doc/start}} | {{doc/start}} | ||
==Arguments== | ==Arguments== | ||
1st arg = Game Code | If one unnamed arg is given (e.g. <nowiki>{{Character Label|Sol}}</nowiki>): | ||
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. <nowiki>{{Character Label|GGACR|Sol}}</nowiki>): | |||
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) | "size" = icon size (optional) | ||
"icon" = icon override (optional) | "icon" = icon override (optional) | ||
Revision as of 20:41, 15 December 2023
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
File:GGACR Venom Icon.pngVenom Lorem ipsum dolor sit amet, consectetur adipiscing elit.
File:GGST Goldlewis Dickinson Icon.pngGoldlewis Dickinson Maecenas quis felis volutpat, cursus dolor vel, bibendum urna.
File:GGACR Testament Icon.pngTestament Duis dignissim posuere justo, vitae sodales felis aliquam sit amet.
File:GGST Happy Chaos Icon.pngHappy Chaos Donec efficitur ante ac dolor convallis volutpat.
Example without size value
File:GGACR Venom Icon.pngVenom
Example with size value
File:GGACR Ky Kiske Icon.pngKy Kiske
Example with size, and name override values
- This links to Ky's page
File:GGACR Ky Kiske Icon.pngJOHNNY ARCSYS
Example with rectangular size
default size
File:GGST Nagoriyuki Icon.pngNagoriyuki
larger size
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.