Template:Infobox: Difference between revisions

From FortWiki
Jump to navigation Jump to search
In progress, tweaking format
mNo edit summary
Line 1: Line 1:
<!-- A template for creating an infobox for a military person -->
<!-- A template for creating an infobox for a military person -->


<div class="infobox" style="border: 1px solid; background: transparent; float: right; margin: 0 0 1em 1em; padding: 1 em; width: 400px">
<div class="infobox" style="border: .5px solid; background: transparent; float: right; margin: 0 0 1em 1em; padding: 1 em; width: 350px">


<div class="infobox-title" style="background: #ddd; padding: 10px; font-size: 2em; text-align: center"> {{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="infobox-title" style="background: #ddd; padding: 10px; font-size: 2em; text-align: center"> {{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
Line 7: Line 7:
<div class="infobox-image" style="text-align: center>[[File:{{PAGENAME:{{{image}}}}}|300px]]
<div class="infobox-image" style="text-align: center>[[File:{{PAGENAME:{{{image}}}}}|300px]]


<table style="infobox-table" style="background-repeat: no-repeat">
<div style="infobox-table" style="background-repeat: no-repeat">
     <th style="text-align: left; vertical-align: top; width: 120px">
     <th style="text-align: left; padding: 20px;">
         <td style="padding: 10px; vertical-align: top">
         <td style="vertical-align: top">




Line 16: Line 16:
<!-- Date of Birth - MM DD YYYY-->
<!-- Date of Birth - MM DD YYYY-->
<table class="infobox-table">{{#if:{{{birth_date}}}|<tr>
<table class="infobox-table">{{#if:{{{birth_date}}}|<tr>
     <th>Born</th>
     <th style="text-align:left; padding: 5px"> Born</th>
     <td>{{{birth_date}}}</td>
     <td style=">{{{birth_date}}}</td>


<!-- Place of Birth -->
<!-- Place of Birth -->
Line 26: Line 26:
<!-- Date of Death - DD MM YYYY-->
<!-- Date of Death - DD MM YYYY-->
</tr>}}{{#if:{{{death_date}}}|<tr>
</tr>}}{{#if:{{{death_date}}}|<tr>
     <th>Died</th>
     <th style="text-align:left; padding: 5px">Died</th>
     <td>{{{death_date}}}</td>
     <td>{{{death_date}}}</td>


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


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


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


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


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


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



Revision as of 04:38, 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}}}