Template:Infobox: Difference between revisions

From FortWiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
mNo edit summary
 
(42 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox 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">
|name        = Infobox/doc
|bodystyle    =  


|titlestyle  =  
<div class="infobox-title" style="background-color: lightblue; margin: 4px; font-size: 1.25em; font-weight: bold; text-align: center"> {{{title|{{PAGENAME}}}}}
|abovestyle  = background: #cfc;
|subheaderstyle =
|title       = Test Infobox
|above        = Above text
|subheader    = Subheader above image
|subheader2  = Second subheader


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


|headerstyle  = background: #ccf;
<hr style="margin-left: 4px; margin-right: 4px">
|labelstyle  = background: #ddf;
|datastyle    =


|header1 = Header defined alone
<!-- Table formatting below-->
| label1 =
<table class ="infobox-table" style="background-repeat: no-repeat">
|  data1 =
|header2 =
| label2 = Label defined alone does not display (needs data, or is suppressed)
|  data2 =
|header3 =
| label3 =
|  data3 = Data defined alone
|header4 = All three defined (header, label, data, all with same number)
| label4 = does not display (same number as a header)
|  data4 = does not display (same number as a header)
|header5 =
| label5 = Label and data defined (label)
|  data5 = Label and data defined (data)


|belowstyle = background: #ddf;
<!-- Date/Place of Birth - MM DD YYYY-->
|below      = Below text
<table class="infobox-table">{{#if:{{{birth_date}}}|<tr>
}}
    <th style="position: sticky; vertical-align:top; padding-left: 10px top; text-align:left; padding-left: 10px"> Born</th>
    <td style="padding-left:25px">{{{birth_date}}}<br>{{{birth_place}}}</td>
 
<!-- Date of Death - DD MM YYYY-->
</tr>}}{{#if:{{{death_date}}}|<tr>
    <th style="position: sticky; vertical-align:top; padding-left: 10px top; text-align:left; padding-left: 10px">Died</th>
    <td style="padding-left:25px">{{{death_date}}}<br>{{{death_place}}}</td>
 
<!-- Service Branch -->
</tr>}}{{#if:{{{branch}}}|<tr>
    <th style="position: sticky; vertical-align:top; text-align:left; padding-left: 10px">Branch</th>
    <td style="padding-left:25px">{{{branch}}}</td>
 
<!-- Rank -->
</tr>}}{{#if:{{{rank}}}|<tr>
    <th style="position: sticky; vertical-align:top; text-align:left; padding-left: 10px">Rank</th>
    <td style="padding-left:25px">{{{rank}}}</td>
 
<!-- Units-->
</tr>}}{{#if:{{{unit}}}|<tr>
    <th style="position: sticky; vertical-align:top; text-align:left; padding-left: 10px">Unit</th>
    <td style="padding-left:25px">{{{unit}}}</td>
 
<!-- Commands-->
</tr>}}{{#if:{{{commands}}}|<tr>
    <th style="position: sticky; vertical-align:top; text-align:left; padding-left: 10px">Commands</th>
    <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-->
</tr>}}{{#if:{{{battles}}}|<tr>
    <th style="position: sticky; vertical-align:top; text-align:left; padding-left: 10px">Battles/Wars</th>
    <td style="padding-left:25px">{{{battles}}}</td>
 
<!-- Military Education-->
</tr>}}{{#if:{{{alma_mater}}}|<tr>
    <th style="position: sticky; vertical-align:top; text-align:left; padding-left: 10px">Alma mater</th>
    <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 -->
</tr>}}</table>
</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}}}