Difference between revisions of "Template:Infobox country"

From OtanWiki
(Created page with "<div class="infobox"> <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| <div class="infobox-image">[[File:{{{image}}}|300px]]</div>}} <table>{{#if:{...")
 
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">
+
<div class="infobox" >
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
+
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{signpost|}}}|
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
+
<div class="infobox-image">[[File:{{{signpost}}}|300px]]</div>}}
<table>{{#if:{{{param1|}}}|<tr>
+
<table>{{#if:{{{native_name|}}}|<tr>
    <th>Country</th>
 
    <td>{{{title}}}</td>
 
</tr>}}{{#if:{{{image|}}}|<tr>
 
    <th>Flag</th>
 
    <td>{{{image}}}</td>
 
</tr>}}{{#if:{{{native_name|}}}|<tr>
 
 
     <th>Native Name</th>
 
     <th>Native Name</th>
 
     <td>{{{native_name}}}</td>
 
     <td>{{{native_name}}}</td>
</tr>}}{{#if:{{{partof|}}}|<tr>
+
</tr>}} {{#if:{{{partof|}}}|<tr>
     <th>Part of/th>
+
     <th>Part of</th>
 
     <td>{{{partof}}}</td>
 
     <td>{{{partof}}}</td>
</tr>}}{{#if:{{{capitol|}}}|<tr>
+
</tr>}} {{#if:{{{capitol|}}}|<tr>
 
     <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</th>
 +
    <td>{{{government}}}</td>
 +
</tr>}} {{#if:{{{location|}}}|<tr>
 +
    <th>Location</th>
 +
    <td>{{{location}}}</td>
 +
</tr>}} {{#if:{{{size|}}}|<tr>
 +
    <th>Land Area</th>
 +
    <td>{{{size}}}</td>
 +
</tr>}} {{#if:{{{population|}}}|<tr>
 +
    <th>Population</th>
 +
    <td>{{{population}}}</td>
 +
</tr>}} {{#if:{{{racial_mix|}}}|<tr>
 +
    <th>Racial Mix</th>
 +
    <td>{{{racial_mix}}}</td>
 +
</tr>}} {{#if:{{{controlled_by|}}}|<tr>
 +
    <th>Controlled by</th>
 +
    <td>{{{controlled_by}}}</td>
 +
</tr>}} {{#if:{{{founded_date|}}}|<tr>
 +
    <th>Founded</th>
 +
    <td>{{{founded_date}}}</td>
 +
</tr>}} {{#if:{{{founded_by|}}}|<tr>
 +
    <th>Founded by</th>
 +
    <td>{{{founded_by}}}</td>
 +
</tr>}} {{#if:{{{landmarks|}}}|<tr>
 +
    <th>Landmarks</th>
 +
    <td>{{{landmarks}}}</td>
 
</tr>}}</table>
 
</tr>}}</table>
 +
{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
 +
{{#if:{{{caption|}}}|<div style="font-size: .8em; text-align: center;">{{{caption}}}</div>}}
 
</div>
 
</div>
 +
<noinclude>
 +
Example usage:
 +
<pre>
 +
{{Infobox country
 +
| title            =
 +
| signpost        =
 +
| image            =
 +
| caption          =
 +
| native_name      =
 +
| partof          =
 +
| capitol          =
 +
| leader          =
 +
| government      =
 +
| location        =
 +
| size            =
 +
| population      =
 +
| racial_mix      =
 +
| controlled_by    =
 +
| founded_date    =
 +
| founded_by      =
 +
| landmarks        =
 +
}}
 +
</pre>

Latest revision as of 12:39, 23 May 2023

Infobox country


Example usage:

{{Infobox country
| title            = 
| signpost         = 
| image            = 
| caption          = 
| native_name      = 
| partof           = 
| capitol          = 
| leader           = 
| government       = 
| location         = 
| size             = 
| population       = 
| racial_mix       = 
| controlled_by    = 
| founded_date     = 
| founded_by       = 
| landmarks        = 
}}