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>Kisequé
m 66 revisions imported: Credit to the Dustloop wiki (dustloop.com).
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{doc/start}}
{{doc/start}}
==Arguments==
==Arguments==
  1st arg = Game Code
  1st arg / game = Game code. Default: Current page's game
  2nd arg = Character Name
  2nd arg / chara = Character name. Default: Current page's character
  3rd arg = icon size (optional)
  size = Icon size. Default: 24px in height
  "icon" = icon override (optional)
  icon = Override icon's image
  "label" = text override (optional)
  label = Override the text. Leave blank or input "none" to disable label display
  "linkOverride" = link override (optional)
  link = Override the link. Leave blank or input "none" to disable link
  "format" = none/italic/bold (optional). Default to bold
  format = none/italic/bold/italicbold/bolditalic. Default: 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==
==Usage==
* Icon default size is 24px.
* Can be called in 4 ways:
    <nowiki>{{character Label|GGACR|Slayer}}</nowiki>
<nowiki>{{Character Label}}</nowiki> (assumes current game and character)
    <nowiki>{{character Label|GGACR|Venom|120px}}</nowiki>
<nowiki>{{Character Label|Venom}}</nowiki> (assumes current game)
<nowiki>{{Character Label|GGACR|Venom}}</nowiki>
<nowiki>{{Character Label|game=GGACR|chara=Venom}}</nowiki>


* Does not work within section headers.
* Does not work within section headers.
     <nowiki>===={{character Label|GGACR|Venom}}====</nowiki>
     <nowiki>===={{Character Label|GGACR|Venom}}====</nowiki>
=== Full Args ===
 
<pre>{{character Label|GGACR|Venom|120px|icon=OverrideIconToUse.png|label=OverrideNameToShow|linkOverride=OverrideLink|format=TextFormat}}</pre>
===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.
* Can also be used with CLabel shorthand.
     <nowiki>{{CLabel|GGACR|Ky Kiske}}</nowiki>
     <nowiki>{{CLabel|GGACR|Ky Kiske}}</nowiki>


