Template:Character Label: Difference between revisions

Template page
mNo edit summary
mNo edit summary
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{clear}}{{doc}}</noinclude>
<includeonly>[[{{#if:{{{4|}}}|File:{{{4}}}|File:{{{1}}}_{{{2}}}_Icon.png}}|frameless|link={{{1}}}/{{{2}}}|{{#if:{{{3|}}}|x{{{3|}}}|x24px}}]] [[{{{1}}}/{{{2}}}|'''{{#if:{{{label|}}}|{{{label|}}}|{{{2|}}}}}''']]</includeonly><noinclude>{{clear}}{{doc}}</noinclude>
<div style="margin:7px 5px 0px; font-size: 24px; vertical-align:center; text-align:center; display:inline-block; line-height:normal; width:{{{2|36px}}};">
[[File:{{{1}}}_{{{2}}}_Icon.png|link={{{1}}}/{{{2}}}|{{#if:{{{3|}}}|{{{3|}}}|}}]][[{{{1}}}/{{{2}}}|'''{{{2}}}''']]
</div>

Revision as of 13:29, 6 April 2021

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

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

Example without size value

GGACR Venom Icon.png Venom

Example with size value

GGACR Ky Kiske Icon.png Ky Kiske

Example with size, and name override values

This links to Ky's page

GGACR Ky Kiske Icon.png JOHNNY ARCSYS

Example with rectangular size

default size

GGST Nagoriyuki Icon.png Nagoriyuki

larger size

GGST Nagoriyuki Icon.png Nagoriyuki