Difference between revisions of "Template:Infobox settlement"

From OtanWiki
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
<div class="infobox-image" style="text-align: center;">[[File:{{{image}}}|300px]]</div>}}
 
<div class="infobox-image" style="text-align: center;">[[File:{{{image}}}|300px]]</div>}}
 
{{#if:{{{caption|}}}|<div style="font-size: .8em; text-align: center;">{{{caption}}}</div>}}
 
{{#if:{{{caption|}}}|<div style="font-size: .8em; text-align: center;">{{{caption}}}</div>}}
<table>{{#if:{{{caption|}}}|<tr>
+
<table>{{#if:{{{native_name|}}}|<tr>
    <td colspan=2 style="font-size: .8em; text-align: center;">{{{caption}}}</td>
 
</tr>}} {{#if:{{{native_name|}}}|<tr>
 
 
     <th>Native Name</th>
 
     <th>Native Name</th>
 
     <td>{{{native_name}}}</td>
 
     <td>{{{native_name}}}</td>
Line 41: Line 39:
 
     <th>Landmarks</th>
 
     <th>Landmarks</th>
 
     <td>{{{landmarks}}}</td>
 
     <td>{{{landmarks}}}</td>
 +
</tr>}} {{#if:{{{features|}}}|<tr>
 +
    <th>Features</th>
 +
    <td>{{{features}}}</td>
 
</tr>}}</table>
 
</tr>}}</table>
 
</div>
 
</div>
Line 60: Line 61:
 
   | founded_date  =  
 
   | founded_date  =  
 
   | founded_by    =  
 
   | founded_by    =  
 +
  | landmarks      =
 
   | features      =  
 
   | features      =  
 
}}
 
}}
 
</pre>
 
</pre>

Latest revision as of 21:24, 21 March 2021

Infobox settlement

Example usage:

{{Infobox settlement
  | title          = 
  | image          = City.png|Town.jpg
  | caption        = 
  | native_name    = 
  | country        = 
  | region         = 
  | leader         = 
  | government     = 
  | controlled_by  = 
  | population     = 
  | racial_mix     = 
  | founded_date   = 
  | founded_by     = 
  | landmarks      = 
  | features       = 
}}