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}} <..."
 
Raven.Familiar (talk | contribs)
This might work, idk
 
(31 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly><infobox theme-source="name">
<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>{{#switch:{{{type}}}
</includeonly>
|Playable Eidos     = [[Eidos|Playable Eidos]]
<noinclude>
|Upcoming Eidos    = [[Eidos|Upcoming Eidos]]
Example usage:
|NPC             = [[NPC]]
{{Character Infobox
|Mentioned Character = [[Mentioned Character]]<!--
  | title1=Example
-->}}</format>
  | image1=Example.jpg
</data>
  | caption-image1=Example
<data source="rarity">
  | row1=Example
<label>Rarity</label>
  | row2=Example
<format>{{Icon/Stars|{{{rarity|}}}}}</format>
  | row3=Example}}
</data>
<pre>
<data source="aspect">
{{Character Infobox
<label>Aspect</label>
  | title1=Example
<format>{{Exists|{{{aspect}}}|{{{{{aspect}}}}}|{{{aspect}}}}}</format>
  | image1=Example.jpg
</data>
  | caption-image1=Example
<data source="animasterType">
  | row1=Example
<label>Animaster Type</label>
  | row2=Example
<format><!--
  | row3=Example}}
-->{{#ifexist:{{{animasterType}}}|<!--
</pre>
-->[[{{{animasterType}}}]]<!---->{{#if:{{{animasterTypeNote|}}}|&nbsp;({{{animasterTypeNote}}})|}}<!---->{{#if:{{{animasterTypeRef|}}}|{{{animasterTypeRef}}}|}}<!--
<templatedata>
-->|{{{animasterType}}}<!---->{{#if:{{{animasterTypeNote|}}}|&nbsp;({{{animasterTypeNote}}})|}}<!---->{{#if:{{{animasterTypeRef|}}}|{{{animasterTypeRef}}}|}}<!--
{"params":{"title1":{"suggested":true},"image1":{"suggested":true},"caption-image1":{"suggested":true},"row1":{"suggested":true},"row2":{"suggested":true},"row3":{"suggested":true}},"sets":[],"maps":{}}
-->}}<!--
</templatedata>
-->{{#ifexist:{{{animasterType2}}}|<!--
</noinclude>
--><br/>[[{{{animasterType2}}}]]<!---->{{#if:{{{animasterTypeNote2|}}}|&nbsp;({{{animasterTypeNote2}}})|}}<!---->{{#if:{{{animasterTypeRef2|}}}|{{{animasterTypeRef2}}}|}}<!--
-->|<br/>{{{animasterType2}}}<!---->{{#if:{{{animasterTypeNote2|}}}|&nbsp;({{{animasterTypeNote2}}})|}}<!---->{{#if:{{{animasterTypeRef2|}}}|{{{animasterTypeRef2}}}|}}<!--
-->}}<!--
--></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>
<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>
</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}}<!--
  Display Title
-->{{#ifeq:{{NAMESPACE}}||<!--
  -->{{#if:{{{name|}}}{{{displaytitle|}}}|{{#ifeq:{{PAGENAME}}|{{{name}}}||{{#ifeq:{{lc:{{{displaytitle|}}}}}|no||{{DISPLAYTITLE:{{{displaytitle|{{{name}}}}}}|noreplace}}}}}}}}<!--
-->}}<!--
Only Sort Playables
-->{{#switch:{{{type}}}<!--
  -->|Playable Eidos = {{#if:{{{id|}}}|[[Category:Playable Eidos|{{{id}}}]]|[[Category:Playable Eidos]][[Category:Character Missing ID]]}}<!--
  -->|#default  = <!--
-->}}<!--
Type
-->{{#switch:{{{type}}}
|Playable Eidos    = [[Category:Playable Eidos]]
|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
-->{{#switch:{{{animasterType}}}|Sovereign|Novarch|Other=[[Category:{{{animasterType}}} Animasters]]}}<!--
-->{{#switch:{{{animasterType2}}}|Sovereign|Novarch|Other=[[Category:{{{animasterType2}}} Animasters]]}}<!--
Species
-->{{#if:{{{species|}}}
|{{#switch:{{Replace|{{{species}}}|s1=%[|s2=%]}}
|#default = [[Category:{{Replace|{{{species}}}|s1=%[|s2=%]}} Characters]]
}}
|[[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
-->{{#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>