Template:Character Infobox: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Adding species and factions. Copied from HSR wiki |
||
| Line 51: | Line 51: | ||
-->{{#if:{{{title5|}}}|<li>{{{title5}}}</li>}}<!-- | -->{{#if:{{{title5|}}}|<li>{{{title5}}}</li>}}<!-- | ||
--></ul>}}</format> | --></ul>}}</format> | ||
</data> | |||
<data source="species"> | |||
<label>Species</label> | |||
<format><!-- | |||
Species | |||
-->{{#ifexist:{{{species}}}<!-- | |||
-->|{{#switch:{{{species}}} | |||
|Pom-Pom|Puppet = {{{species}}}<!-- No Link Exception | |||
-->|#default = [[{{{species}}}]]}}<!-- | |||
Note -->{{#if:{{{speciesNote|}}}|<nowiki> </nowiki>({{{speciesNote}}})}}<!-- | |||
Ref -->{{#if:{{{speciesRef|}}}|{{{speciesRef}}}}}<!-- | |||
-->|{{{species}}}<!-- | |||
Note -->{{#if:{{{speciesNote|}}}|<nowiki> </nowiki>({{{speciesNote}}})}}<!-- | |||
Ref -->{{#if:{{{speciesRef|}}}|{{{speciesRef}}}}}<!-- | |||
-->}}<!-- | |||
Species2 | |||
-->{{#ifexist:{{{species2}}}<!-- | |||
-->|<br />[[{{{species2}}}]]<!-- | |||
Note -->{{#if:{{{speciesNote2|}}}|<nowiki> </nowiki>({{{speciesNote2}}})}}<!-- | |||
Ref -->{{#if:{{{speciesRef2|}}}|{{{speciesRef2}}}}}<!-- | |||
-->|<br />{{{species2}}}<!-- | |||
Note -->{{#if:{{{speciesNote2|}}}|<nowiki> </nowiki>({{{speciesNote2}}})}}<!-- | |||
Ref -->{{#if:{{{speciesRef2|}}}|{{{speciesRef2}}}}}<!-- | |||
-->}}<!-- | |||
--></format> | |||
</data> | |||
<data source="faction"> | |||
<label>Faction{{#if:{{{faction2|}}}|s}}</label> | |||
<format>{{#if:{{{faction2|}}}|<ul><li>}}<!-- | |||
-->{{Exists|{{{faction}}}|[[{{{faction}}}|{{{factionLabel|{{{faction}}}}}}]]|{{{faction}}}}}<!-- | |||
-->{{#if:{{{factionNote|}}}<!-- | |||
-->|{{#ifeq:{{{factionNote}}}|None||<nowiki> </nowiki>({{{factionNote}}})}}<!-- | |||
-->|{{#ifeq:{{{type}}}|Playable Character|{{#if:{{{faction2|}}}|<nowiki> </nowiki>(on profile)}}}}}}<!-- | |||
-->{{{factionRef|}}}<!-- | |||
-->{{#if:{{{faction2|}}}|</li><!-- | |||
--><li>{{Exists|{{{faction2}}}|[[{{{faction2}}}|{{{factionLabel2|{{{faction2}}}}}}]]|{{{faction2}}}}}<!-- | |||
-->{{#if:{{{factionNote2|}}}|<nowiki> </nowiki>({{{factionNote2}}})}}<!-- | |||
-->{{#if:{{{factionRef2|}}}|{{{factionRef2|}}}}}</li><!-- | |||
-->{{#if:{{{faction3|}}}|<!-- | |||
--><li>{{Exists|{{{faction3}}}|[[{{{faction3}}}|{{{factionLabel3|{{{faction3}}}}}}]]|{{{faction3}}}}}<!-- | |||
-->{{#if:{{{factionNote3|}}}|<nowiki> </nowiki>({{{factionNote3}}})}}<!-- | |||
-->{{#if:{{{factionRef3|}}}|{{{factionRef3|}}}}}</li>}} | |||
</ul>}}</format> | |||
</data> | </data> | ||
<data source="originalIP"> | <data source="originalIP"> | ||
Revision as of 11:32, 4 July 2026
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Syntax
{{Character Infobox
|id =
<!-- Basic Info -->
|name =
|title =
|title2 =
|image =
|type =
|rarity =
|animasterType =
|animasterType2 =
|otherNames =
|species =
|faction =
|relatives =
<!-- Voice Actors -->
|vaEN =
|vaCN =
|vaJP =
|vaKR =
}}
Example
Armand
{{Character Infobox
|id =
<!-- Basic Info -->
|name = Armand
|title = The 8th Sovereign
|title2 = The 17th Novarch
|image = Armand Character Splash Art.png
|type = Upcoming Kardia
|rarity = 5
|animasterType = Sovereign
|animasterType2 = Novarch
|otherNames =
|species =
|faction =
|relatives =
<!-- Voice Actors -->
|vaEN = Some EN VA
|vaCN = Some CN VA
|vaJP = Some JP VA
|vaKR = Some KR VA
}}
Template Data
Infobox used to display information about a character.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| ID | id | Character's ID (if playable) | Number | optional |
| Name | name | Character's name
| String | optional |
| Title | title | Character's main title (if applicable) | String | suggested |
| Second Title | title2 | Character's secondary title (if applicable) | String | optional |
| Image | image | Character's image(s) | Content | required |
| Type | type | Character's type
| String | required |
| Rarity | rarity | Animaster's rarity
| Number | optional |
| Animaster Type | animasterType | Animaster type (if applicable)
| String | optional |
| Second Animaster Type | animasterType2 | Secondary Animaster type (if applicable)
| String | optional |
| Other Names | otherNames | Character's other names or aliases (if applicable) | String | optional |
| Species | species | Character's known species
| String | optional |
| Faction | faction | Factions related to character
| String | optional |
| Relatives | relatives | Character's relatives (if applicable) | String | optional |
| English VA | vaEN | Character's English VA | String | required |
| Chinese VA | vaCN | Character's Chinese VA | String | required |
| Japanese VA | vaJP | Character's Japanese VA | String | required |
| Korean VA | vaKR | Character's Korean VA | String | required |