Template:NationInfobox: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<div class="infobox">
{{Infobox
<div class="infobox-title">{{{name|{{PAGENAME}}}}}</div>
| title    = {{{name|{{PAGENAME}}}}}
 
| image    = {{#if:{{{image|}}}|[[File:{{{image|}}}|300px]]}}
{{#if:{{{image|}}}|
| caption = {{{image_desc|}}}
<div class="infobox-image">[[File:{{{image}}}|300px]]
| image2    = {{#if:{{{image2|}}}|[[File:{{{image2|}}}|300px]]}}
{{#if:{{{image_desc|}}}|
| caption2 = {{{image2_desc|}}}
<i>{{{image_desc}}}</i>
|header1 =
| label1 = Title
|  data1 = {{{title|}}}
| label2 = Capital
|  data2 = {{{capital|}}}
| label3 = Ruler
|  data3 = {{{ruler|}}}
| label5 = Government
|  data5 = {{{government|}}}
| label6 = Demonym
|  data6 = {{{demonym|}}}
| label7 = Adjective
|  data7 = {{{adjective|}}}
| label8 = Languages
|  data8 = {{{languages|}}}
| label9 = Religions
|  data9 = {{{religions|}}}
}}
}}
</div>}}
{{#if:{{{image2|}}}|
<div class="infobox-image">[[File:{{{image2}}}|300px]]
{{#if:{{{image2_desc|}}}|
<i>{{{image2_desc}}}</i>
}}
</div>}}
<table>
{{#if:{{{title|}}}|<tr>
    <th>Title</th>
    <td>{{{title}}}</td>
</tr>}}
{{#if:{{{capital|}}}|<tr>
    <th>Capital</th>
    <td>{{{capital}}}</td>
</tr>}}
{{#if:{{{ruler|}}}|<tr>
    <th>Ruler</th>
    <td>{{{ruler}}}</td>
</tr>}}
{{#if:{{{government|}}}|<tr>
    <th>Government</th>
    <td>{{{government}}}</td>
</tr>}}
{{#if:{{{demonym|}}}|<tr>
    <th>Demonym</th>
    <td>{{{demonym}}}</td>
</tr>}}
{{#if:{{{adjective|}}}|<tr>
    <th>Adjective</th>
    <td>{{{adjective}}}</td>
</tr>}}
{{#if:{{{languages|}}}|<tr>
    <th>Languages</th>
    <td>{{{languages}}}</td>
</tr>}}
{{#if:{{{religions|}}}|<tr>
    <th>Religions</th>
    <td>{{{religions}}}</td>
</tr>}}
</table>
</div>

Revision as of 16:36, 28 July 2022