Jump to content

Template:Infobox: Difference between revisions

From The Three Kingdoms
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"><tr>
<table class="infobox-table">
     <th>Parameter 1</th>
{{#if:{{{type|}}}|<tr>
     <td>{{{param1}}}</td>
    <th>Type</th>
</tr>{{#if:{{{param2|}}}|<tr>
    <td>{{{type}}}</td>
     <th>Parameter 2</th>
</tr>{{#if:{{{size|}}}|<tr>
     <td>{{{param2}}}</td>
     <th>Size</th>
</tr>}}{{#if:{{{param3|}}}|<tr>
     <td>{{{size}}}</td>
     <th>Parameter 3</th>
</tr>}}{{#if:{{{population|}}}|<tr>
     <td>{{{param3}}}</td>
     <th>Population</th>
</tr>}}{{#if:{{{param4|}}}|<tr>
     <td>{{{population}}}</td>
     <th>Parameter 4</th>
</tr>}}{{#if:{{{gplimit|}}}|<tr>
     <td>{{{param4}}}</td>
     <th>GP Limit</th>
</tr>}}{{#if:{{{param5|}}}|<tr>
     <td>{{{gplimit}}}</td>
     <th>Parameter 5</th>
</tr>}}{{#if:{{{readycash|}}}|<tr>
     <td>{{{param5}}}</td>
     <th>Ready Cash</th>
     <td>{{{readycash}}}</td>
</tr>}}
{{#if:{{{powercentre|}}}|<tr>
    <th>Power Centre (Alignment)</th>
    <td>{{{powercentre}}}</td>
</tr>}}
{{#if:{{{authorities|}}}|<tr>
     <th>Community Authorities</th>
     <td>{{{authorities}}}</td>
</tr>}}</table>
</tr>}}</table>
</div>
</div>
<noinclude>
<templatedata>
{
"params": {
"title": {},
"image": {},
"param1": {},
"param2": {},
"param3": {},
"param4": {},
"param5": {}
}
}
</templatedata>
</noinclude>

Revision as of 00:54, 28 December 2024

Infobox
{{#if:|
Type {{{type}}}