Template:Infobox Nation: Difference between revisions
Silverpg017 (talk | contribs) mNo edit summary |
Silverpg017 (talk | contribs) m Renamed "alt" label in template data for clarity |
||
| (33 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 | ||
| image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|frameless|alt={{{alt|}}} | | image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|frameless|border|center|alt={{{alt|}}}|upright=1]]}} | ||
| caption1 = {{{caption|}}} | | caption1 = <div style="text-align:center;">''{{{caption|}}}''</div> | ||
| image2 = {{#if:{{{image2|}}}|[[File:{{{image2}}}|frameless|alt={{{alt2|}}} | | image2 = {{#if:{{{image2|}}}|[[File:{{{image2}}}|frameless|border|center|alt={{{alt2|}}}|upright=1]]}} | ||
| caption2 = {{{caption2|}}} | | caption2 = <div style="text-align:center;">''{{{caption2|}}}''</div><hr> | ||
| | | data1 = {{#if:{{{motto|}}}|<div style="text-align:center;">'''Motto:'''<br>"{{{motto}}}"</div><hr>}} | ||
| data2 = | |||
{{#if: {{{anthem_name|}}} | |||
| <div style="text-align:center;">'''Anthem:''' "{{{anthem_name}}}"<br> | |||
[[File:{{{anthem_file}}}|border|center]]</div><hr> }} | |||
| captionstyle = | | captionstyle = | ||
| Line 24: | Line 23: | ||
| headerstyle = background:#eaecee; | | headerstyle = background:#eaecee; | ||
| | | header3 = General | ||
| | |||
| | | label4 = <div style="text-align: left;">Capital</div> | ||
| data4 = {{{capital|}}} | |||
| | | label5 = <div style="text-align: left;">Largest city</div> | ||
| | | data5 = {{{largest_city|}}} | ||
| | | label6 = <div style="text-align: left;">Demonym</div> | ||
| | | data6 = {{{demonym|}}} | ||
| | | label7 = <div style="text-align: left;">Continent</div> | ||
| | | data7 = {{{continent|}}} | ||
| | | header8 = Background | ||
| | | label9 = <div style="text-align: left;">Population</div> | ||
| | | data9 = {{{population|}}} | ||
| | | label10 = <div style="text-align: left;">Area</div> | ||
| | | data10 = {{{area|}}} | ||
| | | label11 = <div style="text-align: left;">Language/s</div> | ||
| | | data11 = {{{languages|}}} | ||
| | | label12 = <div style="text-align: left;">Religion/s</div> | ||
| data12 = {{{religion|}}} | |||
| | |||
| | | header13 = Government | ||
| | | label14 = <div style="text-align: left;">Government</div> | ||
| | | data14 = {{{government_type|}}} | ||
| | | label15 = {{#if:{{{position_title1}}}|{{#if:{{{position_name1}}}|<div style="text-align: left;font-weight:normal;">• {{{position_title1|}}}</div>}}}} | ||
| | | data15 = {{#if:{{{position_title1|}}}|{{#if:{{{position_name1|}}}|{{{position_name1}}}}}}} | ||
| | | label16 = {{#if:{{{position_title2}}}|{{#if:{{{position_name2}}}|<div style="text-align: left;font-weight:normal;">• {{{position_title2|}}}</div>}}}} | ||
| | | data16 = {{#if:{{{position_title2|}}}|{{#if:{{{position_name2|}}}|{{{position_name2}}}}}}} | ||
| | | label17 = {{#if:{{{position_title3}}}|{{#if:{{{position_name3}}}|<div style="text-align: left;font-weight:normal;">• {{{position_title3|}}}</div>}}}} | ||
| | | data17 = {{#if:{{{position_title3|}}}|{{#if:{{{position_name3|}}}|{{{position_name3}}}}}}} | ||
| | | label18 = {{#if:{{{position_title4}}}|{{#if:{{{position_name4}}}|<div style="text-align: left;font-weight:normal;">• {{{position_title4|}}}</div>}}}} | ||
| data18 = {{#if:{{{position_title4|}}}|{{#if:{{{position_name4|}}}|{{{position_name4}}}}}}} | |||
| | | label19 = {{#if:{{{position_title5}}}|{{#if:{{{position_name5}}}|<div style="text-align: left;font-weight:normal;">• {{{position_title5|}}}</div>}}}} | ||
| | | data19 = {{#if:{{{position_title5|}}}|{{#if:{{{position_name5|}}}|{{{position_name5}}}}}}} | ||
| | | header20 = Formation | ||
| | | label21 = {{#if:{{{formation_period1}}}|{{#if:{{{formation_date1}}}|<div style="text-align: left;font-weight:normal;">• {{{formation_period1|}}}</div>}}}} | ||
| | | data21 = {{#if:{{{formation_period1|}}}|{{#if:{{{formation_date1|}}}|{{{formation_date1}}}}}}} | ||
| | | label22 = {{#if:{{{formation_period2}}}|{{#if:{{{formation_date2}}}|<div style="text-align: left;font-weight:normal;">• {{{formation_period2|}}}</div>}}}} | ||
| | | data22 = {{#if:{{{formation_period2|}}}|{{#if:{{{formation_date2|}}}|{{{formation_date2}}}}}}} | ||
| | | label23 = {{#if:{{{formation_period3}}}|{{#if:{{{formation_date3}}}|<div style="text-align: left;font-weight:normal;">• {{{formation_period3|}}}</div>}}}} | ||
| | | data23 = {{#if:{{{formation_period3|}}}|{{#if:{{{formation_date3|}}}|{{{formation_date3}}}}}}} | ||
| | | label24 = {{#if:{{{formation_period4}}}|{{#if:{{{formation_date4}}}|<div style="text-align: left;font-weight:normal;">• {{{formation_period4|}}}</div>}}}} | ||
| | | data24 = {{#if:{{{formation_period4|}}}|{{#if:{{{formation_date4|}}}|{{{formation_date4}}}}}}} | ||
| | | label25 = {{#if:{{{formation_period5}}}|{{#if:{{{formation_date5}}}|<div style="text-align: left;font-weight:normal;">• {{{formation_period5|}}}</div>}}}} | ||
| | | data25 = {{#if:{{{formation_period5|}}}|{{#if:{{{formation_date5|}}}|{{{formation_date5}}}}}}} | ||
| label26 = <div style="text-align: left;">Preceded by</div> | |||
| data26 = {{{preceded_by|}}} | |||
| label27 = <div style="text-align: left;">Succeeded by</div> | |||
| data27 = {{{succeeded_by|}}} | |||
}} | }} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
{{documentation}} | |||
<templatedata> | <templatedata> | ||
{ | { | ||
| Line 115: | Line 118: | ||
"description": "Name of the nation's flag", | "description": "Name of the nation's flag", | ||
"type": "string", | "type": "string", | ||
"example": " | "example": "Country Flag.png", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"alt": { | "alt": { | ||
"label": " | "label": "Alternative Text", | ||
"description": "Alt text for image description", | "description": "Alt text for image description", | ||
"type": "string" | "type": "string" | ||
| Line 160: | Line 163: | ||
"description": "File name of the national anthem", | "description": "File name of the national anthem", | ||
"type": "string", | "type": "string", | ||
"example": " | "example": "The Imperial March.ogg" | ||
}, | }, | ||
"capital": { | "capital": { | ||
| Line 396: | Line 399: | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
<includeonly>{{#ifeq:{{NAMESPACE}}|doc|[[Category:Nations]]}}</includeonly> | |||
Latest revision as of 08:49, 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]] {{{caption}}} | |
| [[File:{{{image2}}}|frameless|border|center|alt={{{alt2}}}|upright=1]] {{{caption2}}} | |
Motto: "{{{motto}}}" | |
Anthem: "{{{anthem_name}}}" [[File:{{{anthem_file}}}|border|center]] | |
| General | |
Capital | {{{capital}}} |
Largest city | {{{largest_city}}} |
Demonym | {{{demonym}}} |
Continent | {{{continent}}} |
| Background | |
Population | {{{population}}} |
Area | {{{area}}} |
Language/s | {{{languages}}} |
Religion/s | {{{religion}}} |
| Government | |
Government | {{{government_type}}} |
• {{{position_title1}}} | {{{position_name1}}} |
• {{{position_title2}}} | {{{position_name2}}} |
• {{{position_title3}}} | {{{position_name3}}} |
• {{{position_title4}}} | {{{position_name4}}} |
• {{{position_title5}}} | {{{position_name5}}} |
| Formation | |
• {{{formation_period1}}} | {{{formation_date1}}} |
• {{{formation_period2}}} | {{{formation_date2}}} |
• {{{formation_period3}}} | {{{formation_date3}}} |
• {{{formation_period4}}} | {{{formation_date4}}} |
• {{{formation_period5}}} | {{{formation_date5}}} |
Preceded by | {{{preceded_by}}} |
Succeeded by | {{{succeeded_by}}} |
{{Infobox Nation
| name =
| native_name =
| image =
| alt =
| caption =
| image2 =
| alt2 =
| caption2 =
| motto =
| anthem_name =
| anthem_file =
| capital =
| largest_city =
| demonym =
| continent =
| population =
| area =
| languages =
| religion =
| government_type =
| position_title1 =
| position_name1 =
| position_title2 =
| position_name2 =
| position_title3 =
| position_name3 =
| position_title4 =
| position_name4 =
| position_title5 =
| position_name5 =
| formation_period1 =
| formation_date1 =
| formation_period2 =
| formation_date2 =
| formation_period3 =
| formation_date3 =
| formation_period4 =
| formation_date4 =
| formation_period5 =
| formation_date5 =
| preceded_by =
| succeeded_by =
}}
An infobox template for displaying information about nations.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Official Name | name | The primary name of the nation. Defaults to the page name if not provided. | String | required |
| Official Native Name | native_name | The primary name of the nation in its native language. | String | suggested |
| Primary Image | image | Name of the nation's flag
| String | suggested |
| Alternative Text | alt | Alt text for image description | String | optional |
| Image Caption | caption | Brief description of the image's content
| String | optional |
| 2nd Image | image2 | Name of an additional image | String | optional |
| 2nd Image Description | alt2 | Alt text for second image description | String | optional |
| 2nd Image Caption | caption2 | Description of the second image | String | optional |
| National Motto | motto | Official motto of the nation
| String | optional |
| National Anthem Name | anthem_name | The national anthem's name
| String | optional |
| National Anthem File | anthem_file | File name of the national anthem
| String | optional |
| Capital | capital | Capital town of the nation
| String | optional |
| Largest City | largest_city | Largest town in the nation (by member count)
| String | optional |
| Demonym | demonym | Term used to describe members of the nation
| String | optional |
| Continent | continent | Continent the nation is located in
| String | optional |
| Population | population | Member count of the nation or lore population
| String | optional |
| Area | area | Total number of chunks in the nation's towns
| String | optional |
| Official Languages | languages | List of officially recognized languages
| Content | optional |
| Official Religion | religion | The nation's official religion
| Content | optional |
| Government Type | government_type | Form of governance or political structure
| String | optional |
| Leadership Title 1 | position_title1 | Title of the first leadership position
| String | optional |
| Leader Name 1 | position_name1 | Name of person holding position_title1
| String | optional |
| Leadership Title 2 | position_title2 | Title of the second leadership position
| String | optional |
| Leader Name 2 | position_name2 | Name of person holding position_title2
| String | optional |
| Leadership Title 3 | position_title3 | Title of the third leadership position
| String | optional |
| Leader Name 3 | position_name3 | Name of person holding position_title3
| String | optional |
| Leadership Title 4 | position_title4 | Title of the fourth leadership position
| String | optional |
| Leader Name 4 | position_name4 | Name of person holding position_title4
| String | optional |
| Leadership Title 5 | position_title5 | Title of the fifth leadership position
| String | optional |
| Leader Name 5 | position_name5 | Name of person holding position_title5
| String | optional |
| Formation Period 1 | formation_period1 | Title of the first formation period
| String | optional |
| Formation Date 1 | formation_date1 | Date when formation_period1 happened
| String | optional |
| Formation Period 2 | formation_period2 | Title of the second formation period
| String | optional |
| Formation Date 2 | formation_date2 | Date when formation_period2 happened
| String | optional |
| Formation Period 3 | formation_period3 | Title of the third formation period
| String | optional |
| Formation Date 3 | formation_date3 | Date when formation_period3 happened
| String | optional |
| Formation Period 4 | formation_period4 | Title of the fourth formation period
| String | optional |
| Formation Date 4 | formation_date4 | Date when formation_period4 happened
| String | optional |
| Formation Period 5 | formation_period5 | Title of the fifth formation period
| String | optional |
| Formation Date 5 | formation_date5 | Date when formation_period5 happened
| String | optional |
| Predecessor | preceded_by | Entity or nation that preceded this one
| String | optional |
| Successor | succeeded_by | Entity or nation that succeeded this one
| String | optional |