Template:Character Label/doc: Difference between revisions

From BerserkerLoop
Jump to navigation Jump to search
(Created page with "<includeonly><!-- -->{{#vardefine:LabelChara|{{{2}}}}}<!--name of the character -->{{#vardefine:LabelGame|{{{1}}}}}<!-- game for the character --><span class="charaLabel"><!-- -->[[File:{{#var:LabelGame}}_{{#var:LabelChara}}_Icon.png|link={{{linkOverride|{{#var:LabelGame}}/{{#var:LabelChara}}}}}|{{#if:{{{3|}}}|x{{{3|}}}|x24px}}|alt=]]<!-- --></span> <span>{{#switch: {{{format}}} | none = {{#if: {{{linkOverride|}}}|[[{{{linkOverride|}}}|{{{label|{{#var:LabelChara}}}}}]] |...")
 
No edit summary
 
Line 1: Line 1:
<includeonly><!--
{{doc/start}}
-->{{#vardefine:LabelChara|{{{2}}}}}<!--name of the character
==Arguments==
-->{{#vardefine:LabelGame|{{{1}}}}}<!-- game for the character
<pre>
--><span class="charaLabel"><!--
1st arg = Game Code
-->[[File:{{#var:LabelGame}}_{{#var:LabelChara}}_Icon.png|link={{{linkOverride|{{#var:LabelGame}}/{{#var:LabelChara}}}}}|{{#if:{{{3|}}}|x{{{3|}}}|x24px}}|alt=]]<!--
2nd arg = Character Name
--></span> <span>{{#switch: {{{format}}}
3rd arg = icon size (optional)
| none = {{#if: {{{linkOverride|}}}|[[{{{linkOverride|}}}|{{{label|{{#var:LabelChara}}}}}]] | [[{{#var:LabelGame}}/{{#var:LabelChara}}|{{{label|{{#var:LabelChara}}}}}]]}}
"label" = text override (optional)
| italic = {{#if: {{{linkOverride|}}}|[[{{{linkOverride|}}}|''{{{label|{{#var:LabelChara}}}}}'']] | [[{{#var:LabelGame}}/{{#var:LabelChara}}|''{{{label|{{#var:LabelChara}}}}}'']]}}
"linkOverride" = link override (optional)
| bold | {{#if: {{{linkOverride|}}}|[[{{{linkOverride|}}}|'''{{{label|{{#var:LabelChara}}}}}''']] | [[{{#var:LabelGame}}/{{#var:LabelChara}}|'''{{{label|{{#var:LabelChara}}}}}''']]}}
"format" = none/italic/bold (optional). Default to bold
}}</span><!--
</pre>
--></includeonly><noinclude>{{clear}}{{doc}}</noinclude>
 
==Usage==
* Icon default size is 24px.
    <nowiki>{{character Label|GGACR|Slayer}}</nowiki>
    <nowiki>{{character Label|GGACR|Venom|120px}}</nowiki>
 
* Does not work within section headers.
    <nowiki>===={{character Label|GGACR|Venom}}====</nowiki>
=== <nowiki>{{character Label|GGACR|Venom|120px|OverrideIconToUse|OverrideNameToShow|OverrideLink}}</nowiki> ===
 
* Can also be used with CLabel shorthand.
    <nowiki>{{CLabel|GGACR|Ky Kiske}}</nowiki>
 
==Example==
{{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|72px}}
===Example with size, and name override values===
:This links to Ky's page
{{character Label|GGACR|Ky Kiske|72px|label=JOHNNY ARCSYS}}
===Example with rectangular size===
====default size====
{{character Label|GGST|Nagoriyuki}}
====larger size====
{{character Label|GGST|Nagoriyuki|72px}}
{{doc/end}}
<noinclude>
[[Category:Documentation templates]]
</noinclude>

Latest revision as of 18:21, 18 December 2022


Arguments

 1st arg = Game Code
 2nd arg = Character Name
 3rd arg = icon size (optional)
 "label" = text override (optional)
 "linkOverride" = link override (optional)
 "format" = none/italic/bold (optional). Default to bold

Usage

  • Icon default size is 24px.
   {{character Label|GGACR|Slayer}}
   {{character Label|GGACR|Venom|120px}}
  • Does not work within section headers.
   ===={{character Label|GGACR|Venom}}====

{{character Label|GGACR|Venom|120px|OverrideIconToUse|OverrideNameToShow|OverrideLink}}

  • Can also be used with CLabel shorthand.
   {{CLabel|GGACR|Ky Kiske}}

Example

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

Example with rectangular size

default size

File:GGST Nagoriyuki Icon.png Nagoriyuki

larger size

File:GGST Nagoriyuki Icon.png Nagoriyuki

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.