Template:Infobox: Difference between revisions

From FortWiki
Jump to navigation Jump to search
No edit summary
Draft for an infobox for "military person" pages
Line 1: Line 1:
<!-- A template for creating an infobox for a military person -->
<div class="infobox">
<div class="infobox">
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|300px]]</div>}}
<div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|300px]]</div>}}


<table class="infobox-table">{{#if:{{{name|}}}|<tr>
<!-- Date of Birth - MM DD YYYY-->
    <th>Parameter 1</th>
<table class="infobox-table">{{#if:{{{birth_date}}}|<tr>
    <td>{{{name}}}</td>
     <th>Born</th>
 
</tr>}}{{#if:{{{birth_date|}}}|<tr>
     <th>Parameter 2</th>
     <td>{{{birth_date}}}</td>
     <td>{{{birth_date}}}</td>


</tr>}}{{#if:{{{birth_place|}}}|<tr>
<!-- Place of Birth -->
     <th>Parameter 3</th>
</tr>}}{{#if:{{{birth_place}}}|<tr>
     <th></th>
     <td>{{{birth_place}}}</td>
     <td>{{{birth_place}}}</td>


</tr>}}{{#if:{{{death_date|}}}|<tr>
<!-- Date of Death - DD MM YYYY-->
     <th>Parameter 4</th>
</tr>}}{{#if:{{{death_date}}}|<tr>
     <th>Died</th>
     <td>{{{death_date}}}</td>
     <td>{{{death_date}}}</td>


</tr>}}{{#if:{{{branch|}}}|<tr>
<!-- Place of Death -->
     <th>Parameter 5</th>
</tr>}}{{#if:{{{death_place}}}|<tr>
    <th></th>
    <td>{{{death_place}}}</td>
 
<!-- Service Branch -->
</tr>}}{{#if:{{{branch}}}|<tr>
     <th>Branch</th>
     <td>{{{branch}}}</td>
     <td>{{{branch}}}</td>


</tr>}}</table>
<!-- Rank -->
</tr>}}{{#if:{{{serviceyears|}}}|<tr>
</tr>}}{{#if:{{{rank}}}|<tr>
    <th>Parameter 6</th>
     <th>Rank</th>
    <td>{{{serviceyears}}}</td>
 
</tr>}}</table>
</tr>}}{{#if:{{{rank|}}}|<tr>
     <th>Parameter 7</th>
     <td>{{{rank}}}</td>
     <td>{{{rank}}}</td>


</tr>}}</table>
<!-- Units-->
</tr>}}{{#if:{{{unit|}}}|<tr>
</tr>}}{{#if:{{{unit}}}|<tr>
     <th>Parameter 5</th>
     <th>Unit</th>
     <td>{{{unit}}}</td>
     <td>{{{unit}}}</td>


</tr>}}</table>
<!-- Commands-->
</tr>}}{{#if:{{{commands|}}}|<tr>
</tr>}}{{#if:{{{commands}}}|<tr>
     <th>Parameter 5</th>
     <th>Commands</th>
     <td>{{{commands}}}</td>
     <td>{{{commands}}}</td>


</tr>}}</table>
<!-- Battles/Wars-->
</tr>}}{{#if:{{{battles|}}}|<tr>
</tr>}}{{#if:{{{commands}}}|<tr>
     <th>Parameter 5</th>
     <th>Battles/Wars</th>
     <td>{{{battles}}}</td>
     <td>{{{battles}}}</td>
<!-- Military Education-->
</tr>}}{{#if:{{{alma_mater}}}|<tr>
    <th>Alma mater</th>
    <td>{{{alma_mater}}}</td>
<!-- Insert additional parameters above this line -->


</tr>}}</table>
</tr>}}</table>
</div>
</div>
<!-- SAMPLE TEXT FOR NEW PARAMETERS:
   
<table class="infobox-table">{{#if:{{{param1|}}}|<tr>
    <th>Parameter 1</th>
    <td>{{{param1}}}</td>
-->

Revision as of 19:42, 30 September 2025


Infobox


Born {{{birth_date}}}
{{{birth_place}}}
Died {{{death_date}}}
{{{death_place}}}
Branch {{{branch}}}
Rank {{{rank}}}
Unit {{{unit}}}
Commands {{{commands}}}
Battles/Wars {{{battles}}}
Alma mater {{{alma_mater}}}