Template:Infobox lore town: Difference between revisions
aw>Rikke m Visual fix #1 |
m Removed test cases Tags: Mobile edit Mobile web edit |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
| | | bodystyle = border: 2px outset var(--background-color-disabled-subtle); border-radius: 5px; background-color: var(--background-color-neutral-subtle); color: var(--base-color); | ||
| | | autoheaders = y | ||
| abovestyle = text-align: center; | |||
| aboveclass = town-infobox-above | |||
| above = {{#if: {{{name|}}} |{{{name|}}} | {{PAGENAME}}}}{{#if: {{{town_status|}}} |<hr style="background-color: {{#if: {{{bordercolor|}}} | {{{bordercolor|}}} | #add692}};"><small>{{{town_status|}}}</small> }} | |||
| subheaderstyle = font-size:110%; text-align:center; | | subheaderstyle = font-size:110%; text-align:center; | ||
| subheader = {{{native_name|}}}{{#if: {{{year_end|}}}| {{#if: {{{native_name|}}}|<br />}}<small>{{{year_start|}}} – {{{year_end|}}}</small>}} | | subheader = {{{native_name|}}}{{#if: {{{year_end|}}}| {{#if: {{{native_name|}}}|<br />}}<small>{{{year_start|}}} – {{{year_end|}}}</small>}} | ||
| | | headerstyle = line-height: 140%; text-align:center; {{#if: {{{headercolor|}}} | {{{headercolor|}}} |}} | ||
| | | imagestyle = text-align:center; | ||
| captionstyle = text-align:center; | |||
| | | image1 = <div style="padding: 5px 0px 5px 0px; text-align: center;">{{{image|}}}</div> | ||
| | | caption1 = {{{caption|}}} | ||
| data1 = | | data1 = {{#if: {{{map_image|}}} | <hr /><div style="padding: 10px 0px 2px 0px; text-align: center;">{{{map_image|}}}</div>{{#if: {{{map_caption|}}} | <br /><div style="text-align: center;">{{{map_caption|}}}</div>}}}} | ||
| header2 = | | header2 = <hr /> | ||
| data3 = {{#if: {{{nickname|}}} | Nickname: {{{nickname|}}} }} | | data3 = {{#if: {{{nickname|}}} | <div style="text-align: center;">Nickname: {{{nickname|}}}</div>}} | ||
| data4 = {{#if: {{{motto|}}} | Motto(s): {{{motto|}}} }} | | data4 = {{#if: {{{motto|}}} | <div style="text-align: center;">Motto(s): {{{motto|}}}</div>}} | ||
| header5 = | | header5 = Background | ||
| label6 = Country | | label6 = Country | ||
| data6 = {{{country|}}} | | data6 = {{{country|}}} | ||
Line 25: | Line 30: | ||
| label9 = First mentioned | | label9 = First mentioned | ||
| data9 = {{{mention|}}} | | data9 = {{{mention|}}} | ||
| header10 = | | header10 = <hr /> | ||
| label11 = Population | | label11 = Population | ||
| data11 = | | data11 = {{{population|}}} | ||
| label12 = • Ethnicities | | label12 = • Ethnicities | ||
| data12 = {{{ethnicity_list|}}} | | data12 = {{{ethnicity_list|}}} | ||
| label13 = • Timezone | | label13 = • Timezone | ||
| data13 = {{{timezone|}}} | | data13 = {{{timezone|}}} | ||
| label14 = Area | | label14 = Area | ||
Line 37: | Line 42: | ||
| data15 = {{{coordinates|}}} | | data15 = {{{coordinates|}}} | ||
| header16 = | | header16 = Government | ||
| data17 = {{#if: {{{election|}}} | As of {{{election||}}} }} | | data17 = {{#if: {{{election|}}} | As of {{{election||}}} }} | ||
| label18 = <div style="font-weight:normal; font-size:95%;"> | | label18 = <div style="font-weight:normal; font-size:95%;">{{{position1|}}}</div> | ||
| data18 = {{#if: {{{position1|}}} | {{{leader1|}}} }} | | data18 = {{#if: {{{position1|}}} | {{{leader1|}}} }} | ||
| label19 = <div style="font-weight:normal; font-size:95%;"> | | label19 = <div style="font-weight:normal; font-size:95%;">{{{position2|}}}</div> | ||
| data19 = {{#if: {{{position2|}}} | {{{leader2|}}} }} | | data19 = {{#if: {{{position2|}}} | {{{leader2|}}} }} | ||
| label20 = <div style="font-weight:normal; font-size:95%;"> | | label20 = <div style="font-weight:normal; font-size:95%;">{{{position3|}}}</div> | ||
| data20 = {{#if: {{{position3|}}} | {{{leader3|}}} }} | | data20 = {{#if: {{{position3|}}} | {{{leader3|}}} }} | ||
| header21 = | | header21 = History | ||
| label22 = <div style="font-weight:normal; font-size:95%;">{{#if: {{{event1|}}} | {{{event1|}}} }}</div> | | label22 = <div style="font-weight:normal; font-size:95%;">{{#if: {{{event1|}}} | {{{event1|}}} }}</div> | ||
| data22 = {{#if: {{{event1|}}} | {{{event_date1|}}} }} | | data22 = {{#if: {{{event1|}}} | {{{event_date1|}}} }} | ||
Line 65: | Line 70: | ||
| data30 = {{{successor|}}} | | data30 = {{{successor|}}} | ||
| header31 = | | header31 = <hr /> | ||
| data32 = {{#if: {{{partner_city1|}}}{{{partner_city2|}}}{{{partner_city3|}}}{{{partner_city4|}}}{{{partner_city5|}}}| <div style="text-align:left; font-weight:bold;">Partner cities</div>}} | | data32 = {{#if: {{{partner_city1|}}}{{{partner_city2|}}}{{{partner_city3|}}}{{{partner_city4|}}}{{{partner_city5|}}}| <div style="text-align:left; font-weight:bold;">Partner cities</div>}} | ||
| data33 = {{#if: {{{partner_city1|}}}| <div style="text-align:left; font-weight:bold;"> • {{{partner_city1|}}}</div>}} | | data33 = {{#if: {{{partner_city1|}}}| <div style="text-align:left; font-weight:bold;"> • {{{partner_city1|}}}</div>}} |
Latest revision as of 16:49, 21 July 2025
Infobox lore town | |
---|---|
Usage
Users should note that all parameters are made to be optional. Provide as much or as little information as you choose. If you wish to enter more than one data line to a single parameter, use </br>
between the entries.
{{Infobox lore town
|name = <!-- if left blank, will default to the title of the page -->
|titlecolor = <!-- hexcode for the background color of the name -->
|town_status = <!-- village, town, city, capital, port etc. -->
|bordercolor = <!-- hexcode for the border between name and nation type -->
|headercolor = <!-- hexcode for the background color of headers -->
|year_start = <!-- fill these two only if the town no longer exists -->
|year_end =
|native_name = <!-- town's name in the native language -->
|image =
|caption =
|map_image =
|map_caption =
|nickname =
|motto =
<!-- BACKGROUND -->
|country =
|subdivision = <!-- municipality or official region that the town falls under -->
|subdivision_name = <!-- name of the subdivision -->
|settlement = <!-- first time the land was ever settled -->
|mention = <!-- first time the current town was mentioned -->
|population = <!-- population count -->
|ethnicity_list =
|timezone = <!-- main timezone for the town's population -->
|area =
|coordinates =
<!-- GOVERNMENT -->
|election = <!-- date the local government was elected -->
|position1 = <!-- formal job title of a governing person -->
|leader1 = <!-- person in position1 -->
|position2 =
|leader2 =
|position3 =
|leader3 =
<!-- HISTORY -->
|event1 = <!-- some historical event, usually founding of the town -->
|event_date1 = <!-- date of event1 -->
|event2 =
|event_date2 =
|event3 =
|event_date3 =
<!-- etc... -->
|predecessor = <!-- town that preceded this town -->
|successor = <!-- town that succeeded this town -->
|partner_city1 = <!-- a town with formal relations to this town -->
|partner_city2 =
|partner_city3 =
<!-- etc... -->
}}