Difference between revisions of "Template:Infobox economy/doc"
Jump to navigation
Jump to search
imported>Vanisaac m (→Microformat: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
|||
| (74 intermediate revisions by 34 users not shown) | |||
| Line 1: | Line 1: | ||
| − | + | {{Documentation subpage}} | |
| − | + | <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | |
| − | + | ||
| − | <pre> | + | == Usage == |
| − | {{Infobox | + | {{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 | + | }} |
| − | | | + | |
| − | |caption | + | <pre style="overflow:auto;"> |
| − | |currency | + | {{Infobox economy |
| − | |year | + | | country = |
| − | |organs | + | | image = |
| − | | | + | | image_size = |
| − | |gdp | + | | caption = |
| − | |growth | + | | currency = |
| − | |per capita | + | | fixed exchange = |
| − | |sectors | + | | year = |
| − | |inflation | + | | organs = |
| − | |poverty | + | | group = |
| − | |gini | + | | gdp = |
| − | |labor | + | | gdp rank = |
| − | |occupations | + | | growth = |
| − | |unemployment | + | | per capita = |
| − | |industries | + | | per capita rank = |
| − | |exports | + | | sectors = |
| − | |export-goods | + | | components = |
| − | |export-partners = | + | | inflation = |
| − | |imports | + | | bankrate = |
| − | |import-goods | + | | poverty = |
| − | |import-partners = | + | | gini = |
| − | |gross external debt = | + | | hdi = |
| − | |debt | + | | labor = |
| − | |revenue | + | | occupations = |
| − | |expenses | + | | unemployment = |
| − | |aid | + | | average gross salary = |
| − | |credit | + | | gross median = |
| − | |cianame | + | | average net salary = |
| − | |spelling | + | | 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> | </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:Economics templates]] |
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 18:41, 25 April 2020
| This is a documentation subpage for Template:Infobox economy. It contains usage information, categories and other content that is not part of the original template page. |
Usage
- 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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Country | country | Name of the country | String | optional |
| Image | image | The name of the image file to display, without the "File:" prefix | String | optional |
| GDP | gdp | Gross domestic product (typically nominal, unless stated otherwise) | String | optional |
| GDP Rank | gdp rank | Gross domestic product rank (typically nominal, unless stated otherwise) | String | optional |
Microformat