More actions
dustloop:Template:Character Label>TarkusLee |
EmissaryFGC (talk | contribs) m 66 revisions imported: Credit to the Dustloop wiki (dustloop.com). |
||
| (51 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
{{doc/start}} | {{doc/start}} | ||
==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: | ||
<nowiki>{{Character Label}}</nowiki> (assumes current game and character) | |||
<nowiki>{{Character Label|Venom}}</nowiki> (assumes current game) | |||
<nowiki>{{Character Label|GGACR|Venom}}</nowiki> | |||
<nowiki>{{Character Label|game=GGACR|chara=Venom}}</nowiki> | |||
<nowiki>{{ | * Does not work within section headers. | ||
<nowiki>===={{Character Label|GGACR|Venom}}====</nowiki> | |||
* | ===Full Args=== | ||
<pre>{{Character Label|GGACR|Venom|size=120px|icon=OverrideIconToUse.png|label=OverrideNameToShow|link=OverrideLink|format=TextFormat}}</pre> | |||
* Can also be used with CLabel shorthand. | |||
<nowiki>{{CLabel|GGACR|Ky Kiske}}</nowiki> | |||
{{ | ==Examples== | ||
{{ | {{character Label|GGACR|Venom}} Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br> | ||
{{character Label|GGST|Goldlewis Dickinson}} Maecenas quis felis volutpat, cursus dolor vel, bibendum urna.<br> | |||
{{character Label|GGACR|Testament}} Duis dignissim posuere justo, vitae sodales felis aliquam sit amet.<br> | |||
{{character Label|GGST|Happy Chaos}} Donec efficitur ante ac dolor convallis volutpat.<br> | |||
===Example without size value=== | |||
{{character Label|GGACR|Venom}} | |||
===Example with size value=== | |||
{{character Label|GGACR|Ky Kiske|size=72px}} | |||
===Example with size, and name override values=== | |||
:This links to Ky's page | |||
{{character Label|GGACR|Ky Kiske|size=72px|label=JOHNNY 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. | |||
{{Character Label|GGACR|Venom|label=Lorem 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.}} {{Character Label|GGACR|Sol Badguy|label=Morbi 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: | |||
<nowiki>It's me, {{Character Label|DBFZ|Goku}} from DBFZ!</nowiki> | |||
<nowiki>It's me, {{Character Label|DBFZ|Goku|link=none}} from DBFZ!</nowiki> | |||
<nowiki>It's me, {{Character Label|DBFZ|Goku|label=}} from DBFZ!</nowiki> | |||
<nowiki>It's me, {{Character Label|DBFZ|Goku|link=|label=none|icon=DBFZ_SS_Goku_Icon.png}} from DBFZ!</nowiki> | |||
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, Goku from DBFZ! | |||
{{doc/end}} | |||
<noinclude> | <noinclude> | ||
[[Category:Documentation templates]] | [[Category:Documentation templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 17:52, 16 September 2024
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.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
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.pngLorem 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.pngMorbi 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.pngGoku from DBFZ! It's me, File:DBFZ Goku Icon.pngGoku from DBFZ! It's me, Goku from DBFZ! It's me, Goku from DBFZ!
It's me, Goku from DBFZ!
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.