Template:Infobox: Difference between revisions

From FortWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- A template for creating an infobox for a military person -->
<div class="infobox" style="font-family: sans-serif; font-size: 0.875em; border: .5px solid; background: light gray; float: right; margin: 0 0 0 0; width: 300px">


<div class="infobox" ="tg-qpup" style="border: 1px solid; background: transparent; float: right; margin: 0 0 1em 1em; padding: 1 em; width: 400px">
<div class="infobox-title" style="background-color: lightblue; margin: 4px; font-size: 1.25em; font-weight: bold; text-align: center"> {{{title|{{PAGENAME}}}}}


<div class="infobox-title" style="font-size: 2em; text-align: center"> {{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<!-- Image - replace "Image:SAMPLE" with file name, e.g., "Image:John_T._Greble.jpg" -->
</div>{{#if:{{{image}}}|
<div class="infobox-image" style="text-align: center; padding=10px>[[File:{{PAGENAME:{{{image}}}}}|220px]]<br>{{{image_caption}}}</div>}}


<div class="infobox-image" style="text-align:center>[[File:{{PAGENAME:{{{image}}}}}|300px]]
<hr style="margin-left: 4px; margin-right: 4px">


<table class="th" style="text-align: right; vertical-align: top; width: 120px">
<!-- Table formatting below-->
<table class ="infobox-table" style="background-repeat: no-repeat">


<table class="td" style="vertical-align: top">
<!-- Date/Place of Birth - MM DD YYYY-->
 
 
</div>}}
 
<!-- 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="position: sticky; vertical-align:top; padding-left: 10px top; text-align:left; padding-left: 10px"> Born</th>
     <td>{{{birth_date}}}</td>
     <td style="padding-left:25px">{{{birth_date}}}<br>{{{birth_place}}}</td>
 
<!-- Place of Birth -->
</tr>}}{{#if:{{{birth_place}}}|<tr>
    <th></th>
    <td>{{{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>Died</th>
     <th style="position: sticky; vertical-align:top; padding-left: 10px top; text-align:left; padding-left: 10px">Died</th>
     <td>{{{death_date}}}</td>
     <td style="padding-left:25px">{{{death_date}}}<br>{{{death_place}}}</td>
 
<!-- Place of Death -->
</tr>}}{{#if:{{{death_place}}}|<tr>
    <th></th>
    <td>{{{death_place}}}</td>


<!-- Service Branch -->
<!-- Service Branch -->
</tr>}}{{#if:{{{branch}}}|<tr>
</tr>}}{{#if:{{{branch}}}|<tr>
     <th>Branch</th>
     <th style="position: sticky; vertical-align:top; text-align:left; padding-left: 10px">Branch</th>
     <td>{{{branch}}}</td>
     <td style="padding-left:25px">{{{branch}}}</td>


<!-- Rank -->
<!-- Rank -->
</tr>}}{{#if:{{{rank}}}|<tr>
</tr>}}{{#if:{{{rank}}}|<tr>
     <th>Rank</th>
     <th style="position: sticky; vertical-align:top; text-align:left; padding-left: 10px">Rank</th>
     <td>{{{rank}}}</td>
     <td style="padding-left:25px">{{{rank}}}</td>


<!-- Units-->
<!-- Units-->
</tr>}}{{#if:{{{unit}}}|<tr>
</tr>}}{{#if:{{{unit}}}|<tr>
     <th>Unit</th>
     <th style="position: sticky; vertical-align:top; text-align:left; padding-left: 10px">Unit</th>
     <td>{{{unit}}}</td>
     <td style="padding-left:25px">{{{unit}}}</td>


<!-- Commands-->
<!-- Commands-->
</tr>}}{{#if:{{{commands}}}|<tr>
</tr>}}{{#if:{{{commands}}}|<tr>
     <th>Commands</th>
     <th style="position: sticky; vertical-align:top; text-align:left; padding-left: 10px">Commands</th>
     <td>{{{commands}}}</td>
     <td style="padding-left:25px">{{{commands}}}</td>
 
<!-- Awards-->
</tr>}}{{#if:{{{awards}}}|<tr>
    <th style="position: sticky; vertical-align:top; text-align:left; padding-left: 10px">Awards</th>
    <td style="padding-left:25px">{{{awards}}}</td>


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


<!-- Military Education-->
<!-- Military Education-->
</tr>}}{{#if:{{{alma_mater}}}|<tr>
</tr>}}{{#if:{{{alma_mater}}}|<tr>
     <th>Alma mater</th>
     <th style="position: sticky; vertical-align:top; text-align:left; padding-left: 10px">Alma mater</th>
     <td>{{{alma_mater}}}</td>
     <td style="padding-left:25px">{{{alma_mater}}}</td>
 
<!-- Spouse-->
</tr>}}{{#if:{{{spouse}}}|<tr>
    <th style="position: sticky; vertical-align:top; text-align:left; padding-left: 10px">Spouse</th>
    <td style="padding-left:25px">{{{spouse}}}</td>
 
<!-- Relations-->
</tr>}}{{#if:{{{relations}}}|<tr>
    <th style="position: sticky; vertical-align:top; text-align:left; padding-left: 10px">Relations</th>
    <td style="padding-left:25px">{{{relations}}}</td>


<!-- Insert additional parameters above this line -->
<!-- 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>
-->

Latest revision as of 11:34, 3 October 2025

Infobox
[[File:|220px]]
{{{image_caption}}}

Born {{{birth_date}}}
{{{birth_place}}}
Died {{{death_date}}}
{{{death_place}}}
Branch {{{branch}}}
Rank {{{rank}}}
Unit {{{unit}}}
Commands {{{commands}}}
Awards {{{awards}}}
Battles/Wars {{{battles}}}
Alma mater {{{alma_mater}}}
Spouse {{{spouse}}}
Relations {{{relations}}}