Template:Infobox lore nation: Difference between revisions
m 20 revisions imported: Bringing in some custom made templates from the old wiki |
m Fixed automatic PAGENAME usage |
||
(5 intermediate revisions by the same user 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; | |||
| above = {{#if: {{{name|}}} | <div style="background-color: var(--background-color-content-added);">{{{name|}}}</div> | <div style="background-color: var(--background-color-content-added);">{{PAGENAME}}</div>}}{{#if: {{{nation_type|}}} |<small>{{{nation_type|}}}</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; | | headerstyle = line-height: 140%; text-align:center; | ||
| imagestyle = text-align:center; | | imagestyle = text-align:center; | ||
| image = {{#if:{{both|{{{flag_image1|}}}{{{flag_image2|}}}|{{{symbol|}}}}}| | | image = {{#if:{{both|{{{flag_image1|}}}{{{flag_image2|}}}|{{{symbol|}}}}}| | ||
<div class="noresize" style="display:table; width:100%;"> | <div class="noresize" style="display:table; width:100%; text-align: center;"> | ||
<div style="display:table-cell; vertical-align:middle; padding-left:5px;"> | <div style="display:table-cell; vertical-align:middle; padding-left:5px;"> | ||
{{#if:{{{flag_image1|}}}|<div style="padding-bottom:3px;">{{{flag_image1|}}}</div>}}{{#if:{{{flag_image2|}}}|<div style="padding: 2px 0px 3px;">{{{flag_image2|}}}</div>}} | {{#if:{{{flag_image1|}}}|<div style="padding-bottom:3px;">{{{flag_image1|}}}</div>}}{{#if:{{{flag_image2|}}}|<div style="padding: 2px 0px 3px;">{{{flag_image2|}}}</div>}} | ||
<div><small>{{{caption1|}}}</small></div> | <div><small>{{{caption1|}}}</small></div> | ||
</div> | </div> | ||
</div> | </div> | ||
<!--else:-->| | <!--else:-->| | ||
{{#if:{{{flag_image1|}}}{{{flag_image2|}}}| | {{#if:{{{flag_image1|}}}{{{flag_image2|}}}| | ||
<div class="noresize" style="display:table; width:100%;"> | <div class="noresize" style="display:table; width:100%; text-align: center;"> | ||
{{#if:{{{flag_image1|}}}|<div style="display:table-cell; vertical-align:middle; padding: 0px 5px 3px;">{{{flag_image1|}}}</div>}}{{#if:{{{flag_image2|}}}|<div style="display:table-cell; vertical-align:middle; padding: 0px 5px 3px 0px;">{{{flag_image2|}}}</div>}} | {{#if:{{{flag_image1|}}}|<div style="display:table-cell; vertical-align:middle; padding: 0px 5px 3px;">{{{flag_image1|}}}</div>}}{{#if:{{{flag_image2|}}}|<div style="display:table-cell; vertical-align:middle; padding: 0px 5px 3px 0px;">{{{flag_image2|}}}</div>}} | ||
</div> | </div> | ||
Line 27: | Line 25: | ||
}} | }} | ||
{{#if:{{{symbol|}}}| | {{#if:{{{symbol|}}}| | ||
<div style="padding: 0px 5px;"> | <div style="padding: 0px 5px; text-align: center;"> | ||
<div style="padding-bottom:3px;">{{{symbol|}}}</div> | <div style="padding-bottom:3px;">{{{symbol|}}}</div> | ||
<div><small>{{{caption2|}}}</small></div> | <div><small>{{{caption2|}}}</small></div> | ||
Line 38: | Line 36: | ||
| image2 = {{#if: {{{map_image|}}} | <hr /><div style="padding: 10px 0px 0px 0px;">{{{map_image|}}}</div>{{#if: {{{map_caption|}}} | <br />{{{map_caption|}}} }}}} | | image2 = {{#if: {{{map_image|}}} | <hr /><div style="padding: 10px 0px 0px 0px;">{{{map_image|}}}</div>{{#if: {{{map_caption|}}} | <br />{{{map_caption|}}} }}}} | ||
| header3 = | | header3 = <hr /> | ||
| label4 = Capital {{#ifeq: {{{largest_city|}}} | {{{capital|}}} | <br /><div style="font-weight:normal;">(and largest city)</div>|}} | | label4 = Capital {{#ifeq: {{{largest_city|}}} | {{{capital|}}} | <br /><div style="font-weight:normal;">(and largest city)</div>|}} | ||
| data4 = {{{capital|}}} | | data4 = {{{capital|}}} | ||
Line 46: | Line 44: | ||
| data6 = {{{demonym|}}} | | data6 = {{{demonym|}}} | ||
| header7 = | | header7 = <div style="background-color: var(--background-color-content-added);">Government</div> | ||
| data8 = | | data8 = {{#if: {{{government|}}} | <b>{{{government|}}}</b>}} | ||
| label9 = <div style="font-weight:normal; font-size:95%;">{{{position1|}}}</div> | | label9 = <div style="font-weight:normal; font-size:95%;">{{{position1|}}}</div> | ||
| data9 = {{#if: {{{position1|}}} | {{{leader1|}}} }} | | data9 = {{#if: {{{position1|}}} | {{{leader1|}}} }} | ||
Line 55: | Line 53: | ||
| data11 = {{#if: {{{position3|}}} | {{{leader3|}}} }} | | data11 = {{#if: {{{position3|}}} | {{{leader3|}}} }} | ||
| header12 = | | header12 = <div style="background-color: var(--background-color-content-added);">History</div> | ||
| label13 = <div style="font-weight:normal; font-size:95%;">{{#if: {{{event1|}}} | {{{event1|}}} }}</div> | | label13 = <div style="font-weight:normal; font-size:95%;">{{#if: {{{event1|}}} | {{{event1|}}} }}</div> | ||
| data13 = {{#if: {{{event1|}}} | {{{event_date1|}}} }} | | data13 = {{#if: {{{event1|}}} | {{{event_date1|}}} }} | ||
Line 68: | Line 66: | ||
| label18 = <div style="font-weight:normal; font-size:95%;">{{#if: {{{event6|}}} | {{{event6|}}} }}</div> | | label18 = <div style="font-weight:normal; font-size:95%;">{{#if: {{{event6|}}} | {{{event6|}}} }}</div> | ||
| data18 = {{#if: {{{event6|}}} | {{{event_date6|}}} }} | | data18 = {{#if: {{{event6|}}} | {{{event_date6|}}} }} | ||
| header19 = | | header19 = <hr /> | ||
| label20 = Preceded by | | label20 = Preceded by | ||
| data20 = {{{predecessor|}}} | | data20 = {{{predecessor|}}} | ||
| label21 = Succeeded by | | label21 = Succeeded by | ||
| data21 = {{{successor|}}} | | data21 = {{{successor|}}} | ||
| header22 = | | header22 = Background | ||
| label23 = Population | | label23 = Population | ||
| data23 = {{{population|}}} | | data23 = {{{population|}}} | ||
Line 82: | Line 80: | ||
| label26 = Religion | | label26 = Religion | ||
| data26 = {{{religion|}}} | | data26 = {{{religion|}}} | ||
| header27 = | | header27 = <hr /> | ||
| data28 = {{#if: {{{membership1|}}}{{{join_date1|}}}{{{membership2|}}}{{{join_date2|}}}{{{membership3|}}}{{{join_date3|}}}{{{membership4|}}}{{{join_date4|}}} | <div style="text-align:left; font-weight:bold;">Member of</div>}} | | data28 = {{#if: {{{membership1|}}}{{{join_date1|}}}{{{membership2|}}}{{{join_date2|}}}{{{membership3|}}}{{{join_date3|}}}{{{membership4|}}}{{{join_date4|}}} | <div style="text-align:left; font-weight:bold;">Member of</div>}} | ||
| label29 = {{{membership1|}}} | | label29 = {{{membership1|}}} |
Latest revision as of 14:42, 21 July 2025
Infobox lore nation | |
---|---|
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 nation
|name = <!-- if left blank, will default to the title of the page -->
|titlecolor = <!-- hexcode for the background color of the name -->
|nation_type = <!-- kingdom, republic, city-state 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 nation no longer exists -->
|year_end =
|native_name = <!-- nation's name in the native language -->
|flag_image1 =
|flag_image2 =
|symbol = <!-- coat of arms or other symbols -->
|caption1 = <!-- caption for flag(s) -->
|caption2 = <!-- caption for symbol -->
|anthem_name =
|anthem_file =
|map_image =
|map_caption =
|capital =
|largest_city =
|demonym =
<!-- GOVERNMENT -->
|government = <!-- form of government -->
|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 nation -->
|event_date1 = <!-- date of event1 -->
|event2 =
|event_date2 =
|event3 =
|event_date3 =
<!-- etc... -->
|predecessor = <!-- nation(s) that preceded this nation -->
|successor = <!-- nation(s) that succeeded this nation -->
<!-- BACKGROUND -->
|population =
|area =
|language =
|religion =
|membership1 = <!-- organization/treaty the nation is a part of (requires join_date) -->
|join_date1 = <!-- when membership1 took effect -->
|membership2 =
|join_date2 =
<!-- etc... -->
}}