Difference between revisions of "Template:Infobox country"

From OtanWiki
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:{{{image}}}|300px]]</div>}}
 
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
<table>{{#if:{{{title|}}}|<tr>
+
<table>{{#if:{{{caption|}}}|<tr>
     <th>Country</th>
+
     <th>&nbsp;</th>
     <td>{{{title}}}</td>
+
     <td>{{{caption}}}</td>
</tr>}}{{#if:{{{image|}}}|<tr>
 
    <th>Flag</th>
 
    <td>{{{image}}}</td>
 
 
</tr>}}{{#if:{{{native_name|}}}|<tr>
 
</tr>}}{{#if:{{{native_name|}}}|<tr>
 
     <th>Native Name</th>
 
     <th>Native Name</th>
Line 17: Line 14:
 
     <th>Capitol</th>
 
     <th>Capitol</th>
 
     <td>{{{capitol}}}</td>
 
     <td>{{{capitol}}}</td>
 +
</tr>}}{{#if:{{{leader|}}}|<tr>
 +
    <th>Head of State</th>
 +
    <td>{{{leader}}}</td>
 +
</tr>}}{{#if:{{{government|}}}|<tr>
 +
    <th>Government Type</th>
 +
    <td>{{{government}}}</td>
 +
</tr>}}{{#if:{{{size|}}}|<tr>
 +
    <th>Geographic size</th>
 +
    <td>{{{size}}}</td>
 
</tr>}}</table>
 
</tr>}}</table>
 
</div>
 
</div>

Revision as of 00:33, 15 February 2021

Infobox country