Difference between revisions of "Template:Infobox"

From Orbis Wiki
Jump to navigation Jump to search
orb>Primefac
(Undid revision 855063393 by Jdlrobson (talk) rather problematic change mentioned on talk page, reverting until it can be sorted)
 
m (Remove cause of death)
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Category:Infobox templates|{{remove first word|{{SUBPAGENAME}}}}]]}}}}|}}</includeonly><noinclude>
+
<div class="infobox">
{{documentation}}
+
<div class="infobox-title">
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
+
{{{title|{{PAGENAME}}}}}
</noinclude>
+
</div>
 +
{{#if:{{{image|}}}|
 +
<div class="infobox-image">
 +
[[File:{{{image}}}|300px]]
 +
</div>
 +
}}
 +
{{#if:{{{nickname|}}}|
 +
<p class="infobox-nickname">
 +
{{{nickname}}}
 +
</p>
 +
<hr/>
 +
}}
 +
<table class="infobox-table">
 +
{{#if:{{{born_year|}}}|
 +
<tr>
 +
<th>Born</th>
 +
<td>{{#if:{{{born_date|}}}|{{{born_date}}} |}}{{{born_year}}} {{#if:{{{death_year|}}}||({{Age|year={{{born_year}}} }})}}</td>
 +
</tr>
 +
}}
 +
{{#if:{{{death_year|}}}|
 +
<tr>
 +
<th>Died</th>
 +
<td>{{#if:{{{death_date|}}}|{{{death_date}}} |}}{{{death_year}}} {{#if:{{{born_year|}}}|(age {{#expr: {{{death_year}}}-{{{born_year}}}}})}}</td>
 +
</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>

Latest revision as of 21:48, 28 April 2020

Infobox