Jump to content

Template:Infobox lore town: Difference between revisions

aw>Rikke
m Visual fix #8
m Removed test cases
Tags: Mobile edit Mobile web edit
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox
{{Infobox
| titlestyle  = text-align:center; background-color: {{#if: {{{titlecolor|}}} | {{{titlecolor|}}} | #ccf2b3}}; border-style: ridge; line-height: 130%;
| bodystyle  = border: 2px outset var(--background-color-disabled-subtle); border-radius: 5px; background-color: var(--background-color-neutral-subtle); color: var(--base-color);
| title      = {{#if: {{{name|}}} |{{{name|}}} | {{PAGENAME}}}}{{#if: {{{town_status|}}} |<hr style="background-color: {{#if: {{{bordercolor|}}} | {{{bordercolor|}}} | #add692}};"><small>{{{town_status|}}}</small> }}
| 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>}}
| bodystyle  = border-style: none ridge ridge ridge; border-color: #f0e4e4; border-width: 2px; line-height: 120%;
| headerstyle = line-height: 140%; text-align:center; {{#if: {{{headercolor|}}} | {{{headercolor|}}} |}}
| headerstyle = line-height: 140%;
| imagestyle  = text-align:center;
| captionstyle  = text-align:center;


| image1    = {{{image|}}}
| image1    = <div style="padding: 5px 0px 5px 0px; text-align: center;">{{{image|}}}</div>
| caption1  = {{{caption|}}}
| caption1  = {{{caption|}}}


| data1    = {{#if: {{{map_image|}}} | <hr /><div style="padding: 10px 0px 10px 0px;">{{{map_image|}}}</div>{{#if: {{{map_caption|}}} | <br />{{{map_caption|}}} }}}}
| 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  = {{#if: {{{nickname|}}}{{{motto|}}} | <hr />}}
| 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  = {{#if: | <div style="background-color: {{#if: {{{headercolor|}}} | {{{headercolor|}}} | #d4f5bf}};">Background</div>}}
| 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 = {{#if: {{{population|}}}{{{area|}}}{{{ethnicity_list|}}}{{{timezone|}}}{{{coordinates|}}}| <hr />}}
| header10 = <hr />
| label11  = Population
| label11  = Population
| data11  = {{#if: {{{ethnicity_list|}}}{{{timezone|}}} | {{#if: {{{population|}}} | {{{population|}}} | &nbsp;}}}}
| data11  = {{{population|}}}
| label12  = &nbsp;&nbsp;• Ethnicities
| label12  = &nbsp;&nbsp;•&nbsp;&nbsp;Ethnicities
| data12  = {{{ethnicity_list|}}}
| data12  = {{{ethnicity_list|}}}
| label13  = &nbsp;&nbsp;• Timezone
| label13  = &nbsp;&nbsp;•&nbsp;&nbsp;Timezone
| data13  = {{{timezone|}}}
| data13  = {{{timezone|}}}
| label14  = Area
| label14  = Area
Line 37: Line 42:
| data15  = {{{coordinates|}}}
| data15  = {{{coordinates|}}}


| header16 = {{#if: {{{position1|}}}{{{position2|}}}{{{position3|}}}| <div style="background-color: {{#if: {{{headercolor|}}} | {{{headercolor|}}} | #d4f5bf}};">Government</div>}}
| header16 = Government
| data17  = {{#if: {{{election|}}} | As of {{{election||}}} }}
| data17  = {{#if: {{{election|}}} | As of {{{election||}}} }}
| label18  = <div style="font-weight:normal; font-size:95%;">{{{position1|}}}</div>
| label18  = <div style="font-weight:normal; font-size:95%;">{{{position1|}}}</div>
Line 46: Line 51:
| data20  = {{#if: {{{position3|}}} | {{{leader3|}}} }}
| data20  = {{#if: {{{position3|}}} | {{{leader3|}}} }}


| header21 = {{#if: {{{event1|}}}{{{event2|}}}{{{event3|}}}{{{event4|}}}{{{event5|}}}{{{event6|}}}{{{predecessor|}}}{{{successor|}}}{{{partner_city1|}}}{{{partner_city2|}}}{{{partner_city3|}}}{{{partner_city4|}}}{{{partner_city5|}}}| <div style="background-color: {{#if: {{{headercolor|}}} | {{{headercolor|}}} | #d4f5bf}};">History</div>}}
| 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 = {{#if: {{{partner_city1|}}}{{{partner_city2|}}}{{{partner_city3|}}}{{{partner_city4|}}}{{{partner_city5|}}}| <hr />}}
| 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;">&nbsp;&nbsp;•&nbsp;{{{partner_city1|}}}</div>}}
| data33  = {{#if: {{{partner_city1|}}}| <div style="text-align:left; font-weight:bold;">&nbsp;&nbsp;•&nbsp;{{{partner_city1|}}}</div>}}