More actions
dustloop:Template:Character Label>Maria.artemis |
dustloop:Template:Character Label>Maria.artemis |
||
| Line 2: | Line 2: | ||
-->{{#vardefine:LabelGame|{{{1}}}}}<!-- game for the character | -->{{#vardefine:LabelGame|{{{1}}}}}<!-- game for the character | ||
--><includeonly><span style="white-space: nowrap;"><span class="charaLabel"><!-- | --><includeonly><span style="white-space: nowrap;"><span class="charaLabel"><!-- | ||
-->[[File:{{{icon|{{#var:LabelGame}}_{{#var:LabelChara}}_Icon.png}}} | -->[[File:{{{icon|{{#var:LabelGame}}_{{#var:LabelChara}}_Icon.png}}}|link={{{linkOverride|{{#var:LabelGame}}/{{#var:LabelChara}}}}}|{{#if:{{{3|}}}|x{{{3|}}}|x24px}}|alt=]]<!-- | ||
--> | --></span>{{0| }}<span style="white-space: normal;">{{#switch: {{{format}}} | ||
| none = {{#if: {{{linkOverride|}}}|[[{{{linkOverride|}}}|{{{label|{{#var:LabelChara}}}}}]] | [[{{#var:LabelGame}}/{{#var:LabelChara}}|{{{label|{{#var:LabelChara}}}}}]]}} | | none = {{#if: {{{linkOverride|}}}|[[{{{linkOverride|}}}|{{{label|{{#var:LabelChara}}}}}]] | [[{{#var:LabelGame}}/{{#var:LabelChara}}|{{{label|{{#var:LabelChara}}}}}]]}} | ||
| italic = {{#if: {{{linkOverride|}}}|[[{{{linkOverride|}}}|''{{{label|{{#var:LabelChara}}}}}'']] | [[{{#var:LabelGame}}/{{#var:LabelChara}}|''{{{label|{{#var:LabelChara}}}}}'']]}} | | italic = {{#if: {{{linkOverride|}}}|[[{{{linkOverride|}}}|''{{{label|{{#var:LabelChara}}}}}'']] | [[{{#var:LabelGame}}/{{#var:LabelChara}}|''{{{label|{{#var:LabelChara}}}}}'']]}} | ||
| bold | {{#if: {{{linkOverride|}}}|[[{{{linkOverride|}}}|'''{{{label|{{#var:LabelChara}}}}}''']] | [[{{#var:LabelGame}}/{{#var:LabelChara}}|'''{{{label|{{#var:LabelChara}}}}}''']]}} | | bold | {{#if: {{{linkOverride|}}}|[[{{{linkOverride|}}}|'''{{{label|{{#var:LabelChara}}}}}''']] | [[{{#var:LabelGame}}/{{#var:LabelChara}}|'''{{{label|{{#var:LabelChara}}}}}''']]}} | ||
}}</span></span></includeonly><!-- | |||
--><noinclude>{{clear}}{{doc}}</noinclude> | --><noinclude>{{clear}}{{doc}}</noinclude> | ||
Revision as of 19:55, 10 December 2023
Arguments
1st arg / game = Game code. Default: Current page's game 2nd arg / chara = Character name. Default: Current page's character size = Icon size. Default: 24px in height icon = Override icon's image label = Override the text. Leave blank or input "none" to disable label display link = Override the link. Leave blank or input "none" to disable link format = none/italic/bold/italicbold/bolditalic. Default: bold
Usage
- Can be called in 4 ways:
{{Character Label}} (assumes current game and character)
{{Character Label|Venom}} (assumes current game)
{{Character Label|GGACR|Venom}}
{{Character Label|game=GGACR|chara=Venom}}
- Does not work within section headers.
===={{Character Label|GGACR|Venom}}====
Full Args
{{Character Label|GGACR|Venom|size=120px|icon=OverrideIconToUse.png|label=OverrideNameToShow|link=OverrideLink|format=TextFormat}}
- Can also be used with CLabel shorthand.
{{CLabel|GGACR|Ky Kiske}}
Examples
File:GGACR Venom Icon.pngTemplate:0Venom Lorem ipsum dolor sit amet, consectetur adipiscing elit.
File:GGST Goldlewis Dickinson Icon.pngTemplate:0Goldlewis Dickinson Maecenas quis felis volutpat, cursus dolor vel, bibendum urna.
File:GGACR Testament Icon.pngTemplate:0Testament Duis dignissim posuere justo, vitae sodales felis aliquam sit amet.
File:GGST Happy Chaos Icon.pngTemplate:0Happy Chaos Donec efficitur ante ac dolor convallis volutpat.
Example without size value
File:GGACR Venom Icon.pngTemplate:0Venom
Example with size value
File:GGACR Ky Kiske Icon.pngTemplate:0Ky Kiske
Example with size, and name override values
- This links to Ky's page
File:GGACR Ky Kiske Icon.pngTemplate:0JOHNNY ARCSYS
Desired Behaviors
Line break
The Icon should stick to the first word of the Label, while the rest of the Label can break into new lines.
File:GGACR Venom Icon.pngTemplate:0Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas pulvinar facilisis condimentum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum facilisis sit amet mi non ornare. File:GGACR Sol Badguy Icon.pngTemplate:0Morbi eget efficitur ipsum. Quisque viverra arcu venenatis, bibendum libero nec, pretium lectus. Nullam laoreet dictum auctor.
Copy paste compatibility
These examples can be copy pasted while still producing the same text:
It's me, {{Character Label|DBFZ|Goku}} from DBFZ!
It's me, {{Character Label|DBFZ|Goku|link=none}} from DBFZ!
It's me, {{Character Label|DBFZ|Goku|label=}} from DBFZ!
It's me, {{Character Label|DBFZ|Goku|link=|label=none|icon=DBFZ_SS_Goku_Icon.png}} from DBFZ!
It's me, File:DBFZ Goku Icon.pngTemplate:0Goku from DBFZ! It's me, File:DBFZ Goku Icon.pngTemplate:0Goku from DBFZ! It's me, File:DBFZ Goku Icon.pngTemplate:0' from DBFZ! It's me, File:DBFZ SS Goku Icon.pngTemplate:0none from DBFZ!
It's me, Goku from DBFZ!
The above documentation is transcluded from Template:Character Label/doc. (edit | history)