Template:Character Infobox: Difference between revisions

Jump to navigation Jump to search
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">
  <title source="title1"/>
<default>{{PAGENAME}}</default>
  <image source="image1">
</title>
    <caption source="caption-image1"/>
<header name="title">{{{title|}}}</header>
  </image>
<group>
  <group>
<image source="image"><caption source="caption"/></image>
    <header source="header1">Section Header</header>
</group>
    <data source="row1"/>
<group layout="vertical"><!--
    <data source="row2"/>
Character Data
    <data source="row3"/>
--><data source="type">
  </group>
<label>Type</label>
</infobox>
<format>[[{{{type}}}]]</format>
</includeonly>
</data>
<noinclude>
<data source="animasterType">
Example usage:
<label>Type</label>
{{Character Infobox
<format>[[{{{animasterType}}}]]</format>
  | title1=Example
</data>
  | image1=Example.jpg
</group>
  | caption-image1=Example
<group>
  | row1=Example
<panel>
  | row2=Example
<section>
  | row3=Example}}
<label>Bio</label>
<pre>
<data source="otherNames">
{{Character Infobox
<label>Other Names</label>
  | title1=Example
</data>
  | image1=Example.jpg
<data source="title2">
  | caption-image1=Example
<label>Other Titles</label>
  | row1=Example
<format>{{#if:{{{title2|}}}|<ul><!--
   | row2=Example
--><li>{{{title2}}}</li><!--
  | row3=Example}}
-->{{#if:{{{title3|}}}|<li>{{{title3}}}</li>}}<!--
</pre>
-->{{#if:{{{title4|}}}|<li>{{{title4}}}</li>}}<!--
<templatedata>
-->{{#if:{{{title5|}}}|<li>{{{title5}}}</li>}}<!--
{"params":{"title1":{"suggested":true},"image1":{"suggested":true},"caption-image1":{"suggested":true},"row1":{"suggested":true},"row2":{"suggested":true},"row3":{"suggested":true}},"sets":[],"maps":{}}
--></ul>}}</format>
</templatedata>
</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>