Template:Character Label: Difference between revisions

Template page
No edit summary
No edit summary
Line 3: Line 3:
--><includeonly><span style="white-space: nowrap;"><span class="charaLabel"><!--
--><includeonly><span style="white-space: nowrap;"><span class="charaLabel"><!--
-->[[File:{{#var:LabelGame}}_{{#var:LabelChara}}_Icon.png|link={{{linkOverride|{{#var:LabelGame}}/{{#var:LabelChara}}}}}|{{#if:{{{3|}}}|x{{{3|}}}|x24px}}|alt=]]<!--
-->[[File:{{#var:LabelGame}}_{{#var:LabelChara}}_Icon.png|link={{{linkOverride|{{#var:LabelGame}}/{{#var:LabelChara}}}}}|{{#if:{{{3|}}}|x{{{3|}}}|x24px}}|alt=]]<!--
--></span><span style="white-space: normal;">{{#switch: {{{format}}}
--></span>{{0}}<span style="white-space: normal;">{{#switch: {{{format}}}
| none = {{#if: {{{linkOverride|}}}|[[{{{linkOverride|}}}|{{{label|{{#var:LabelChara}}}}}]] | [[{{#var:LabelGame}}/{{#var:LabelChara}}|{{{label|{{#var:LabelChara}}}}}]]}}
| none = {{#if: {{{linkOverride|}}}|[[{{{linkOverride|}}}|{{{label|{{#var:LabelChara}}}}}]] | [[{{#var:LabelGame}}/{{#var:LabelChara}}|{{{label|{{#var:LabelChara}}}}}]]}}
| italic = {{#if: {{{linkOverride|}}}|[[{{{linkOverride|}}}|''{{{label|{{#var:LabelChara}}}}}'']] | [[{{#var:LabelGame}}/{{#var:LabelChara}}|''{{{label|{{#var:LabelChara}}}}}'']]}}
| italic = {{#if: {{{linkOverride|}}}|[[{{{linkOverride|}}}|''{{{label|{{#var:LabelChara}}}}}'']] | [[{{#var:LabelGame}}/{{#var:LabelChara}}|''{{{label|{{#var:LabelChara}}}}}'']]}}

Revision as of 11:01, 9 April 2023

Arguments

If one unnamed arg is given (e.g. {{Character Label|Sol}}):
 1st arg = Character Name
 The template will default to the game from the RootPageName of the current page
If two unnamed args are given (e.g. {{Character Label|GGACR|Sol}}):
 1st arg = Game Code
 2nd arg = Character Name
If no unnamed args are given, the template will default to the game and character of the current page

"size" = icon size (optional)
"icon" = icon override (optional)
"label" = text override (optional)
"linkOverride" = link override (optional)
"format" = none/italic/bold (optional). Default to 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

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

Full Args

{{character Label|GGACR|Venom|120px|icon=OverrideIconToUse.png|label=OverrideNameToShow|linkOverride=OverrideLink|format=TextFormat}}
  • Can also be used with CLabel shorthand.
   {{CLabel|GGACR|Ky Kiske}}

Example

0Venom Lorem ipsum dolor sit amet, consectetur adipiscing elit.
0Goldlewis Dickinson Maecenas quis felis volutpat, cursus dolor vel, bibendum urna.
0Testament Duis dignissim posuere justo, vitae sodales felis aliquam sit amet.
0Happy Chaos Donec efficitur ante ac dolor convallis volutpat.

Example without size value

0Venom

Example with size value

0Ky Kiske

Example with size, and name override values

This links to Ky's page

0JOHNNY ARCSYS

Example with rectangular size

default size

0Nagoriyuki

larger size

0Nagoriyuki