Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
Josh Pierson (talk | contribs) No edit summary |
Josh Pierson (talk | contribs) 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"> | <!-- Date of Birth - MM DD YYYY--> | ||
<table class="infobox-table">{{#if:{{{birth_date}}}|<tr> | |||
<th>Born</th> | |||
<th> | |||
<td>{{{birth_date}}}</td> | <td>{{{birth_date}}}</td> | ||
</tr>}}{{#if:{{{birth_place | <!-- Place of Birth --> | ||
<th> | </tr>}}{{#if:{{{birth_place}}}|<tr> | ||
<th></th> | |||
<td>{{{birth_place}}}</td> | <td>{{{birth_place}}}</td> | ||
</tr>}}{{#if:{{{death_date | <!-- Date of Death - DD MM YYYY--> | ||
<th> | </tr>}}{{#if:{{{death_date}}}|<tr> | ||
<th>Died</th> | |||
<td>{{{death_date}}}</td> | <td>{{{death_date}}}</td> | ||
</tr>}}{{#if:{{{branch | <!-- Place of Death --> | ||
<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> | ||
< | <!-- Rank --> | ||
</tr>}}{{#if:{{{rank}}}|<tr> | |||
<th>Rank</th> | |||
</tr>}}{{#if:{{{rank | |||
<th> | |||
<td>{{{rank}}}</td> | <td>{{{rank}}}</td> | ||
< | <!-- Units--> | ||
</tr>}}{{#if:{{{unit | </tr>}}{{#if:{{{unit}}}|<tr> | ||
<th> | <th>Unit</th> | ||
<td>{{{unit}}}</td> | <td>{{{unit}}}</td> | ||
< | <!-- Commands--> | ||
</tr>}}{{#if:{{{commands | </tr>}}{{#if:{{{commands}}}|<tr> | ||
<th> | <th>Commands</th> | ||
<td>{{{commands}}}</td> | <td>{{{commands}}}</td> | ||
</ | <!-- Battles/Wars--> | ||
</tr>}}{{#if:{{{ | </tr>}}{{#if:{{{commands}}}|<tr> | ||
<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}}} |