Template:Infobox: Difference between revisions

From FortWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 10: Line 10:
<!-- Table formatting below-->
<!-- Table formatting below-->
<div style="infobox-table" style="background-repeat: no-repeat">
<div style="infobox-table" style="background-repeat: no-repeat">
     <th style="text-align: left; padding: 5px;">
     <th style="text-align: left; padding-left: 5px;">
         <td style="vertical-align: top">
         <td style="vertical-align: top">


<!-- Date/Place of Birth - MM DD YYYY-->
<!-- Date/Place of Birth - MM DD YYYY-->
<table class="infobox-table">{{#if:{{{birth_date}}}|<tr>
<table class="infobox-table">{{#if:{{{birth_date}}}|<tr>
     <th style="position: sticky; vertical-align: top; text-align:left; padding: 5px"> Born</th>
     <th style="position: sticky; vertical-align: top; text-align:left; padding-left: 10px; padding-top:10px"> Born</th>
     <td style=">{{{birth_date}}}<br>{{{birth_place}}}</td>
     <td style="padding-top: 10px; padding-left:20px">{{{birth_date}}}<br>{{{birth_place}}}</td>


<!-- Date of Death - DD MM YYYY-->
<!-- Date of Death - DD MM YYYY-->
</tr>}}{{#if:{{{death_date}}}|<tr>
</tr>}}{{#if:{{{death_date}}}|<tr>
     <th style="position: sticky; vertical-align: top; text-align:left; padding: 5px">Died</th>
     <th style="position: sticky; vertical-align: padding-left: 10px top; text-align:left; padding-left: 10px">Died</th>
     <td>{{{death_date}}}<br>{{{death_place}}}</td>
     <td style="padding-left:20px">{{{death_date}}}<br>{{{death_place}}}</td>


<!-- Service Branch -->
<!-- Service Branch -->
</tr>}}{{#if:{{{branch}}}|<tr>
</tr>}}{{#if:{{{branch}}}|<tr>
     <th style="text-align:left; padding: 5px">Branch</th>
     <th style="text-align:left; padding-left: 10px">Branch</th>
     <td>{{{branch}}}</td>
     <td style="padding-left:20px">{{{branch}}}</td>


<!-- Rank -->
<!-- Rank -->
</tr>}}{{#if:{{{rank}}}|<tr>
</tr>}}{{#if:{{{rank}}}|<tr>
     <th style="text-align:left; padding: 5px">Rank</th>
     <th style="text-align:left; padding-left: 10px">Rank</th>
     <td>{{{rank}}}</td>
     <td style="padding-left:20px">{{{rank}}}</td>


<!-- Units-->
<!-- Units-->
</tr>}}{{#if:{{{unit}}}|<tr>
</tr>}}{{#if:{{{unit}}}|<tr>
     <th style="text-align:left; padding: 5px">Unit</th>
     <th style="text-align:left; padding-left: 10px">Unit</th>
     <td>{{{unit}}}</td>
     <td style="padding-left:20px">{{{unit}}}</td>


<!-- Commands-->
<!-- Commands-->
</tr>}}{{#if:{{{commands}}}|<tr>
</tr>}}{{#if:{{{commands}}}|<tr>
     <th style="text-align:left; padding: 5px">Commands</th>
     <th style="text-align:left; padding-left: 10px">Commands</th>
     <td>{{{commands}}}</td>
     <td style="padding-left:20px">{{{commands}}}</td>


<!-- Battles/Wars-->
<!-- Battles/Wars-->
</tr>}}{{#if:{{{commands}}}|<tr>
</tr>}}{{#if:{{{commands}}}|<tr>
     <th style="text-align:left; padding: 5px">Battles/Wars</th>
     <th style="text-align:left; padding-left: 10px">Battles/Wars</th>
     <td>{{{battles}}}</td>
     <td style="padding-left:20px">{{{battles}}}</td>


<!-- Military Education-->
<!-- Military Education-->
</tr>}}{{#if:{{{alma_mater}}}|<tr>
</tr>}}{{#if:{{{alma_mater}}}|<tr>
     <th style="text-align:left; padding: 5px">Alma mater</th>
     <th style="text-align:left; padding-left: 10px">Alma mater</th>
     <td>{{{alma_mater}}}</td>
     <td style="padding-left:20px">{{{alma_mater}}}</td>


<!-- Insert additional parameters above this line -->
<!-- Insert additional parameters above this line -->

Revision as of 09:20, 1 October 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}}}