Template:Anima Infobox: Difference between revisions

Created page with "<includeonly> <infobox> <title source="title"> <default>{{PAGENAME}}</default> </title> <image source="image"> <caption source="caption-image"/> </image> <data source="aspect"> <label>Aspect</label> </data> <data source="trait"> <label>Trait</label> </data> <data source="height"> <label>Height</label> </data> <data source="energy"> <label>Energy</label> </data> <data source="description"> <label>Description</label>..."
 
No edit summary
 
(30 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly><infobox type="anima">
<infobox>
<title source="name">
  <title source="title">
<format><span class="pi-title-text">{{{name|{{PAGENAME}}}}}</span>{{#if:{{{id|}}}|<span class="pi-anima-id">&nbsp;No. {{{id}}}</span>}}</format>
    <default>{{PAGENAME}}</default>
</title>
  </title>
<group>
  <image source="image">
<image source="image"><caption source="caption"/></image>
    <caption source="caption-image"/>
</group><!--
  </image>
Anima Data
  <data source="aspect">
-->
    <label>Aspect</label>
<group>
  </data>
<data source="rarity">
  <data source="trait">
<label>Rarity</label>
    <label>Trait</label>
<format>{{Icon/Stars|{{{rarity|}}}}}</format>
  </data>
</data>
  <data source="height">
<data source="aspect">
    <label>Height</label>
<label>Aspect</label>
  </data>
<format>{{Exists|{{{aspect}}}|{{{{{aspect}}}}}|{{{aspect}}}}}</format>
  <data source="energy">
</data>
    <label>Energy</label>
<data source="trait">
  </data>
<label>Trait</label>
  <data source="description">
<format>[[{{{trait}}}]]</format>
    <label>Description</label>
</data>
  </data>
<data source="role">
</infobox>
<label>Role</label>
</includeonly>
<format>{{{role}}}</format>
<noinclude>
</data>
Example usage:
<data source="damage">
{{Anima Infobox
<label>Damage Type</label>
   | title=Example
<format>{{{damage}}}</format>
  | image=Example.jpg
</data>
  | caption-image=Example
</group>
  | aspect=Example
<group>
  | trait=Example
<header>Bio</header>
  | height=Example
<data source="height">
  | energy=Example
<label>Height</label>
  | description=Example}}
<format>{{{height}}} Units</format>
<pre>
</data>
{{Anima Infobox
<data source="energy">
  | title=Example
<label>Energy</label>
  | image=Example.jpg
<format>{{{energy}}} Joules</format>
  | caption-image=Example
</data>
  | aspect=Example
    <data source="description">
  | trait=Example
    <format>'''Description'''<br/>{{{description}}}</format>
  | height=Example
</data>
  | energy=Example
   </group>
  | description=Example}}
</infobox><!--
</pre>
Auto-Categorize Only in Main Namespace
<templatedata>
-->{{Namespace|main=[[Category:Animas]]<!--
{"params":{"title":{"suggested":true},"image":{"suggested":true},"caption-image":{"suggested":true},"aspect":{"suggested":true},"trait":{"suggested":true},"height":{"suggested":true},"energy":{"suggested":true},"description":{"suggested":true}},"sets":[],"maps":{}}
Sort
</templatedata>
-->{{#if:{{{id|}}}|[[Category:Anima|{{{id}}}]]|[[Category:Anima]][[Category:Anima Missing ID]]}}<!--
</noinclude>
Rarity
-->{{#switch:{{{rarity}}}|3|4|5=[[Category:{{{rarity}}}-Star Anima]]}}
  {{#if:{{{rarity|}}}|[[Category:Anima by Rarity|{{#switch:{{{rarity|}}}
  |3        = 0
  |4        = 1
  |5        = 2
  |#default = 3
  }}]]}}<!--
Type
-->{{#ifeq:{{{type}}}|Special Anima|[[Category:Special Anima]]|}}<!--
Aspect
-->{{#if:{{{aspect|}}}|[[Category:{{{aspect}}} Anima]][[Category:Anima by Aspect|{{{aspect}}}]]}}<!--
Trait
-->{{#if:{{{trait|}}}|[[Category:{{{trait}}} Anima]][[Category:Anima by Trait|{{{trait}}}]]}}<!--
Role
-->{{#if:{{{role|}}}|[[Category:{{{role}}} Anima]][[Category:Anima by Combat Role|{{{role}}}]]}}<!--
Damage Type
-->{{#if:{{{damage|}}}|[[Category:{{{damage}}} Anima]][[Category:Anima by Damage Type|{{{damage}}}]]}}<!--
-->}}</includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>