Template:WarlordInfobox: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
m (Automating the Female and Male character categories)
(typecolor for type instead of just text; nocat controller; allow bulleted list for default mons; linking documentation)
Line 1: Line 1:
{| class="roundy" style="float:right; background: #{{{{{type2|{{{type|Unknown}}}}}} color}}; margin-left: 10px; margin-bottom: 10px; border: 3px solid #{{{{{type|Unknown}}} color dark}}; width: 25%"
<includeonly>{| class="roundy" style="float:right; background: #{{{{{type2|{{{type|Unknown}}}}}} color}}; margin-left: 10px; margin-bottom: 10px; border: 3px solid #{{{{{type|Unknown}}} color dark}}; width: 25%"
|-
|-
| class="roundy" colspan="2" style="text-align:center; background: #{{{{{type|Unknown}}} color light}};" | <big><big>'''{{{name|Nobunaga}}}'''</big></big><br><span lang="ja">'''{{{jname|ノブナガ}}}'''</span> ''{{{tmname|Nobunaga}}}''
| class="roundy" colspan="2" style="text-align:center; background: #{{{{{type|Unknown}}} color light}};" | <big><big>'''{{{name|Nobunaga}}}'''</big></big><br><span lang="ja">'''{{{jname|ノブナガ}}}'''</span> ''{{{tmname|Nobunaga}}}''
Line 15: Line 15:
|-
|-
! class="roundyleft" style="background: #{{{{{type|Unknown}}} color light}}; text-align:right" | Specialty
! class="roundyleft" style="background: #{{{{{type|Unknown}}} color light}}; text-align:right" | Specialty
| class="roundyright" style="background:#FFF;" | {{t|{{{type|Unknown}}}}}{{#if: {{{type2|}}}|, {{t|{{{type2|Unknown}}}}}|}}
| class="roundyright" style="background:#FFF;" | {{typecolor|{{{type|Unknown}}}}}{{#if: {{{type2|}}}|, {{typecolor|{{{type2|Unknown}}}}}|}}
|-
|-
! class="roundyleft" style="background: #{{{{{type|Unknown}}} color light}}; text-align:right" | Default Pokémon
! class="roundyleft" style="background: #{{{{{type|Unknown}}} color light}}; text-align:right" | Default Pokémon
| class="roundyright" style="background:#FFF;" | {{{default|{{p|Unown}}}}}
| class="roundyright" style="background:#FFF;" |  
|}<includeonly> {{#switch: {{{gender|}}}|Male=[[Category:Male characters]]|Female=[[Category:Female characters]]}}</includeonly><noinclude>[[Category:Infobox templates]]</noinclude>
{{{default|{{p|Unown}}}}}
|}{{#if:{{{nocat|}}}||{{#switch: {{{gender|}}}|Male=[[Category:Male characters]]|Female=[[Category:Female characters]]}}}}</includeonly><noinclude>
{{documentation}}
 
[[Category:Infobox templates]]
</noinclude>

Revision as of 06:46, 23 June 2023



Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)

Usage

{{WarlordInfobox
|name=
|jname=
|tmname=
|image=
|size=
|image2=
|size2=
|caption=
|gender=
|relatives=
|kingdom=
|type=
|type2=
|default=
}}

Template Fields

  • name - The Warlord's name.
  • jname - The Warlord's Japanese name.
  • tmname - The Warlord's name as translated from Japanese.
  • image - Image of the Warlord. Include the file extension (.png, .jpg, etc).
  • size (optional) - Size of the first image. Defaults to 250px.
  • image2 (optional) - Second image, if desired. Include the file extension (.png, .jpg, etc).
  • size2 (optional) - Size of the second image. Defaults to 250px.
  • caption - Caption text displayed below the image.
  • gender - Male or Female.
  • relatives - any relatives, and their relation in parentheses. If there are no known relatives, put "Unknown".
  • kingdom - The Warlord's home kingdom.
  • nocat - If set to 1, prevents categories from being generated.

Types

  • type - The Warlord's first specialty type.
    • type2 - The Warlord's second specialty type. (Leave blank if they only have one.)
  • weaktype The Warlord's first weakness type.
    • weaktype2 - The Warlord's second weakness type. (Leave blank if they only have one)

Pokémon

  • default - The Warrior's default Pokémon.
  • perfect - The Warrior's Perfect Link Pokémon.

Examples

Male Warlord, no relatives, one type, two default Pokémon

Motonari
モトナリ Motonari
Mori Motonari.png
Artwork with Servine
Gender Male
Relatives Unknown
Kingdom Greenleaf
Specialty  Grass 
Default Pokémon

SnivyRaltsSerperior

{{WarlordInfobox
|name=Motonari
|jname=モトナリ
|tmname=Motonari
|image=Mori Motonari.png
|caption=Artwork with Servine
|gender=Male
|relatives=Unknown
|kingdom=[[Greenleaf]]
|type=Grass
|weaktype=Poison
|default={{CSP|495|Snivy}} • {{CSP|280|Ralts}} • {{CSP|497|Serperior}}
|perfect={{CSP|496|Servine}} • {{CSP|497|Serperior}}
|nocat=1
}}


Female Warlord, with relatives, two types, one default Pokémon

Aya
アヤゴゼン Aya-Gozen
Aya Gozen.png
Artwork with Cubchoo
Gender Female
Relatives Kenshin (brother)
Kingdom Illusio
Specialty  Ice ,  Ghost 
Default Pokémon

CubchooBeartic

{{WarlordInfobox
|name=Aya 
|jname=アヤゴゼン 
|tmname=Aya-Gozen 
|image=Aya Gozen.png 
|caption=Artwork with Cubchoo 
|gender=Female 
|relatives=[[Kenshin]] (brother) 
|kingdom=[[Illusio]] 
|type=Ice 
|type2=Ghost
|weaktype=Fighting
|weaktype2=Rock
|default={{CSP|613|Cubchoo}} • {{CSP|614|Beartic}}
|perfect={{CSP|361|Snorunt}} • {{CSP|478|Froslass}}
|nocat=1
}}