Jump to content

Template:Infobox country: Difference between revisions

From Green Sea Wiki
No edit summary
No edit summary
 
(54 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox" style="width: 22em; font-size: 90%; text-align: left; border: 1px solid #aaa; background: #f9f9f9;"
<!-- =========================== -->
<!-- Green Sea Wiki Template Pack (MediaWiki) -->
<!-- Version 3.2 - Simplified Version without Auto-Hide -->
<!-- =========================== -->
 
<!-- Template:Infobox country -->
<includeonly>
{| class="infobox" style="width: 24em; font-size: 90%; text-align: left; border: 1px solid #aaa; background: #f9f9f9; float:right;"
|-
|-
| colspan="2" style="text-align: center;" | [[File:{{{image_flag|Placeholder_flag.png}}}|border|250px]]
| colspan="2" style="text-align: center; font-size: 125%;" | '''{{{conventional_long_name}}}'''
|-
|-
| colspan="2" style="text-align: center;" | [[File:{{{image_coat|Placeholder_coat.png}}}|100px]]
| colspan="2" style="text-align: center; font-size: 100%;" | ''{{{native_name|}}}'' ({{{native_lang|}}})
|-
|-
! Official Name
| colspan="2" style="text-align: center; font-size: 100%;" | ''{{{native2_name|}}}'' ({{{native2_lang|}}})
| {{{conventional_long_name}}}
|-
|-
! Motto
! colspan="2" style="text-align: center;" | '''Flag'''
| ''{{{motto|}}}''
|-
|-
! Anthem
| colspan="2" style="text-align: center;" | [[File:{{{flag|Placeholder_flag.png}}}|250px]]
| ''{{{anthem|}}}''
|-
| colspan="2" style="background:#ccc; height:1px;" |
|-
! colspan="2" style="text-align: center;" | '''Anthem:'''
|-
| colspan="2" style="text-align: center;" | {{{anthem_name|}}}<br />{{{anthem2_name|}}}<br />''{{{anthem2_translit|}}}''<br />{{{anthem_english|}}}
|-
| colspan="2" style="background:#ccc; height:1px;" |
|-
! colspan="2" style="text-align: center;" | '''Map'''
|-
| colspan="2" style="text-align: center;" | [[File:{{{map|Placeholder_map.png}}}|250px]]
|-
| colspan="2" style="background:#ccc; height:1px;" |
|-
|-
! Capital
! Capital
Line 23: Line 41:
| {{{official_languages|}}}
| {{{official_languages|}}}
|-
|-
! Demonym
! Recognised regional languages
| {{{regional_languages|}}}
|-
! Ethnic groups
| {{{ethnic_groups|}}}
|-
! Religion ({{{religion_year|}}})
| {{{religion|}}}
|-
! Demonym(s)
| {{{demonym|}}}
| {{{demonym|}}}
|-
|-
! Government
| colspan="2" style="background:#ccc; height:1px;" |
|-
! colspan="2" | Government
|-
| style="width:40%" | Type
| {{{government_type|}}}
| {{{government_type|}}}
|-
|-
! President
| • President
| {{{president|}}}
| {{{president|}}}
|-
|-
! Prime Minister
| • Prime Minister
| {{{prime_minister|}}}
| {{{prime_minister|}}}
|-
|-
! Legislature
! Formation
| {{{legislature|}}}
| {{{formation|}}}
|-
| colspan="2" style="background:#ccc; height:1px;" |
|-
|-
! Area
! Area
|-
| • Total:
| {{{area_km2|}}} km²
| {{{area_km2|}}} km²
|-
|-
! Population
! Population ({{{population_year|}}})
|-
| • Census:
| {{{population_estimate|}}}
| {{{population_estimate|}}}
|-
| • Density:
| {{{population_density|}}}/km²
|-
! GDP (Nominal) ({{{gdp_year|}}})
|-
| • Total:
| {{{gdp_total|}}}
|-
| • Per capita:
| {{{gdp_per_capita|}}}
|-
! GDP (PPP) ({{{gdp_ppp_year|}}})
|-
| • Total:
| {{{gdp_ppp_total|}}}
|-
| • Per capita:
| {{{gdp_ppp_per_capita|}}}
|-
|-
! Currency
! Currency
| {{{currency|}}}
| {{{currency|}}}
|-
| colspan="2" style="background:#ccc; height:1px;" |
|-
|-
! Time Zone
! Time Zone
| {{{time_zone|}}}
| {{{time_zone|}}}
|-
! Drives on
| {{{drives_on|}}}
|-
|-
! Calling code
! Calling code
| {{{calling_code|}}}
| {{{calling_code|}}}
|-
|-
! Top-level domain
! ISO 3166 code
| {{{iso_code|}}}
|-
! Internet TLD
| {{{cctld|}}}
| {{{cctld|}}}
|-
! Map
| [[File:{{{map|Placeholder_map.png}}}|250px]]
|}
|}
</includeonly>
<!-- Usage Block -->
<noinclude>
== Usage ==
{{Infobox country
| conventional_long_name = Full English name
| native_name = First native name
| native_lang = Native language
| native2_name = Second native name
| native2_lang = Second native language
| flag = flag.png
| anthem_name = Native anthem name
| anthem2_name = Second native name
| anthem2_translit = Second native translit
| anthem_english = Anthem name english
| map = Map.png
| capital = Capital
| largest_city = Big City
| official_languages = Languages
| regional_languages = Regional Languages
| ethnic_groups = % then name
| religion_year = Year of the polling
| religion = Religion
| demonym = Demonym
| government_type = Type
| president = President
| prime_minister = Prime-Minister
| formation = Date
| area_km2 = Area in km2
| population_year = Year of pop census
| population_estimate = Pop
| population_density = Density
| gdp_year = GDP Year
| gdp_total = GDP total
| gdp_per_capita = GDP per capita
| gdp_ppp_year = GDP PPP Year
| gdp_ppp_total = GDP PPP total
| gdp_ppp_per_capita = GDP PPP per capita
| currency = Currency
| time_zone = UTC+/-
| calling_code = +xxx
| iso_code = code
| cctld = .xx
}}
<!-- TemplateData Block -->
<templatedata>
{
    "description": "Infobox for a country styled like Wikipedia's infobox, with optional sections that automatically hide if empty.",
    "params": {
        "conventional_long_name": {"label": "Conventional long name", "type": "string"},
        "native_name": {"label": "Native name", "type": "string"},
        "native_lang": {"label": "Native language", "type": "string"},
        "native2_name": {"label": "Second native name", "type": "string"},
        "native2_lang": {"label": "Second native language", "type": "string"},
        "flag": {"label": "Flag image filename", "type": "string"},
        "anthem_name": {"label": "Anthem name (native)", "type": "string"},
        "anthem2_name": {"label": "Second anthem name", "type": "string"},
        "anthem2_translit": {"label": "Second anthem transliteration", "type": "string"},
        "anthem_english": {"label": "Anthem (English) page link", "type": "string"},
        "map": {"label": "Map image filename", "type": "string"},
        "capital": {"label": "Capital", "type": "string"},
        "largest_city": {"label": "Largest city", "type": "string"},
        "official_languages": {"label": "Official languages", "type": "string"},
        "regional_languages": {"label": "Recognised regional languages", "type": "string"},
        "ethnic_groups": {"label": "Ethnic groups", "type": "string"},
        "religion_year": {"label": "Religion census year", "type": "string"},
        "religion": {"label": "Religion", "type": "string"},
        "demonym": {"label": "Demonym(s)", "type": "string"},
        "government_type": {"label": "Government type", "type": "string"},
        "president": {"label": "President", "type": "string"},
        "prime_minister": {"label": "Prime Minister", "type": "string"},
        "formation": {"label": "Formation", "type": "string"},
        "area_km2": {"label": "Area (km²)", "type": "number"},
        "population_year": {"label": "Population census year", "type": "string"},
        "population_estimate": {"label": "Population estimate", "type": "string"},
        "population_density": {"label": "Population density", "type": "string"},
        "gdp_year": {"label": "GDP census year", "type": "string"},
        "gdp_total": {"label": "GDP Total (Nominal)", "type": "string"},
        "gdp_per_capita": {"label": "GDP Per Capita (Nominal)", "type": "string"},
        "gdp_ppp_year": {"label": "GDP PPP census year", "type": "string"},
        "gdp_ppp_total": {"label": "GDP Total (PPP)", "type": "string"},
        "gdp_ppp_per_capita": {"label": "GDP Per Capita (PPP)", "type": "string"},
        "currency": {"label": "Currency", "type": "string"},
        "time_zone": {"label": "Time Zone", "type": "string"},
        "calling_code": {"label": "Calling Code", "type": "string"},
        "iso_code": {"label": "ISO 3166 code", "type": "string"},
        "cctld": {"label": "Internet TLD", "type": "string"}
    }
}
</templatedata>
</noinclude>

