Template:Infobox: Difference between revisions

From FortWiki
Jump to navigation Jump to search
mNo edit summary
Tag: Reverted
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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" 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-title" style="background-color: lightblue; margin: 2px; font-size: 1.25em; font-weight: bold; text-align: center"> {{{title|{{PAGENAME}}}}}
<div class="infobox-title" style="background-color: lightblue; margin: 4px; font-size: 1.25em; font-weight: bold; text-align: center"> {{{title|{{PAGENAME}}}}}


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


<div class="image_caption" style="text-align: center"> {{{image_caption}}}
<hr style="margin-left: 4px; margin-right: 4px">
<hr style="margin-left: 10px; margin-right: 10px">


<!-- Table formatting below-->
<!-- Table formatting below-->
Line 49: Line 48:


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


<!-- Relations-->
<!-- Relations-->
</tr>}}{{#if:{{{Relations}}}|<tr>
</tr>}}{{#if:{{{relations}}}|<tr>
     <th style="position: sticky; vertical-align:top; text-align:left; padding-left: 10px">Relations</th>
     <th style="position: sticky; vertical-align:top; text-align:left; padding-left: 10px">Relations</th>
     <td style="padding-left:25px">{{{relations}}}</td>
     <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>

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}}}