Template:Infobox Town: Difference between revisions
Silverpg017 (talk | contribs) Created page with "<includeonly> {{Infobox | above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}<br><span style="font-weight: normal;">''{{{native_name|}}}''</span> | autoheaders = y | image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|frameless|border|center|alt={{{alt|}}}|upright=1]]}} | caption1 = <center>''{{{caption|}}}''</center> <hr> | data1 = {{#if: {{{nickname|}}} | <center>'''Motto:'''<br>"{{{nickname}}}"</center> <hr>}} | header2 = General | label3 = <div style="text-align: l..." |
Silverpg017 (talk | contribs) m Renamed "alt" label in template data for clarity |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{Infobox | {{Infobox | ||
| above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}<br><span style="font-weight: normal;">''{{{native_name | | above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}{{#if:{{{native_name|}}}|<br><span style="font-weight:normal;">''{{{native_name}}}''</span>}} | ||
| autoheaders = y | | autoheaders = y | ||
| Line 7: | Line 7: | ||
| caption1 = <center>''{{{caption|}}}''</center> | | caption1 = <center>''{{{caption|}}}''</center> | ||
<hr> | <hr> | ||
| data1 = {{#if: {{{nickname|}}} | <center>''' | | data1 = {{#if: {{{nickname|}}} | <center>'''Nickname:'''<br>"{{{nickname}}}"</center> <hr>}} | ||
| captionstyle = | |||
| abovestyle = background:#eaecee;font-size:130%;padding:0.3em; | |||
| headerstyle = background:#eaecee; | |||
| header2 = General | | header2 = General | ||
| Line 76: | Line 81: | ||
}, | }, | ||
"alt": { | "alt": { | ||
"label": " | "label": "Alternative Text", | ||
"description": "Alt text for image description", | "description": "Alt text for image description", | ||
"type": "string" | "type": "string" | ||
| Line 175: | Line 180: | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
<includeonly>{{#ifeq:{{NAMESPACE}}|doc|[[Category:Towns]]}}</includeonly> | |||
Latest revision as of 08:50, 29 March 2026
Usage
To use this template in an article, copy and paste the code below and fill it. Some spaces can be left blank and they won't show up on the final infobox. If you are using source editor, you can press on 'Show preview' to see a preview of your infobox.
Full
| {{{name}}} {{{native_name}}} | |
|---|---|
| [[File:{{{image}}}|frameless|border|center|alt={{{alt}}}|upright=1]] | |
"{{{nickname}}}" | |
| General | |
Nation | {{{nation}}} |
Area | {{{area}}} |
Continent | {{{continent}}} |
| General | |
Population | {{{population}}} |
Demonym | {{{demonym}}} |
Language/s | {{{languages}}} |
Religion/s | {{{religion}}} |
| Politics | |
Mayor | {{{mayor}}} |
Continent | {{{continent}}} |
Founder | {{{founder}}} |
Foundation date | {{{foundation_date}}} |
{{Infobox Town
| name =
| native_name =
| image =
| alt =
| caption =
| nickname =
| nation =
| area =
| continent =
| population =
| demonym =
| languages =
| religion =
| mayor =
| founder =
| foundation_date =
}}
An infobox template for displaying information about towns.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Official Name | name | The primary name of the town | String | required |
| Official Native Name | native_name | The primary name of the town in its native language. | String | suggested |
| Primary Image | image | Name of the town's flag or landscape
| String | suggested |
| Alternative Text | alt | Alt text for image description | String | optional |
| Image Caption | caption | Brief description of the image's content
| String | optional |
| Town Nickname | nickname | Nickname for the town
| String | optional |
| Nation | nation | Nation the town is part of
| String | optional |
| Area | area | Number of chunks in the town
| String | optional |
| Continent | continent | Continent the nation is located in
| String | optional |
| Population | population | Member count of the town or lore population
| String | optional |
| Demonym | demonym | Term used to describe members of the town
| String | optional |
| Official Languages | languages | List of officially recognized languages
| Content | optional |
| Major Religion | religion | The town's official religion or most followed religion/s
| Content | optional |
| Mayor | mayor | Current mayor of the town
| String | optional |
| Founder | founder | Founder or first mayor of the town
| String | optional |
| Foundation Date | foundation_date | Date the town was founded. Previous foundations can be included
| String | optional |