Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Character Label/doc: Difference between revisions

Template page
dustloop:Template:Character Label>TarkusLee
mNo edit summary
m 66 revisions imported: Credit to the Dustloop wiki (dustloop.com).
 
(47 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{doc/start}}
{{doc/start}}
Usage:
==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


    <nowiki>{{character Label|GGACR|Venom}}</nowiki>
==Usage==
{{character Label|GGACR|Venom|24px}}
* 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>{{character Label|GGACR|Venom|120px}}</nowiki>
* Does not work within section headers.
{{character Label|GGACR|Ky Kiske|72px}}
     <nowiki>===={{Character Label|GGACR|Venom}}====</nowiki>


* Icon default size is 24px.
===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>


==Example==
==Examples==
'''Fighting''' {{character Label|GGACR|Ky Kiske|32px}}
{{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>


Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
===Example without size value===
just give up, dude.
{{character Label|GGACR|Venom}}


{{clear}}
===Example with size value===
{{doc/end}}
{{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>


== TemplateData ==
It's me, {{Character Label|DBFZ|Goku}} from DBFZ!
<templatedata>
It's me, {{Character Label|DBFZ|Goku|link=none}} from DBFZ!
{
It's me, {{Character Label|DBFZ|Goku|label=}} from DBFZ!
"params": {
It's me, {{Character Label|DBFZ|Goku|link=|label=none|icon=DBFZ_SS_Goku_Icon.png}} from DBFZ!
"1": {
"Label": "Game",
"description": "The character's game.",
"example": "GGACR",
"type": "string",
"required": true
},
"2": {
"Label": "Character",
"description": "The character's name.",
"example": "Venom",
"type": "string",
"required": true
},
"3": {
"Label": "Icon Size",
"type": "string",
"default": "24px",
"required": false
}
},
"paramOrder": [
"1",
"2",
"3",
],
"format": "inline"
}
</templatedata>


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.png Venom Lorem ipsum dolor sit amet, consectetur adipiscing elit.
File:GGST Goldlewis Dickinson Icon.png Goldlewis Dickinson Maecenas quis felis volutpat, cursus dolor vel, bibendum urna.
File:GGACR Testament Icon.png Testament Duis dignissim posuere justo, vitae sodales felis aliquam sit amet.
File:GGST Happy Chaos Icon.png Happy Chaos Donec efficitur ante ac dolor convallis volutpat.

Example without size value

File:GGACR Venom Icon.png Venom

Example with size value

File:GGACR Ky Kiske Icon.png Ky Kiske

Example with size, and name override values

This links to Ky's page

File:GGACR Ky Kiske Icon.png 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.

File:GGACR Venom Icon.png 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. File:GGACR Sol Badguy Icon.png 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:

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.png Goku from DBFZ!
It's me, File:DBFZ Goku Icon.png Goku 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.

MediaWiki Appliance - Powered by TurnKey Linux