Difference between revisions of "Template:Infobox economy"

From blackwiki
Jump to navigation Jump to search
imported>GreenC
(URL change see talk)
 
(214 intermediate revisions by 86 users not shown)
Line 1: Line 1:
{{Infobox
+
<includeonly>{{Infobox
|name = Infobox Economy
+
| bodystyle = width:{{{width|26.0em}}};padding:0;
|above = Economy of {{{country}}}
 
|image = {{#if:{{{image|}}}  |[[Image:{{{image}}}|{{{width}}}px]]}}
 
|caption = {{#if:{{{caption|}}} ''{{{caption}}}''|}}
 
  
|bodystyle = width:25em; padding: 0px;
+
| titleclass = adr
|abovestyle = background:lightblue;
+
| title = Economy of {{#if:{{{continent|}}} |{{{continent}}} | {{#if:{{{country|}}}|<span class="country-name">{{{country}}}</span>|{{{name|}}} }} }}
|headerstyle = background:lightblue;
 
|labelstyle = font-weight: normal;
 
  
|label1 = '''Currency'''
+
| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|{{{image size|}}}}}} |sizedefault=frameless |alt={{{alt|}}} }}
|data1 = {{{currency}}}
+
| caption = {{{caption|}}}
|label2 = '''Fiscal year'''
+
| headerstyle = background:lightblue;
|data2 = {{{year}}}
 
|label3 = '''Trade {{#ifeq:{{{spelling}}}|<!--equals:-->Oxford|<!--then:-->organizations |<!--else:-->{{#ifeq:{{{spelling}}}|<!--equals:-->US|<!--then:-->organizations |<!--else:-->organisations}}}}'''
 
|data3 ={{{organs}}}
 
  
|header4 = Statistics
+
| label1 = Currency
|label5 = '''[[GDP]]''' ([[Purchasing power parity|PPP]])
+
| data1 = {{{currency|}}}  
|data5 = {{{gdp}}} ([[List of countries by GDP (PPP)|{{{53rd}}}]])
+
| label2 = {{longitem|[[Fixed exchange rate|{{allow wrap|Fixed exchange rates}}]]}}
|label6 = '''GDP growth'''
+
| data2 = {{{fixed exchange|}}}
|data6 = {{{growth|}}}
+
| label3 = {{longitem|[[Fiscal year]]}}
|label7 = '''GDP per capita'''
+
| data3 = {{{year|}}}
|data7 = {{{per capita}}}
+
| label4 = {{longitem|Trade {{#switch:{{{spelling|}}} |Oxford|US|U.S.=organizations |#default=organisations}}}}
|label8 = '''GDP by sector'''
+
| data4 = {{{organs|}}}
|data8 = {{{sectors|}}}
+
| label5 = {{longitem|Country group}}
|label9 = '''[[Inflation]]''' ([[Consumer price index|CPI]])
+
| data5 = {{{group|}}}
|data9 = {{{inflation}}}
 
|label10 = '''Population<br/>below [[poverty line]]'''
 
|data10 = {{{poverty|}}}
 
|label11 = '''[[Gini index]]'''
 
|data11 = {{{gini|}}}
 
|label12 ='''{{#ifeq:{{{spelling}}}|<!--equals:-->US|<!--then:-->Labor|<!--else:-->Labour}} force'''
 
|data12 = {{{labor|}}}
 
|label13 = '''{{#ifeq:{{{spelling}}}|<!--equals:-->US|<!--then:-->Labor|<!--else:-->Labour}} force<br/>by occupation'''
 
|data13 = {{{occupations|}}}
 
|label14 = '''[[Unemployment]]'''
 
|data14 = {{{unemployment|}}}
 
|label15 = '''Main industries'''
 
|data15 = {{{industries}}}
 
  
|header16 = External
+
<!----------------------Statistics------------------------->
|label17 = '''Exports'''
+
| header6 = Statistics
|data17 = {{{exports}}}
+
| label7 = Population
|label18 = '''Export goods'''
+
| data7 = {{{population|}}}
|data18 ={{{export-goods|}}}
+
| label8 = [[Gross domestic product|GDP]]
|label19 = '''Main export partners'''
+
| data8 = {{{gdp|}}}
|data19 ={{{export-partners|}}}
+
| label9 = GDP rank
|label20 = '''Imports'''
+
| data9 = {{{gdp rank|}}}
|data20 ={{{imports}}}
+
| label10 = {{longitem|GDP growth}}
|label21 = '''Import goods'''
+
| data10 = {{{growth|}}}
|data21 ={{{import-goods|}}}
+
| label11 = {{longitem|GDP per capita}}
|label22 = '''Main import partners'''
+
| data11 = {{{per capita|}}}
|data22 ={{{import-partners|}}}
+
| label12 = {{longitem|GDP per capita rank}}
|label23 = '''Gross External Debt'''
+
| data12 = {{{per capita rank|}}}
|data23 ={{{gross external debt|}}}
+
| label13 = {{longitem|GDP by sector}}
 +
| data13 = {{{sectors|}}}
 +
| label14 = {{longitem|GDP by component}}
 +
| data14 = {{{components|}}}
 +
| label15 = {{longitem|style=line-height:1.2em|[[Inflation]] ([[Consumer price index|CPI]])}}
 +
| data15 = {{{inflation|}}}
 +
| label16 = {{longitem|[[Bank rate|{{allow wrap|Base borrowing rate}}]]}}
 +
| data16 = {{{bankrate|}}}
 +
| label17 = {{longitem|style=line-height:1.2em|[[Millionaire]]s ([[United States dollar|US$]])}}
 +
| data17 = {{{millionaires|}}}
 +
| label18 = {{longitem|Population below {{nowrap|[[Poverty threshold|poverty line]]}}}}
 +
| data18 = {{{poverty|}}}
 +
| label19 = {{longitem|[[Gini coefficient|{{allow wrap|Gini coefficient}}]]}}
 +
| data19 = {{{gini|}}}
 +
| label20 = {{longitem|[[Human Development Index]]}}
 +
| data20 = {{{hdi|}}}
 +
| label21 = {{longitem|{{#switch:{{{spelling}}} |US|U.S.=Labor |#default=Labour}} force}}
 +
| data21 = {{#if:{{{labor|}}} |{{{labor}}} |{{{labour|}}} }}
 +
| label22 = {{longitem|{{#switch:{{{spelling}}} |US|U.S.=Labor |#default=Labour}} force by occupation}}
 +
| data22 = {{{occupations|}}}
 +
| label23 = Unemployment
 +
| data23 = {{{unemployment|}}}
 +
| label24 = {{longitem|Average gross salary}}
 +
| data24 = {{{average gross salary|}}}
 +
| label25 = {{longitem|Median gross salary}}
 +
| data25 = {{{gross median|}}}
 +
| label26 = {{longitem|[[Net pay|{{allow wrap|Average net salary}}]]}}
 +
| data26 = {{{average net salary|}}}
 +
| label27 = {{longitem|Median net salary}}
 +
| data27 = {{{net median|}}}
 +
| label28 = {{longitem|Top&nbsp;10% income}}
 +
| data28 = {{{top ten percent income|}}}
 +
| label29 = {{longitem|Main industries}}
 +
| data29 = {{{industries|}}}
 +
| label30 = {{longitem|[[Ease of doing business index|{{allow wrap|Ease-of-doing-business rank}}]]}}
 +
| data30 = {{{edbr|}}}
  
|header24 = Public finances
+
<!-----------------------External-------------------------->
|label25 = '''Public debt'''
+
| header31 = {{#if:{{{exports|}}}{{{export-goods|}}}{{{export-partners|}}}{{{imports|}}}{{{import-goods|}}}{{{import-partners|}}}{{{FDI|}}}{{{current account|}}}{{{gross external debt|}}}{{{external debt per gdp|}}}{{{external debt payments per gdp|}}}{{{foreign aid revenue per gdp|}}}{{{NIIP|}}} |External}}
|data25 = {{{debt}}}
+
| label32 = Exports
|label26 = '''Revenues'''
+
| data32 = {{{exports|}}}
|data26 = {{{revenue}}}
+
| label33 = {{longitem|Export goods}}
|label27 = '''Expenses'''
+
| data33 = {{{export-goods|}}}
|data27 = {{{expenses|}}}
+
| label34 = {{longitem|Main export partners}}
|label28 = '''Economic aid'''
+
| data34 = {{{export-partners|}}}
|data28 = {{{aid|}}}
+
| label35 = Imports
|label29 = '''Credit rating'''
+
| data35 = {{{imports|}}}
|data29 = {{{credit|}}}
+
| label36 = {{longitem|Import goods}}
 +
| data36 = {{{import-goods|}}}
 +
| label37 = {{longitem|Main import partners}}
 +
| data37 = {{{import-partners|}}}
 +
| label38 = {{longitem|[[Foreign direct investment|FDI]] stock}}
 +
| data38 = {{{FDI|}}}
 +
| label39 = {{longitem|[[current account (balance of payments)|{{allow wrap|Current account}}]]}}
 +
| data39 = {{{current account|}}}
 +
| label40 = {{longitem|Gross [[External debt|{{allow wrap|external debt}}]]}}
 +
| data40 = {{{gross external debt|}}}
 +
| label41 = {{longitem|[[External debt|{{allow wrap|External debt}}]] as % of GDP}}
 +
| data41 = {{{external debt per gdp|}}}
 +
| label42 = {{longitem|External debt payments as % of GDP}}
 +
| data42 = {{{external debt payments per gdp|}}}
 +
| label43 = {{longitem|Foreign-aid revenue as % of GDP}}
 +
| data43 = {{{foreign aid revenue per gdp|}}}
 +
| label44 = {{longitem|[[Net international investment position|{{allow wrap|Net international investment position}}]]}}
 +
| data44 = {{{NIIP|}}}
  
|belowstyle = background:lightblue;
+
<!--------------------Public finances---------------------->
|below= {{#if:{{{cianame|}}}|<!--then:-->[https://www.cia.gov/library/publications/the-world-factbook/geos/{{{cianame}}}.html#Econ '''Main data source: CIA World Factbook''']<br/>|}} ''All values, unless otherwise stated, are in [[United States dollar|US dollars]]''
+
| header45 = {{#if:{{{debt|}}}{{{balance|}}}{{{revenue|}}}{{{expenses|}}}{{{aid|}}}{{{credit|}}}{{{reserves|}}} |Public finances}}
}}<noinclude>
+
| label46 = {{longitem|[[List of countries by public debt|{{allow wrap|Public debt}}]]}}
{{documentation}}
+
| data46 = {{{debt|}}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
+
| label47 = {{longitem|[[List of countries by current account balance as a percentage of GDP|{{allow wrap|Budget balance}}]]}}
</noinclude>
+
| data47 = {{{balance|}}}
 +
| label48 = Revenues
 +
| data48 = {{{revenue|}}}
 +
| label49 = Expenses
 +
| data49 = {{{expenses|}}}
 +
| label50 = Economic&nbsp;aid
 +
| data50 = {{{aid|}}}
 +
| label51 = {{longitem|[[List of countries by credit rating|{{allow wrap|Credit rating}}]]}}
 +
| data51 = {{{credit|}}}
 +
| label52 = {{longitem|Foreign reserves}}
 +
| data52 = {{{reserves|}}}
 +
 
 +
| belowstyle = {{#ifeq:{{{usebelowbox}}}|no | |background:lightblue;}}
 +
| below = {{{footnotes|{{{footnote|}}}}}}<!--
 +
-->{{#ifeq:{{{usebelowbox}}}|no |
 +
    | {{longitem |style=line-height:1.25em;padding:0.2em;
 +
        |  {{#if:{{{cianame|}}}
 +
            |   {{nowrap|Main data source:}} <!--
 +
              -->{{nowrap|'''[https://www.cia.gov/the-world-factbook/countries/{{{cianame}}} CIA World Fact Book]'''}}<!--
 +
        -->}} {{#ifeq:{{{presentUS$asdefault}}}|no |<!--
 +
            -->| <br/>''All values, unless otherwise stated, are in [[United States dollar|US dollars]].''<!--
 +
-->}} }}      }}
 +
}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 03:17, 25 January 2021

Template documentation[view] [edit] [history] [purge]

Usage

  1. redirect Template:Parameter names example
{{Infobox economy
| country    = 
| image      = 
| image_size = 
| caption    = 
| currency   = 
| fixed exchange =
| year       = 
| organs     = 
| group      = 
| gdp        = 
| gdp rank   = 
| growth     = 
| per capita = 
| per capita rank =
| sectors    = 
| components = 
| inflation  =
| bankrate   = 
| poverty    = 
| gini       = 
| hdi        =
| labor      = 
| occupations = 
| unemployment = 
| average gross salary = 
| gross median =
| average net salary =
| net median = 
| industries = 
| edbr       = 
| exports    = 
| export-goods = 
| export-partners = 
| imports    = 
| import-goods = 
| import-partners = 
| FDI        =
| current account = 
| gross external debt =
| NIIP       = 
| debt       = 
| balance    = 
| revenue    = 
| expenses   = 
| aid        = 
| credit     = 
| reserves   = 
| cianame    = Country name abbreviation used at the CIA World Factbook web-page
| spelling   = Oxford or US spells 'z', US '-or'; 's', '-our' spelling by default
| usebelowbox = yes or no; default value is "yes"; shows/hides bottom box
| presentUS$asdefault = yes or no; default value is "yes"; shows/hides statement about US$
}}

Continents

{{Infobox economy
| continent = 
| population =
| gdp = 
| per capita = 
| growth = 
| millionaires = 
| top ten percent income = 
| external debt per gdp = 
| external debt payments per gdp = 
| foreign aid revenue per gdp = 
| footnote =
}}

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Infobox economy

An infobox for economies

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Countrycountry

Name of the country

Stringoptional
Imageimage

The name of the image file to display, without the "File:" prefix

Stringoptional
GDPgdp

Gross domestic product (typically nominal, unless stated otherwise)

Stringoptional
GDP Rankgdp rank

Gross domestic product rank (typically nominal, unless stated otherwise)

Stringoptional

Microformat

Template:UF-adr