More actions
dustloop:Template:Character Label>Shtkn No edit summary |
dustloop:Template:Character Label>Shtkn No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude>{{clear}}{{doc}}</noinclude> | <noinclude>{{clear}}{{doc}}</noinclude> | ||
<span>[[{{#if:{{4|}}|File:{{4|}}|File:{{{1}}}_{{{2}}}_Icon.png|frameless|link={{{1}}}/{{{2}}}|{{#if:{{{3|}}}|{{{3|}}}|24px}}]] [[{{{1}}}/{{{2}}}|'''{{{2}}}''']]</span> | <span>[[{{#if:{{{4|}}}|File:{{{4|}}}|File:{{{1}}}_{{{2}}}_Icon.png|frameless|link={{{1}}}/{{{2}}}|{{#if:{{{3|}}}|{{{3|}}}|24px}}]] [[{{{1}}}/{{{2}}}|'''{{{2}}}''']]</span> | ||
Revision as of 07:34, 29 March 2020
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
[[{{#if:|File:|File:GGACR_Venom_Icon.png|frameless|link=GGACR/Venom|24px]] Venom Lorem ipsum dolor sit amet, consectetur adipiscing elit.
[[{{#if:|File:|File:GGST_Goldlewis Dickinson_Icon.png|frameless|link=GGST/Goldlewis Dickinson|24px]] Goldlewis Dickinson Maecenas quis felis volutpat, cursus dolor vel, bibendum urna.
[[{{#if:|File:|File:GGACR_Testament_Icon.png|frameless|link=GGACR/Testament|24px]] Testament Duis dignissim posuere justo, vitae sodales felis aliquam sit amet.
[[{{#if:|File:|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:|File:|File:GGACR_Venom_Icon.png|frameless|link=GGACR/Venom|24px]] Venom
Example with size value
[[{{#if:|File:|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:|File:|File:GGACR_Ky Kiske_Icon.png|frameless|link=GGACR/Ky Kiske|24px]] Ky Kiske
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.
[[{{#if:|File:|File:GGACR_Venom_Icon.png|frameless|link=GGACR/Venom|24px]] Venom
[[{{#if:|File:|File:GGACR_Sol Badguy_Icon.png|frameless|link=GGACR/Sol Badguy|24px]] Sol Badguy
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,
[[{{#if:|File:|File:DBFZ_Goku_Icon.png|frameless|link=DBFZ/Goku|24px]] Goku from DBFZ!
It's me,
[[{{#if:|File:|File:DBFZ_Goku_Icon.png|frameless|link=DBFZ/Goku|24px]] Goku from DBFZ!
It's me,
[[{{#if:|File:|File:DBFZ_Goku_Icon.png|frameless|link=DBFZ/Goku|24px]] Goku from DBFZ!
It's me,
[[{{#if:|File:|File:DBFZ_Goku_Icon.png|frameless|link=DBFZ/Goku|24px]] Goku from DBFZ!
It's me, Goku from DBFZ!
The above documentation is transcluded from Template:Character Label/doc. (edit | history)
[[{{#if:|File:|File:{{{1}}}_{{{2}}}_Icon.png|frameless|link={{{1}}}/{{{2}}}|24px]] [[{{{1}}}/{{{2}}}|{{{2}}}]]