Template:Country (FINAL): Difference between revisions
Template page
More actions
No edit summary Tag: Manual revert |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{| class="wikitable infobox" style="float:right; clear:right; margin:0 0 1em 1em; width:250px; font-size:90%;" | |||
|- | |||
! colspan="2" style="text-align:center; font-size:125%; background:#cee0f2;" | | |||
{{#if:{{{title1|}}}|{{{title1}}}|{{PAGENAME}}}} | |||
{{#if:{{{image1|}}}| | |||
|- | |||
| colspan="2" style="text-align:center;" | | |||
[[File:{{{image1}}}|250px]] | |||
{{#if:{{{caption-image1|}}}|<br/><small>{{{caption-image1}}}</small>|}} | |||
|}} | |||
{{#if:{{{image2|}}}| | |||
|- | |||
| colspan="2" style="text-align:center;" | | |||
[[File:{{{image2}}}|250px]] | |||
{{#if:{{{caption-image2|}}}|<br/><small>{{{caption-image2}}}</small>|}} | |||
|}} | |||
{{#if:{{{national_anthem|}}}| | |||
|- | |||
! style="text-align:left; background:#ddeeff;" | National Anthem | |||
| {{{national_anthem}}} | |||
|}} | |||
{{#if:{{{capital|}}}| | |||
|- | |||
! style="text-align:left; background:#ddeeff;" | Capital | |||
| {{{capital}}} | |||
|}} | |||
{{#if:{{{largest_city|}}}| | |||
|- | |||
! style="text-align:left; background:#ddeeff;" | Largest city | |||
| {{{largest_city}}} | |||
|}} | |||
{{#if:{{{national_language|}}}| | |||
|- | |||
! style="text-align:left; background:#ddeeff;" | National language | |||
| {{{national_language}}} | |||
|}} | |||
{{#if:{{{religion|}}}| | |||
|- | |||
! style="text-align:left; background:#ddeeff;" | Religion | |||
| {{{religion}}} | |||
|}} | |||
{{#if:{{{demonym(s)|}}}| | |||
|- | |||
! style="text-align:left; background:#ddeeff;" | Demonym(s) | |||
| {{{demonym(s)}}} | |||
|}} | |||
{{#if:{{{government|}}}| | |||
|- | |||
! style="text-align:left; background:#ddeeff;" | Government | |||
| {{{government}}} | |||
|}} | |||
{{#if:{{{total_area|}}}| | |||
|- | |||
! style="text-align:left; background:#ddeeff;" | Total area | |||
| {{{total_area}}} | |||
|}} | |||
{{#if:{{{population|}}}| | |||
|- | |||
! style="text-align:left; background:#ddeeff;" | Population | |||
| {{{population}}} | |||
|}} | |||
{{#if:{{{currency|}}}| | |||
|- | |||
! style="text-align:left; background:#ddeeff;" | Currency | |||
| {{{currency}}} | |||
|}} | |||
|} | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
== Usage == | |||
Example usage: | Example usage: | ||
<pre> | <pre> | ||
{{Country (FINAL) | {{Country (FINAL) | ||
| title1=Example | | title1=Example | ||
| image1=Example.png | |||
| image1=Example | | caption-image1=Example caption | ||
| image2=Example2.png | |||
| | | caption-image2=Example caption 2 | ||
| image2= | |||
| | |||
| national_anthem=Example | | national_anthem=Example | ||
| capital=Example | | capital=Example | ||
| largest_city=Example | | largest_city=Example | ||
| national_language=Example | | national_language=Example | ||
| religion=Example | | religion=Example | ||
| demonym(s)=Example | | demonym(s)=Example | ||
| government=Example | | government=Example | ||
| total_area=Example | | total_area=Example | ||
| population=Example | | population=Example | ||
| currency=Example | | currency=Example | ||
}} | }} | ||
</pre> | </pre> | ||
<templatedata> | <templatedata> | ||
{"params":{"title1":{"suggested":true},"image1":{"suggested":true}," | { | ||
"params": { | |||
"title1": {"suggested": true, "description": "Title of the infobox, defaults to page name"}, | |||
"image1": {"suggested": true, "description": "First image filename"}, | |||
"caption-image1": {"suggested": true, "description": "Caption for the first image"}, | |||
"image2": {"suggested": true, "description": "Second image filename"}, | |||
"caption-image2": {"suggested": true, "description": "Caption for the second image"}, | |||
"national_anthem": {"suggested": true, "description": "National anthem of the country"}, | |||
"capital": {"suggested": true, "description": "Capital city"}, | |||
"largest_city": {"suggested": true, "description": "Largest city"}, | |||
"national_language": {"suggested": true, "description": "National language(s)"}, | |||
"religion": {"suggested": true, "description": "Official or majority religion"}, | |||
"demonym(s)": {"suggested": true, "description": "Demonym(s) for the country"}, | |||
"government": {"suggested": true, "description": "Type of government"}, | |||
"total_area": {"suggested": true, "description": "Total area of the country"}, | |||
"population": {"suggested": true, "description": "Population of the country"}, | |||
"currency": {"suggested": true, "description": "Currency used"} | |||
}, | |||
"sets": [], | |||
"maps": {} | |||
} | |||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Revision as of 13:02, 18 April 2026
Usage
Example usage:
{{Country (FINAL)
| title1=Example
| image1=Example.png
| caption-image1=Example caption
| image2=Example2.png
| caption-image2=Example caption 2
| national_anthem=Example
| capital=Example
| largest_city=Example
| national_language=Example
| religion=Example
| demonym(s)=Example
| government=Example
| total_area=Example
| population=Example
| currency=Example
}}
<templatedata> {
"params": {
"title1": {"suggested": true, "description": "Title of the infobox, defaults to page name"},
"image1": {"suggested": true, "description": "First image filename"},
"caption-image1": {"suggested": true, "description": "Caption for the first image"},
"image2": {"suggested": true, "description": "Second image filename"},
"caption-image2": {"suggested": true, "description": "Caption for the second image"},
"national_anthem": {"suggested": true, "description": "National anthem of the country"},
"capital": {"suggested": true, "description": "Capital city"},
"largest_city": {"suggested": true, "description": "Largest city"},
"national_language": {"suggested": true, "description": "National language(s)"},
"religion": {"suggested": true, "description": "Official or majority religion"},
"demonym(s)": {"suggested": true, "description": "Demonym(s) for the country"},
"government": {"suggested": true, "description": "Type of government"},
"total_area": {"suggested": true, "description": "Total area of the country"},
"population": {"suggested": true, "description": "Population of the country"},
"currency": {"suggested": true, "description": "Currency used"}
},
"sets": [],
"maps": {}
} </templatedata>