Template:Infobox: Difference between revisions

From FortWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
<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">{{#if:{{{param1|}}}|<tr>
 
     <th>name</th>
<table class="infobox-table">{{#if:{{{name|}}}|<tr>
     <td>{{{param1}}}</td>
     <th>Parameter 1</th>
</tr>}}{{#if:{{{param2|}}}|<tr>
    <td>{{{name}}}</td>
     <th>birth_date</th>
 
     <td>{{{param2}}}</td>
</tr>}}{{#if:{{{birth_date|}}}|<tr>
</tr>}}{{#if:{{{param3|}}}|<tr>
    <th>Parameter 2</th>
     <th>birth_place</th>
     <td>{{{birth_date}}}</td>
     <td>{{{param3}}}</td>
 
</tr>}}{{#if:{{{param4|}}}|<tr>
</tr>}}{{#if:{{{birth_place|}}}|<tr>
     <th>death_date</th>
     <th>Parameter 3</th>
     <td>{{{param4}}}</td>
     <td>{{{birth_place}}}</td>
</tr>}}{{#if:{{{param5|}}}|<tr>
 
     <th>death_place</th>
</tr>}}{{#if:{{{death_date|}}}|<tr>
     <td>{{{param5}}}</td>
     <th>Parameter 4</th>
</tr>}}{{#if:{{{param6|}}}|<tr>
     <td>{{{death_date}}}</td>
     <th>rank</th>
 
     <td>{{{param6}}}</td>
</tr>}}{{#if:{{{branch|}}}|<tr>
</tr>}}{{#if:{{{param7|}}}|<tr>
     <th>Parameter 5</th>
     <th>unit</th>
     <td>{{{branch}}}</td>
     <td>{{{param7}}}</td>
 
</tr>}}</table>
</tr>}}{{#if:{{{serviceyears|}}}|<tr>
     <th>Parameter 6</th>
     <td>{{{serviceyears}}}</td>
 
</tr>}}</table>
</tr>}}{{#if:{{{rank|}}}|<tr>
     <th>Parameter 7</th>
    <td>{{{rank}}}</td>
 
</tr>}}</table>
</tr>}}{{#if:{{{unit|}}}|<tr>
    <th>Parameter 5</th>
    <td>{{{unit}}}</td>
 
</tr>}}</table>
</tr>}}{{#if:{{{commands|}}}|<tr>
    <th>Parameter 5</th>
     <td>{{{commands}}}</td>
 
</tr>}}</table>
</tr>}}{{#if:{{{battles|}}}|<tr>
     <th>Parameter 5</th>
     <td>{{{battles}}}</td>
 
</tr>}}</table>
</tr>}}</table>
</div>
</div>
</div>

Revision as of 19:05, 30 September 2025

Infobox
}} }} }} }} }}