==Example==
==Examples==
{{character Label|GGACR|Venom}} Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>
{{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|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|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>
{{character Label|GGST|Happy Chaos}} Donec efficitur ante ac dolor convallis volutpat.<br>
===Example without size value===
===Example without size value===
{{character Label|GGACR|Venom}}
{{character Label|GGACR|Venom}}
===Example with size value===
===Example with size value===
{{character Label|GGACR|Ky Kiske|72px}}
{{character Label|GGACR|Ky Kiske|size=72px}}
 
===Example with size, and name override values===
===Example with size, and name override values===
:This links to Ky's page
:This links to Ky's page
{{character Label|GGACR|Ky Kiske|72px|label=JOHNNY ARCSYS}}
{{character Label|GGACR|Ky Kiske|size=72px|label=JOHNNY ARCSYS}}
===Example with rectangular size===
 
====default size====
==Desired Behaviors==
{{character Label|GGST|Nagoriyuki}}
===Line break===
====larger size====
The Icon should stick to the first word of the Label, while the rest of the Label can break into new lines.
{{character Label|GGST|Nagoriyuki|72px}}
 
===testing===
{{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.}}  
{{#vardefine:size| {{#if:|{{{Size}}}x{{{Size}}}px|180x180px}} }}<!--
 
-->{{#vardefine:chara| Elphelt Valentine }}<!--
===Copy paste compatibility===
{{#vardefine:extraRowItems| {{#expr: ({{{colorEX|0}}}+{{{colorShadow|0}}}) }} }}  (not currently in use)
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>
{| cellspacing="0" style="width:100%;float:center;"
<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>
| [[File:GGST_{{#var:chara}}_color_1.png|{{#var:size}}|center]]
 
| [[File:GGST_{{#var:chara}}_color_2.png|{{#var:size}}|center]]
It's me, {{Character Label|DBFZ|Goku}} from DBFZ!
| [[File:GGST_{{#var:chara}}_color_3.png|{{#var:size}}|center]]
It's me, {{Character Label|DBFZ|Goku|link=none}} from DBFZ!
| [[File:GGST_{{#var:chara}}_color_4.png|{{#var:size}}|center]]
It's me, {{Character Label|DBFZ|Goku|label=}} from DBFZ!
| [[File:GGST_{{#var:chara}}_color_5.png|{{#var:size}}|center]]
It's me, {{Character Label|DBFZ|Goku|link=|label=none|icon=DBFZ_SS_Goku_Icon.png}} from DBFZ!
| [[File:GGST_{{#var:chara}}_color_6.png|{{#var:size}}|center]]
 
|-
It's me, Goku from DBFZ!
{{#if:
|
{{!}} <center>'''{{#if:|{{tt|Colour 1|{{{c1}}}}}|Colour 1}}'''</center>
{{!}} <center>'''{{#if:Her pallete from {{CLabel|GGXRD|Elphelt|label=Xrd -SIGN-}}|{{tt|Colour 2|Her pallete from {{CLabel|GGXRD|Elphelt|label=Xrd -SIGN-}}}}|Colour 2}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Colour 3|{{{c3}}}}}|Colour 3}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Colour 4|{{{c4}}}}}|Colour 4}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Colour 5|{{{c5}}}}}|Colour 5}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Colour 6|{{{c6}}}}}|Colour 6}}'''</center>
|
{{!}} <center>'''{{#if:|{{tt|Color 1|{{{c1}}}}}|Color 1}}'''</center>
{{!}} <center>'''{{#if:Her pallete from {{CLabel|GGXRD|Elphelt|label=Xrd -SIGN-}}|{{tt|Color 2|Her pallete from {{CLabel|GGXRD|Elphelt|label=Xrd -SIGN-}}}}|Color 2}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Color 3|{{{c3}}}}}|Color 3}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Color 4|{{{c4}}}}}|Color 4}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Color 5|{{{c5}}}}}|Color 5}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Color 6|{{{c6}}}}}|Color 6}}'''</center>
}}
|-
| [[File:GGST_{{#var:chara}}_color_7.png|{{#var:size}}|center]]
| [[File:GGST_{{#var:chara}}_color_8.png|{{#var:size}}|center]]
| [[File:GGST_{{#var:chara}}_color_9.png|{{#var:size}}|center]]
| [[File:GGST_{{#var:chara}}_color_10.png|{{#var:size}}|center]]
| [[File:GGST_{{#var:chara}}_color_11.png|{{#var:size}}|center]]
| [[File:GGST_{{#var:chara}}_color_12.png|{{#var:size}}|center]]
|-
{{#if:
|
{{!}} <center>'''{{#if:|{{tt|Colour 7|{{{c7}}}}}|Colour 7}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Colour 8|{{{c8}}}}}|Colour 8}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Colour 9|{{{c9}}}}}|Colour 9}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Colour 10|{{{c10}}}}}|Colour 10}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Colour 11|{{{c11}}}}}|Colour 11}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Colour 12|{{{c12}}}}}|Colour 12}}'''</center>
|
{{!}} <center>'''{{#if:|{{tt|Color 7|{{{c7}}}}}|Color 7}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Color 8|{{{c8}}}}}|Color 8}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Color 9|{{{c9}}}}}|Color 9}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Color 10|{{{c10}}}}}|Color 10}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Color 11|{{{c11}}}}}|Color 11}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Color 12|{{{c12}}}}}|Color 12}}'''</center>
}}
|-
{| cellspacing="0" style="width:100%;float:center;"
| [[File:GGST_{{#var:chara}}_color_13.png|{{#var:size}}|center]]
| [[File:GGST_{{#var:chara}}_color_14.png|{{#var:size}}|center]]
| [[File:GGST_{{#var:chara}}_color_15.png|{{#var:size}}|center]]
{{#if: |
{{!}} [[File:GGST_{{#var:chara}}_color_EX.png|{{#var:size}}|center]]
}}<!--
-->{{#if: |
{{!}} [[File:GGST_{{#var:chara}}_color_Shadow.png|{{#var:size}}|center]]
}}
|-
{{#if:
|
{{!}} <center>'''{{#if:|{{tt|Colour 13|{{{c13}}}}}|Colour 13}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Colour 14|{{{c14}}}}}|Colour 14}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Colour 15|{{{c15}}}}}|Colour 15}}'''</center>
|
{{!}} <center>'''{{#if:|{{tt|Color 13|{{{c13}}}}}|Color 13}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Color 14|{{{c14}}}}}|Color 14}}'''</center>
{{!}} <center>'''{{#if:|{{tt|Color 15|{{{c15}}}}}|Color 15}}'''</center>
}}
{{#if: |
{{!}} <center>'''{{#if:|{{tt|EX|{{{cEX}}}}}|EX}}<sup>1</sup>'''</center>
}}<!--
-->{{#if: |
{{!}} <center>'''{{#if:|{{tt|Shadow|{{{cShadow}}}}}|Shadow}}<sup>2</sup>'''</center>
}}
|-
| colspan="6" style="text-align: left"|<!--
-->{{#if:
|
Colours 7-15 are {{tt|{{tt|available through DLC|Colour 13 is included in {{#switch: 2|1=the 25th Anniversary Appreciation Colour free DLC|2=the 25th Anniversary Appreciation Colour free DLC|3=Season Pass 3|???}}<hr>Colours 14 and 15 are included in {{#switch: 2|1=the 25th Anniversary Colour DLC|2=the 25th Anniversary Colour DLC|3=Season Pass 3|???}}}}|Colours 7-11 are included in {{#switch: 2|1=Season Pass 1|2=Season Pass 2|3=Additional Colour Pack #3|???}}<hr>Colour 12 is included in {{#switch: 2|1=Ultimate Edition|2=Additional Colour Pack #2|3=Additional Colour Pack #3|???}}}}
|
Colors 7-15 are {{tt|{{tt|available through DLC|Color 13 is included in {{#switch: 2|1=the 25th Anniversary Appreciation Color free DLC|2=the 25th Anniversary Appreciation Color free DLC|3=Season Pass 3|???}}<hr>Colors 14 and 15 are included in {{#switch: 2|1=the 25th Anniversary Color DLC|2=the 25th Anniversary Color DLC|3=Season Pass 3|???}}}}|Colors 7-11 are included in {{#switch: 2|1=Season Pass 1|2=Season Pass 2|3=Additional Color Pack #3|???}}<hr>Color 12 is included in {{#switch: 2|1=Ultimate Edition|2=Additional Color Pack #2|3=Additional Color Pack #3|???}}}}
}}<!--
-->{{#if: |<br>'''<sup>1</sup>'''Pre-order exclusive|}}<!--
-->{{#if: |<br>'''<sup>2</sup>'''Not playable, only used by enemies in Survival Mode|}}
|}{{clear}}
{{doc/end}}
{{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