Latest revision as of 02:42, 8 April 2025



Usage

Full English name
First native name (Native language)
Second native name (Second native language)
Flag
File:Flag.png
Anthem:
Native anthem name
Second native name
Second native translit
Anthem name english
Map
File:Map.png
Capital Capital
Largest city Big City
Official languages Languages
Recognised regional languages Regional Languages
Ethnic groups % then name
Religion (Year of the polling) Religion
Demonym(s) Demonym
Government
Type Type
• President President
• Prime Minister Prime-Minister
Formation Date
Area
• Total: Area in km2 km²
Population (Year of pop census)
• Census: Pop
• Density: Density/km²
GDP (Nominal) (GDP Year)
• Total: GDP total
• Per capita: GDP per capita
GDP (PPP) (GDP PPP Year)
• Total: GDP PPP total
• Per capita: GDP PPP per capita
Currency Currency
Time Zone UTC+/-
Calling code +xxx
ISO 3166 code code
Internet TLD .xx



Infobox for a country styled like Wikipedia's infobox, with optional sections that automatically hide if empty.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Conventional long nameconventional_long_name

no description

Stringoptional
Native namenative_name

no description

Stringoptional
Native languagenative_lang

no description

Stringoptional
Second native namenative2_name

no description

Stringoptional
Second native languagenative2_lang

no description

Stringoptional
Flag image filenameflag

no description

Stringoptional
Anthem name (native)anthem_name

no description

Stringoptional
Second anthem nameanthem2_name

no description

Stringoptional
Second anthem transliterationanthem2_translit

no description

Stringoptional
Anthem (English) page linkanthem_english

no description

Stringoptional
Map image filenamemap

no description

Stringoptional
Capitalcapital

no description

Stringoptional
Largest citylargest_city

no description

Stringoptional
Official languagesofficial_languages

no description

Stringoptional
Recognised regional languagesregional_languages

no description

Stringoptional
Ethnic groupsethnic_groups

no description

Stringoptional
Religion census yearreligion_year

no description

Stringoptional
Religionreligion

no description

Stringoptional
Demonym(s)demonym

no description

Stringoptional
Government typegovernment_type

no description

Stringoptional
Presidentpresident

no description

Stringoptional
Prime Ministerprime_minister

no description

Stringoptional
Formationformation

no description

Stringoptional
Area (km²)area_km2

no description

Numberoptional
Population census yearpopulation_year

no description

Stringoptional
Population estimatepopulation_estimate

no description

Stringoptional
Population densitypopulation_density

no description

Stringoptional
GDP census yeargdp_year

no description

Stringoptional
GDP Total (Nominal)gdp_total

no description

Stringoptional
GDP Per Capita (Nominal)gdp_per_capita

no description

Stringoptional
GDP PPP census yeargdp_ppp_year

no description

Stringoptional
GDP Total (PPP)gdp_ppp_total

no description

Stringoptional
GDP Per Capita (PPP)gdp_ppp_per_capita

no description

Stringoptional
Currencycurrency

no description

Stringoptional
Time Zonetime_zone

no description

Stringoptional
Calling Codecalling_code

no description

Stringoptional
ISO 3166 codeiso_code

no description

Stringoptional
Internet TLDcctld

no description

Stringoptional