Template:Character Infobox: Difference between revisions
Created page with "<includeonly> <infobox> <title source="title1"/> <image source="image1"> <caption source="caption-image1"/> </image> <group> <header source="header1">Section Header</header> <data source="row1"/> <data source="row2"/> <data source="row3"/> </group> </infobox> </includeonly> <noinclude> Example usage: {{Character Infobox | title1=Example | image1=Example.jpg | caption-image1=Example | row1=Example | row2=Example | row3=Example}} <..." |
very basic info for now |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><infobox> | ||
<infobox> | <title source="name"> | ||
<default>{{PAGENAME}}</default> | |||
</title> | |||
<header name="title">{{{title|}}}</header> | |||
<group> | |||
<image source="image"><caption source="caption"/></image> | |||
</group> | |||
<group layout="vertical"><!-- | |||
Character Data | |||
--><data source="type"> | |||
<label>Type</label> | |||
</ | <format>[[{{{type}}}]]</format> | ||
</ | </data> | ||
< | <data source="animasterType"> | ||
<label>Type</label> | |||
{{ | <format>[[{{{animasterType}}}]]</format> | ||
</data> | |||
</group> | |||
<group> | |||
<panel> | |||
<section> | |||
<label>Bio</label> | |||
< | <data source="otherNames"> | ||
{{ | <label>Other Names</label> | ||
</data> | |||
<data source="title2"> | |||
<label>Other Titles</label> | |||
<format>{{#if:{{{title2|}}}|<ul><!-- | |||
| | --><li>{{{title2}}}</li><!-- | ||
-->{{#if:{{{title3|}}}|<li>{{{title3}}}</li>}}<!-- | |||
-->{{#if:{{{title4|}}}|<li>{{{title4}}}</li>}}<!-- | |||
-->{{#if:{{{title5|}}}|<li>{{{title5}}}</li>}}<!-- | |||
{ | --></ul>}}</format> | ||
</ | </data> | ||
</noinclude> | </section> | ||
<section> | |||
<label>Voice</label> | |||
<data source="vaEN"> | |||
<label>English</label> | |||
</data> | |||
<data source="vaCN"> | |||
<label>Chinese</label> | |||
</data> | |||
<data source="vaJP"> | |||
<label>Japanese</label> | |||
</data> | |||
<data source="vaKR"> | |||
<label>Korean</label> | |||
</data> | |||
</section> | |||
</panel> | |||
</group> | |||
</infobox><!-- | |||
Auto-Categorize Only in Main Namespace | |||
-->{{Namespace|main=[[Category:Characters]]{{#vardefine:page_type|character}}<!-- | |||
Only Sort Playables | |||
-->{{#switch:{{{type}}}<!-- | |||
-->|Animaster = {{#if:{{{id|}}}|[[Category:Animaster|{{{id}}}]]|[[Category:Animaster]][[Category:Animaster Missing ID]]}}<!-- | |||
-->|#default = <!-- | |||
-->}}<!-- | |||
Type | |||
-->{{#switch:{{{type}}} | |||
|Animaster = [[Category:Animasters]] | |||
|NPC = [[Category:NPCs]]}}<!-- | |||
Animaster Type | |||
-->{{#switch:{{{animasterType}}}|Sovereign|Novarch|Other=[[Category:{{{animasterType}}} Animaster]]}} | |||
{{#if:{{{animasterType|}}}|[[Category:Characters by Animaster Type|{{#switch:{{{animasterType|}}} | |||
|Sovereign = 0 | |||
|Novarch = 1 | |||
|Other = 2 | |||
|#default = 3 | |||
}}]]}}<!-- | |||
Voice Actors | |||
-->{{#if:{{{vaEN|}}}|[[Category:Characters with Known English Voice Actor]]|[[Category:Characters without Known English Voice Actor]]}}<!-- | |||
-->{{#if:{{{vaCN|}}}|[[Category:Characters with Known Chinese Voice Actor]]|[[Category:Characters without Known Chinese Voice Actor]]}}<!-- | |||
-->{{#if:{{{vaJP|}}}|[[Category:Characters with Known Japanese Voice Actor]]|[[Category:Characters without Known Japanese Voice Actor]]}}<!-- | |||
-->{{#if:{{{vaKR|}}}|[[Category:Characters with Known Korean Voice Actor]]|[[Category:Characters without Known Korean Voice Actor]]}}<!-- | |||
-->{{#if:{{{vaEN|}}}{{{vaCN|}}}{{{vaJP|}}}{{{vaKR|}}}|[[Category:Characters with Known Voice Actors]]|[[Category:Characters without Known Voice Actors]]}}<!-- | |||
-->}}<!-- | |||
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | |||