Template:Infobox economy: Difference between revisions

Created page with "{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> == Usage == {{Generic template demo |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 |labor |occupations |unemployment |average gross salary={{nowrap|{{{average gross salary}}}}} |gross median |average net salary={{nowrap|..."
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
<includeonly>{{Infobox
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
| bodystyle = width:{{{width|26.0em}}};padding:0;


== Usage ==
| titleclass = adr
{{Generic template demo
| title = Economy of {{#if:{{{continent|}}} |{{{continent}}} | {{#if:{{{country|}}}|<span class="country-name">{{{country}}}</span>|{{{name|}}} }} }}
|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 |labor |occupations |unemployment |average gross salary={{nowrap|{{{average gross salary}}}}} |gross median |average net salary={{nowrap|{{{average net salary}}}}} |net median |industries |edbr |exports |export-goods |export-partners |imports |import-goods |import-partners |FDI |current account |gross external debt={{nowrap|{{{gross external debt}}}}} |NIIP |debt |balance |revenue |expenses |aid |credit |reserves |cianame|hdi
}}


<pre style="overflow:auto;">
| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|{{{image size|}}}}}} |sizedefault=frameless |alt={{{alt|}}} }}
{{Infobox economy
| caption = {{{caption|}}}
| country    =
| headerstyle = background:lightblue;
| 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$
}}
</pre>


===Continents===
| label1 = Currency
<pre style="overflow:auto">
| data1 = {{{currency|}}}
{{Infobox economy
| label2 = {{longitem|[[Fixed exchange rate|{{allow wrap|Fixed exchange rates}}]]}}
| continent =  
| data2 = {{{fixed exchange|}}}
| population =
| label3 = {{longitem|[[Fiscal year]]}}
| gdp =  
| data3 = {{{year|}}}
| per capita =  
| label4 = {{longitem|Trade {{#switch:{{{spelling|}}} |Oxford|US|U.S.=organizations |#default=organisations}}}}
| growth =  
| data4 = {{{organs|}}}
| millionaires =  
| label5 = {{longitem|Country group}}
| top ten percent income =  
| data5 = {{{group|}}}
| external debt per gdp =  
| external debt payments per gdp =  
| foreign aid revenue per gdp =  
| footnote =
}}
</pre>


==Template data==
<!----------------------Statistics------------------------->
{{TemplateData header}}
| header6 = Statistics
<templatedata>
| label7 = Population
{
| data7 = {{{population|}}}
"description": "An infobox for economies",
| label8 = [[Gross domestic product|GDP]]
"params": {
| data8 = {{{gdp|}}}  
"country": {
| label9 = GDP rank
"label": "Country",
| data9 = {{{gdp rank|}}}
"description": "Name of the country",
| label10 = {{longitem|GDP growth}}
"type": "string"
| data10 = {{{growth|}}}
},
| label11 = {{longitem|GDP per capita}}
"image": {
| data11 = {{{per capita|}}}
"label": "Image",
| label12 = {{longitem|GDP per capita rank}}
"description": "The name of the image file to display, without the \"File:\" prefix",
| data12 = {{{per capita rank|}}}
"type": "string"
| label13 = {{longitem|GDP by sector}}
},
| data13 = {{{sectors|}}}
"gdp": {
| label14 = {{longitem|GDP by component}}
"label": "GDP",
| data14 = {{{components|}}}
"description": "Gross domestic product (typically nominal, unless stated otherwise)",
| label15 = {{longitem|style=line-height:1.2em|[[Inflation]] ([[Consumer price index|CPI]])}}
"type": "string"
| data15 = {{{inflation|}}}
},
| label16 = {{longitem|[[Bank rate|{{allow wrap|Base borrowing rate}}]]}}
"gdp rank": {
| data16 = {{{bankrate|}}}
"label": "GDP Rank",
| label17 = {{longitem|style=line-height:1.2em|[[Millionaire]]s ([[United States dollar|US$]])}}
"description": "Gross domestic product rank (typically nominal, unless stated otherwise)",
| data17 = {{{millionaires|}}}
"type": "string"
| label18 = {{longitem|Population below {{nowrap|[[Poverty threshold|poverty line]]}}}}
}
| data18 = {{{poverty|}}}
},
| label19 = {{longitem|[[Gini coefficient|{{allow wrap|Gini coefficient}}]]}}
"format": "block"
| data19 = {{{gini|}}}
}
| label20 = {{longitem|[[Human Development Index]]}}
</templatedata>
| 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|}}}


== Microformat ==
<!-----------------------External-------------------------->
{{UF-adr}}
| 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}}
| label32 = Exports
| data32 = {{{exports|}}}
| label33 = {{longitem|Export goods}}
| data33 = {{{export-goods|}}}
| label34 = {{longitem|Main export partners}}
| data34 = {{{export-partners|}}}
| label35 = Imports
| data35 = {{{imports|}}}
| 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|}}}


<includeonly>{{Sandbox other||
<!--------------------Public finances---------------------->
<!-- Categories below this line, please; interwikis at Wikidata -->
| header45 = {{#if:{{{debt|}}}{{{balance|}}}{{{revenue|}}}{{{expenses|}}}{{{aid|}}}{{{credit|}}}{{{reserves|}}} |Public finances}}
[[Category:Business infobox templates|Economy]]
| label46 = {{longitem|[[List of countries by public debt|{{allow wrap|Public debt}}]]}}
[[Category:Economics templates]]
| data46 = {{{debt|}}}
}}</includeonly>
| label47 = {{longitem|[[List of countries by current account balance as a percentage of GDP|{{allow wrap|Budget balance}}]]}}
| 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>
 
[[Category:Economy]]

Latest revision as of 14:54, 2 March 2022