Difference between revisions of "Template:Infobox country"

From OtanWiki
 
(4 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:{{{caption|}}}|<tr>
+
<table>{{#if:{{{native_name|}}}|<tr>
    <th>&nbsp;</th>
 
    <td>{{{caption}}}</td>
 
</tr>}} {{#if:{{{native_name|}}}|<tr>
 
 
     <th>Native Name</th>
 
     <th>Native Name</th>
 
     <td>{{{native_name}}}</td>
 
     <td>{{{native_name}}}</td>
Line 29: Line 26:
 
     <th>Population</th>
 
     <th>Population</th>
 
     <td>{{{population}}}</td>
 
     <td>{{{population}}}</td>
 +
</tr>}} {{#if:{{{racial_mix|}}}|<tr>
 +
    <th>Racial Mix</th>
 +
    <td>{{{racial_mix}}}</td>
 
</tr>}} {{#if:{{{controlled_by|}}}|<tr>
 
</tr>}} {{#if:{{{controlled_by|}}}|<tr>
 
     <th>Controlled by</th>
 
     <th>Controlled by</th>
Line 42: Line 42:
 
     <td>{{{landmarks}}}</td>
 
     <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>
 
<noinclude>
Line 47: Line 49:
 
<pre>
 
<pre>
 
{{Infobox country
 
{{Infobox country
  | title1=Example
+
| title            =  
  | image1=Example
+
| signpost        =  
  | caption1=Example
+
| image            =  
  | name=Example
+
| caption          =  
  | native_name=Example
+
| native_name     =  
  | part_of=Example
+
| partof          =  
  | capitol=Example
+
| capitol         =  
  | leader=Example
+
| leader           =  
  | government=Example
+
| government       =  
  | population=Example
+
| location        =
  | location=Example
+
| size            =  
  | size=Example
+
| population      =  
  | controlled_by=Example
+
| racial_mix      =  
  | image2=Example
+
| controlled_by   =  
  | caption2=Example
+
| founded_date    =  
  | landmarks=Example
+
| founded_by      =  
 +
| landmarks       =  
 
}}
 
}}
 
</pre>
 
</pre>

Latest revision as of 11: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        = 
}}