Difference between revisions of "Template:Infobox species"

From Dwaia Wiki
Jump to navigation Jump to search
(Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption1"/> </image> <group collapse="ope...")
 
Line 1: Line 1:
<infobox>
+
<table class="wikitable infobox">
  <title source="title1">
+
<tr>
    <default>{{PAGENAME}}</default>
+
<th colspan="2" style="font-size:20px">{{{title1|{{PAGENAME}}}}}</th>
  </title>
+
</tr>{{#if:{{{image1|}}}|<tr>
  <image source="image1">
+
<td colspan="2" style="font-size:20px">[[File:{{{image1}}|frameless]]</td>
    <caption source="caption1"/>
+
</tr>|}}{{#if:{{{caption1|}}}|<tr>
  </image>
+
<td colspan="2" class="caption">{{{caption1}}}</td>
  <group collapse="open">
+
</tr>|}}{{#if:{{{element|}}}{{{level|}}}{{{skills|}}}{{{str|}}}{{{dex|}}}{{{con|}}}{{{int|}}}{{{wis|}}}{{{cha|}}}|<tr>
    <header>Stats</header>
+
<th colspan="2" style="font-size:16px">Stats</td>
    <data source="element">
+
</tr><tr>
      <label>Element</label>
+
<td>Element</td><td>{{{element|-}}}</td>
    </data>
+
</tr><tr>
    <data source="level">
+
<td>Level</td><td>{{{level|-}}}</td>
      <label>Level</label>
+
</tr><tr>
    </data>
+
<td>Skills</td><td>{{{skills|-}}}</td>
    <data source="skills">
+
</tr><tr>
      <label>Skills</label>
+
<td>STR</td><td>{{{str|-}}}</td>
    </data>
+
</tr><tr>
    <data source="str">
+
<td>DEX</td><td>{{{dex|-}}}</td>
      <label>STR</label>
+
</tr><tr>
    </data>
+
<td>CON</td><td>{{{con|-}}}</td>
    <data source="dex">
+
</tr><tr>
      <label>DEX</label>
+
<td>INT</td><td>{{{int|-}}}</td>
    </data>
+
</tr><tr>
    <data source="con">
+
<td>WIS</td><td>{{{wis|-}}}</td>
      <label>CON</label>
+
</tr><tr>
    </data>
+
<td>CHA</td><td>{{{cha|-}}}</td>
    <data source="int">
+
</tr><tr>
      <label>INT</label>
+
<td class="caption">[[Stats Explained|What are these stats?]]</td>
    </data>
+
</tr>|}}<tr>
    <data source="wis">
+
{{#if:{{{general_body_type|}}}{{{prominent_features|}}}{{{height|}}}{{{weight|}}}|
      <label>WIS</label>
+
<th colspan="2" style="font-size:16px">Appearance</td>
    </data>
+
</tr>{{#if:{{{general_body_type|}}}|<tr>
    <data source="cha">
+
<td>General Body Type</td><td>{{{general_body_type}}}</td>
      <label>CHA</label>
+
</tr>|}}{{#if:{{{prominent_features|}}}|<tr>
    </data>
+
<td>Prominent Features</td><td>{{{prominent_features}}}</td>
    <data>
+
</tr>|}}{{#if:{{{height|}}}|<tr>
        <default>{{#if:{{{str|}}}{{{con|}}}{{{dex|}}}{{{int|}}}{{{cha|}}}{{{wis|}}}|[[Stats Explained|What are these stats?]]}}</default>
+
<td>Height</td><td>{{{height}}}</td>
    </data>
+
</tr>|}}{{#if:{{{weight|}}}|<tr>
   
+
<td>Weight</td><td>{{{weight}}}</td>
  </group>
+
</tr>|}}|}}
  <group>
+
{{#if:{{{territory|}}}{{{preferred_habitat|}}}|<tr>
    <header>Appearance</header>
+
<th colspan="2" style="font-size:16px">Environment</td>
    <data source="general_body_type">
+
</tr>{{#if:{{{territory|}}}|<tr>
      <label>General Body Type</label>
+
<td>Territory</td><td>{{{territory}}}</td>
    </data>
+
</tr>|}}{{#if:{{{preferred_habitat|}}}|<tr>
    <data source="prominent_features">
+
<td>Preferred Habitat</td><td>{{{preferred_habitat}}}</td>
      <label>Prominent Features</label>
+
</tr>|}}|}}
    </data>
+
</table>
    <data source="height">
+
 
      <label>Height</label>
 
    </data>
 
    <data source="weight">
 
      <label>Weight</label>
 
    </data>
 
  </group>
 
  <group>
 
    <header>Environment</header>
 
    <data source="territory">
 
      <label>Territory</label>
 
    </data>
 
    <data source="preferred_habitat">
 
      <label>Preferred Habitat</label>
 
    </data>
 
  </group>
 
</infobox>
 
 
<noinclude>
 
<noinclude>
 
Example usage:<pre>
 
Example usage:<pre>

Revision as of 13:06, 28 January 2019

Infobox species


Example usage:

{{Infobox species
|title1=Example
|image1=Example
|caption1=Example
|element=Example
|level=Example
|skills=Example
|str=Example
|con=Example
|dex=Example
|int=Example
|cha=Example
|wis=Example
|general_body_type=Example
|prominent_features=Example
|height=Example
|weight=Example
|territory=Example
|preferred_habitat=Example
}}