Template:Character Infobox: Difference between revisions
m this should work |
also making label singular in that case |
||
| (6 intermediate revisions by 2 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 12: | Line 12: | ||
<label>Type</label> | <label>Type</label> | ||
<format>{{#switch:{{{type}}} | <format>{{#switch:{{{type}}} | ||
|Playable | |Playable Eidos = [[Eidos|Playable Eidos]] | ||
|Upcoming | |Upcoming Eidos = [[Eidos|Upcoming Eidos]] | ||
|NPC = [[NPC | |NPC = [[NPC]]<!-- | ||
-->}}</format> | -->}}</format> | ||
</data> | </data> | ||
| Line 21: | Line 20: | ||
<label>Rarity</label> | <label>Rarity</label> | ||
<format>{{Icon/Stars|{{{rarity|}}}}}</format> | <format>{{Icon/Stars|{{{rarity|}}}}}</format> | ||
</data> | |||
<data source="aspect"> | |||
<label>Aspect</label> | |||
<format>{{Exists|{{{aspect}}}|{{{{{aspect}}}}}|{{{aspect}}}}}</format> | |||
</data> | </data> | ||
<data source="animasterType"> | <data source="animasterType"> | ||
| Line 44: | Line 47: | ||
</data> | </data> | ||
<data source="title2"> | <data source="title2"> | ||
<label>Other | <label>Other Title{{#if:{{{title3|}}}|s}}</label> | ||
<format>{{#if:{{{ | <format>{{#if:{{{title3|}}}|<ul><!-- | ||
--><li>{{{title2}}}</li><!-- | --><li>{{{title2}}}</li><!-- | ||
-->{{#if:{{{title3|}}}|<li>{{{title3}}}</li>}}<!-- | -->{{#if:{{{title3|}}}|<li>{{{title3}}}</li>}}<!-- | ||
-->{{#if:{{{title4|}}}|<li>{{{title4}}}</li>}}<!-- | -->{{#if:{{{title4|}}}|<li>{{{title4}}}</li>}}<!-- | ||
-->{{#if:{{{title5|}}}|<li>{{{title5}}}</li>}}<!-- | -->{{#if:{{{title5|}}}|<li>{{{title5}}}</li>}}<!-- | ||
--></ul>}}</format> | --></ul>|{{{title2}}}}}</format> | ||
</data> | </data> | ||
<data source="species"> | <data source="species"> | ||
| Line 131: | Line 134: | ||
Only Sort Playables | Only Sort Playables | ||
-->{{#switch:{{{type}}}<!-- | -->{{#switch:{{{type}}}<!-- | ||
-->|Playable | -->|Playable Eidos = {{#if:{{{id|}}}|[[Category:Playable Eidos|{{{id}}}]]|[[Category:Playable Eidos]][[Category:Character Missing ID]]}}<!-- | ||
-->|#default = <!-- | -->|#default = <!-- | ||
-->}}<!-- | -->}}<!-- | ||
Type | Type | ||
-->{{#switch:{{{type}}} | -->{{#switch:{{{type}}} | ||
|Playable | |Playable Eidos = [[Category:Playable Eidos]] | ||
|Upcoming | |Upcoming Eidos = [[Category:Upcoming Eidos]] | ||
|NPC = [[Category:NPCs | |NPC = [[Category:NPCs]]<!-- | ||
-->}}<!-- | -->}}<!-- | ||
Rarity | Rarity | ||
-->{{#switch:{{{rarity}}}|4|5=[[Category:{{{rarity}}}-Star | -->{{#switch:{{{rarity}}}|4|5=[[Category:{{{rarity}}}-Star Eidos]]}} | ||
{{#if:{{{rarity|}}}|[[Category: | {{#if:{{{rarity|}}}|[[Category:Eidos by Rarity|{{#switch:{{{rarity|}}} | ||
|4 = 0 | |4 = 0 | ||
|5 = 1 | |5 = 1 | ||
|#default = 2 | |#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]]}}<!-- | ||