Difference between revisions of "Template:Infobox economy/doc"

From blackwiki
Jump to navigation Jump to search
(+ja)
imported>Vanisaac
m (→‎Microformat: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(70 intermediate revisions by 31 users not shown)
Line 1: Line 1:
{{documentation subpage}}
+
{{Documentation subpage}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
+
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
===Usage===
+
 
<pre>
+
== Usage ==
{{Infobox Economy
+
{{Generic template demo
|country         =
+
|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
|image           =
 
|width          =
 
|caption         =
 
|currency       =
 
|year           =
 
|organs         =
 
|rank            =
 
|gdp             =
 
|growth         =
 
|per capita     =
 
|sectors         =
 
|inflation       =
 
|poverty         =
 
|gini           =
 
|labor           =
 
|occupations     =  
 
|unemployment    =  
 
|industries     =
 
|exports         =
 
|export-goods   =
 
|export-partners =
 
|imports         =
 
|import-goods   =
 
|import-partners =  
 
|gross external debt =
 
|debt           =
 
|revenue         =
 
|expenses       =
 
|foreign reserves =
 
|aid             =
 
|credit         =
 
|cianame         =
 
|spelling        =
 
 
}}
 
}}
</pre><includeonly><!--Categories-->
+
 
 +
<pre style="overflow:auto;">
 +
{{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$
 +
}}
 +
</pre>
 +
 
 +
===Continents===
 +
<pre style="overflow:auto">
 +
{{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 =
 +
}}
 +
</pre>
 +
 
 +
==Template data==
 +
{{TemplateData header}}
 +
<templatedata>
 +
{
 +
"description": "An infobox for economies",
 +
"params": {
 +
"country": {
 +
"label": "Country",
 +
"description": "Name of the country",
 +
"type": "string"
 +
},
 +
"image": {
 +
"label": "Image",
 +
"description": "The name of the image file to display, without the \"File:\" prefix",
 +
"type": "string"
 +
},
 +
"gdp": {
 +
"label": "GDP",
 +
"description": "Gross domestic product (typically nominal, unless stated otherwise)",
 +
"type": "string"
 +
},
 +
"gdp rank": {
 +
"label": "GDP Rank",
 +
"description": "Gross domestic product rank (typically nominal, unless stated otherwise)",
 +
"type": "string"
 +
}
 +
},
 +
"format": "block"
 +
}
 +
</templatedata>
 +
 
 +
== Microformat ==
 +
{{UF-adr}}
 +
 
 +
<includeonly>{{Sandbox other||
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Business infobox templates|Economy]]
 
[[Category:Business infobox templates|Economy]]
[[Category:WikiProject Economics|{{PAGENAME}}]]
+
[[Category:Economics templates]]
 
+
}}</includeonly>
<!--Other languages-->
 
[[es:Plantilla:Infobox Economía]]
 
[[fr:Modèle:Infobox Économie]]
 
[[ja:Template:Infobox 経済]]
 
[[ka:თარგი:ინფოდაფა ეკონომიკა]]
 
[[ro:Format:Infobox Economie]]
 
</includeonly>
 

Latest revision as of 18:41, 25 April 2020

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