Difference between revisions of "Template:Infobox settlement"

From OtanWiki
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox" style="background: #eee; border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 1em; width: 400px;" >
+
<div class="infobox" >
 
<div class="infobox-title" style="font-size: 2em; text-align: center;">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
 
<div class="infobox-title" style="font-size: 2em; text-align: center;">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
 
<div class="infobox-image" style="text-align: center;">[[File:{{{image}}}|300px]]</div>}}
 
<div class="infobox-image" style="text-align: center;">[[File:{{{image}}}|300px]]</div>}}
<table>{{#if:{{{caption|}}}|<tr>
+
{{#if:{{{caption|}}}|<div style="font-size: .8em; text-align: center;">{{{caption}}}</div>}}
    <th>&nbsp;</th>
+
<table>{{#if:{{{native_name|}}}|<tr>
    <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 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 47: Line 48:
 
<pre>
 
<pre>
 
{{Infobox settlement
 
{{Infobox settlement
   | title          = Example
+
   | title          =  
   | image          = Town.jpg
+
   | image          = City.png|Town.jpg
   | caption        = Example
+
   | caption        =  
   | native_name    = Example
+
   | native_name    =  
   | country        = Example
+
   | country        =  
   | region        = Example
+
   | region        =  
   | leader        = Example
+
   | leader        =  
   | government    = Example
+
   | government    =  
   | controlled_by  = Example
+
   | controlled_by  =  
   | population    = Example
+
   | population    =  
   | racial_mix    = Example
+
   | racial_mix    =  
   | founded_date  = Example
+
   | founded_date  =  
   | founded_by    = Example
+
   | founded_by    =  
   | features      = Example
+
  | landmarks      =
 +
   | 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       = 
}}