Difference between revisions of "Template:Infobox"

From Orbis Wiki
Jump to navigation Jump to search
m
m (Remove cause of death)
 
(9 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
}}
 
}}
 
{{#if:{{{nickname|}}}|
 
{{#if:{{{nickname|}}}|
<span class="infobox-nickname">
+
<p class="infobox-nickname">
 
{{{nickname}}}
 
{{{nickname}}}
</span>
+
</p>
 +
<hr/>
 
}}
 
}}
{{#if:{{{race|}}}{{{sex|}}}{{{class|}}}|
+
<table class="infobox-table">
<span class="infobox-vitals">
+
{{#if:{{{born_year|}}}|
{{{sex}}} {{{race}}} {{{class}}}
+
<tr>
</span>
+
<th>Born</th>
}}
+
<td>{{#if:{{{born_date|}}}|{{{born_date}}} |}}{{{born_year}}} {{#if:{{{death_year|}}}||({{Age|year={{{born_year}}} }})}}</td>
  <table class="infobox-table">
+
</tr>
{{#if:{{{born|}}}|
+
}}
      <tr>
+
{{#if:{{{death_year|}}}|
        <th>Born</th>
+
<tr>
        <td>{{{born}}}</td>
+
<th>Died</th>
      </tr>}}
+
<td>{{#if:{{{death_date|}}}|{{{death_date}}} |}}{{{death_year}}} {{#if:{{{born_year|}}}|(age {{#expr: {{{death_year}}}-{{{born_year}}}}})}}</td>
  </table>
+
</tr>
 +
}}
 +
{{#if:{{{sex|}}}|
 +
<tr>
 +
<th>Sex</th>
 +
<td>{{{sex}}}</td>
 +
</tr>
 +
}}
 +
{{#if:{{{race|}}}|
 +
<tr>
 +
<th>Race</th>
 +
<td>{{{race}}}</td>
 +
</tr>
 +
}}
 +
{{#if:{{{class|}}}|
 +
<tr>
 +
<th>Class</th>
 +
<td>{{{class}}}</td>
 +
</tr>
 +
}}
 +
{{#if:{{{last_seen|}}}|
 +
<tr>
 +
<th>Last Seen</th>
 +
<td>{{{last_seen}}}</td>
 +
</tr>
 +
}}
 +
</table>
 
</div>
 
</div>

Latest revision as of 21:48, 28 April 2020

Infobox