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 | + | <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>}} | ||
− | + | {{#if:{{{caption|}}}|<div style="font-size: .8em; text-align: center;">{{{caption}}}</div>}} | |
− | + | <table>{{#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 = | + | | title = |
− | | image = Town.jpg | + | | image = City.png|Town.jpg |
− | | caption = | + | | caption = |
− | | native_name = | + | | native_name = |
− | | country = | + | | country = |
− | | region = | + | | region = |
− | | leader = | + | | leader = |
− | | government = | + | | government = |
− | | controlled_by = | + | | controlled_by = |
− | | population = | + | | population = |
− | | racial_mix = | + | | racial_mix = |
− | | founded_date = | + | | founded_date = |
− | | founded_by = | + | | founded_by = |
− | | features = | + | | 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 = }}