Template:Character Infobox: Difference between revisions

From Honkai: Nexus Anima Wiki
Jump to navigation Jump to search
Els236 (talk | contribs)
this should be better
Raven.Familiar (talk | contribs)
This might work, idk
 
(19 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly><infobox>
<includeonly><infobox theme-source="name">
<title source="name">
<title source="name">
<default>{{PAGENAME}}</default>
<default>{{PAGENAME}}</default>
Line 5: Line 5:
<header name="title">{{{title|}}}</header>
<header name="title">{{{title|}}}</header>
<group>
<group>
<image source="image"><caption source="caption"/></image>
<image source="image"><caption source="caption" /></image>
</group>
</group>
<group layout="vertical"><!--
<group layout="vertical"><!--
Line 11: Line 11:
--><data source="type">
--><data source="type">
<label>Type</label>
<label>Type</label>
<format>[[{{{type}}}]]</format>
<format>{{#switch:{{{type}}}
|Playable Eidos    = [[Eidos|Playable Eidos]]
|Upcoming Eidos    = [[Eidos|Upcoming Eidos]]
|NPC             = [[NPC]]
|Mentioned Character = [[Mentioned Character]]<!--
-->}}</format>
</data>
<data source="rarity">
<label>Rarity</label>
<format>{{Icon/Stars|{{{rarity|}}}}}</format>
</data>
<data source="aspect">
<label>Aspect</label>
<format>{{Exists|{{{aspect}}}|{{{{{aspect}}}}}|{{{aspect}}}}}</format>
</data>
<data source="animasterType">
<label>Animaster Type</label>
<format><!--
-->{{#ifexist:{{{animasterType}}}|<!--
-->[[{{{animasterType}}}]]<!---->{{#if:{{{animasterTypeNote|}}}|&nbsp;({{{animasterTypeNote}}})|}}<!---->{{#if:{{{animasterTypeRef|}}}|{{{animasterTypeRef}}}|}}<!--
-->|{{{animasterType}}}<!---->{{#if:{{{animasterTypeNote|}}}|&nbsp;({{{animasterTypeNote}}})|}}<!---->{{#if:{{{animasterTypeRef|}}}|{{{animasterTypeRef}}}|}}<!--
-->}}<!--
-->{{#ifexist:{{{animasterType2}}}|<!--
--><br/>[[{{{animasterType2}}}]]<!---->{{#if:{{{animasterTypeNote2|}}}|&nbsp;({{{animasterTypeNote2}}})|}}<!---->{{#if:{{{animasterTypeRef2|}}}|{{{animasterTypeRef2}}}|}}<!--
-->|<br/>{{{animasterType2}}}<!---->{{#if:{{{animasterTypeNote2|}}}|&nbsp;({{{animasterTypeNote2}}})|}}<!---->{{#if:{{{animasterTypeRef2|}}}|{{{animasterTypeRef2}}}|}}<!--
-->}}<!--
--></format>
</data>
</data>
<data source="animasterType">
<label>animasterType</label>
<format><!--
-->{{#ifexist:{{{animasterType}}}|<!--
-->[[{{{animasterType}}}]]<!---->{{#if:{{{animasterTypeNote|}}}|&nbsp;({{{animasterTypeNote}}})|}}<!---->{{#if:{{{animasterTypeRef|}}}|{{{animasterTypeRef}}}|}}<!--
-->|{{{animasterType}}}<!---->{{#if:{{{animasterTypeNote|}}}|&nbsp;({{{animasterTypeNote}}})|}}<!---->{{#if:{{{animasterTypeRef|}}}|{{{animasterTypeRef}}}|}}<!--
-->}}<!--
-->{{#ifexist:{{{animasterType2}}}|<!--
-->[[{{{animasterType2}}}]]<!---->{{#if:{{{animasterTypeNote2|}}}|&nbsp;({{{animasterTypeNote2}}})|}}<!---->{{#if:{{{animasterTypeRef2|}}}|{{{animasterTypeRef2}}}|}}<!--
-->|{{{animasterType2}}}<!---->{{#if:{{{animasterTypeNote2|}}}|&nbsp;({{{animasterTypeNote2}}})|}}<!---->{{#if:{{{animasterTypeRef2|}}}|{{{animasterTypeRef2}}}|}}<!--
-->}}<!--
--></format>
</data>
</group>
</group>
<group>
<group>
Line 42: Line 55:
-->{{#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}}})}}}}<!--
-->{{{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 source="originalIP">
<label>Original IP</label>
<format><i>{{{originalIP}}}</i></format>
</data>
</section>
<section>
<label>Family</label>
<data source="relatives">
<label>Relatives</label>
</data>
</data>
</section>
</section>
Line 64: Line 129:
Auto-Categorize Only in Main Namespace
Auto-Categorize Only in Main Namespace
-->{{Namespace|main=[[Category:Characters]]{{#vardefine:page_type|character}}<!--
-->{{Namespace|main=[[Category:Characters]]{{#vardefine:page_type|character}}<!--
  Display Title
-->{{#ifeq:{{NAMESPACE}}||<!--
  -->{{#if:{{{name|}}}{{{displaytitle|}}}|{{#ifeq:{{PAGENAME}}|{{{name}}}||{{#ifeq:{{lc:{{{displaytitle|}}}}}|no||{{DISPLAYTITLE:{{{displaytitle|{{{name}}}}}}|noreplace}}}}}}}}<!--
-->}}<!--
Only Sort Playables
Only Sort Playables
-->{{#switch:{{{type}}}<!--
-->{{#switch:{{{type}}}<!--
   -->|Animaster = {{#if:{{{id|}}}|[[Category:Animaster|{{{id}}}]]|[[Category:Animaster]][[Category:Character Missing ID]]}}{{#if:{{{availability|}}}|[[Category:{{{availability}}} Animasters]]}}<!--
   -->|Playable Eidos = {{#if:{{{id|}}}|[[Category:Playable Eidos|{{{id}}}]]|[[Category:Playable Eidos]][[Category:Character Missing ID]]}}<!--
   -->|#default  = <!--
   -->|#default  = <!--
-->}}<!--
-->}}<!--
Type
Type
-->{{#switch:{{{type}}}
-->{{#switch:{{{type}}}
|Animaster = [[Category:Animasters]]
|Playable Eidos    = [[Category:Playable Eidos]]
|NPC   = [[Category:NPCs]]}}<!--
|Upcoming Eidos    = [[Category:Upcoming Eidos]]
|NPC             = [[Category:NPCs]]
|Mentioned Character = [[Category:Mentioned Characters]]<!--
-->}}<!--
Rarity
-->{{#switch:{{{rarity}}}|4|5=[[Category:{{{rarity}}}-Star Eidos]]}}
   {{#if:{{{rarity|}}}|[[Category:Eidos by Rarity|{{#switch:{{{rarity|}}}
  |4        = 0
  |5        = 1
  |#default = 2
  }}]]}}<!--
Aspect
-->{{#if:{{{aspect|}}}|[[Category:{{{aspect}}} Eidos]][[Category:Eidos by Aspect|{{{aspect}}}]]}}<!--
Animaster Type
Animaster Type
-->{{#switch:{{{animasterType}}}|Sovereign|Novarch|Other=[[Category:{{{animasterType}}} Animasters]]}}<!--
-->{{#switch:{{{animasterType}}}|Sovereign|Novarch|Other=[[Category:{{{animasterType}}} Animasters]]}}<!--
-->{{#switch:{{{animasterType2}}}|Sovereign|Novarch|Other=[[Category:{{{animasterType2}}} Animasters]]}}<!--
-->{{#switch:{{{animasterType2}}}|Sovereign|Novarch|Other=[[Category:{{{animasterType2}}} Animasters]]}}<!--
-->{{#if:{{{animasterType|}}}|[[Category:Characters by Animaster Type|{{#switch:{{{animasterType|}}}
Species
  |Sovereign = 0
-->{{#if:{{{species|}}}
  |Novarch  = 1
|{{#switch:{{Replace|{{{species}}}|s1=%[|s2=%]}}
  |Other    = 2
|#default = [[Category:{{Replace|{{{species}}}|s1=%[|s2=%]}} Characters]]
   |#default  = 3
}}
  }}]]}}<!--
|[[Category:Characters without Known Species]]
}}<!--
-->{{#if:{{{species2|}}}
|{{#switch:{{Replace|{{{species2}}}|s1=%[|s2=%]}}
|#default = [[Category:{{Replace|{{{species2}}}|s1=%[|s2=%]}} Characters]]
}}}}<!--
   Factions
-->{{#if:{{{faction|}}}|[[Category:{{{faction}}}]]}}<!--
-->{{#if:{{{faction2|}}}|[[Category:{{{faction2}}}]]}}<!--
-->{{#if:{{{faction3|}}}|[[Category:{{{faction3}}}]]}}<!--
   Voice Actors
   Voice Actors
-->{{#if:{{{vaEN|}}}|[[Category:Characters With Known English Voice Actor]]|[[Category:Characters Without Known English Voice Actor]]}}<!--
-->{{#if:{{{vaEN|}}}|[[Category:Characters With Known English Voice Actor]]|[[Category:Characters Without Known English Voice Actor]]}}<!--

Latest revision as of 08:38, 14 July 2026

Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.

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.

Template parameters[Edit template data]

This template has custom formatting.

ParameterDescriptionTypeStatus
IDid

Character's ID (if playable)

Numberoptional
Namename

Character's name

Default
{{PAGENAME}}
Stringoptional
Titletitle

Character's main title (if applicable)

Stringsuggested
Second Titletitle2

Character's secondary title (if applicable)

Stringoptional
Imageimage

Character's image(s)

Contentrequired
Typetype

Character's type

Example
Playable Kardia, Upcoming Kardia, NPC, Mentioned Character
Stringrequired
Rarityrarity

Animaster's rarity

Example
4, 5
Numberoptional
Animaster TypeanimasterType

Animaster type (if applicable)

Example
Sovereign, Novarch, Other
Stringoptional
Second Animaster TypeanimasterType2

Secondary Animaster type (if applicable)

Example
Sovereign, Novarch, Other
Stringoptional
Other NamesotherNames

Character's other names or aliases (if applicable)

Stringoptional
Speciesspecies

Character's known species

Example
Human
Stringoptional
Factionfaction

Factions related to character

Example
Nexus Association
Stringoptional
Relativesrelatives

Character's relatives (if applicable)

Stringoptional
English VAvaEN

Character's English VA

Stringrequired
Chinese VAvaCN

Character's Chinese VA

Stringrequired
Japanese VAvaJP

Character's Japanese VA

Stringrequired
Korean VAvaKR

Character's Korean VA

Stringrequired