Template:Infobox currency/doc: Difference between revisions

Unlink imported Wikipedia interwiki documentation links
Remove remaining unsupported template dependencies
 
(2 intermediate revisions by the same user not shown)
Line 68: Line 68:
| subunit_ratio_1 = {{frac|1|100}}
| subunit_ratio_1 = {{frac|1|100}}
| subunit_name_1 =
| subunit_name_1 =
| symbol = [[€]]
| symbol = €
| plural =
| plural =
| plural_subunit_1 =
| plural_subunit_1 =
Line 169: Line 169:
===Names===
===Names===
* '''{{para|name}}''' or {{para|currency_name}}: overrides the default, the article name (<code><nowiki>{{PAGENAME}}</nowiki></code>)
* '''{{para|name}}''' or {{para|currency_name}}: overrides the default, the article name (<code><nowiki>{{PAGENAME}}</nowiki></code>)
:For example: "[[German mark (1871)]]" &rarr; {{para|currency_name|German mark}}
:For example: "German mark (1871)" &rarr; {{para|currency_name|German mark}}


* '''{{para|local_name|}}, {{para|local_name_lang|}}''' allows a native name.
* '''{{para|local_name|}}, {{para|local_name_lang|}}''' allows a native name.
Line 175: Line 175:


:For example: <code><nowiki>|local_name={{native name|fi|Suomen markka|italics=off}}</nowiki></code> &rarr; {{native name|sv|Finska mark|italics=off}}
:For example: <code><nowiki>|local_name={{native name|fi|Suomen markka|italics=off}}</nowiki></code> &rarr; {{native name|sv|Finska mark|italics=off}}
: Language codes are in [[:Template:ISO_639_name|ISO 639 language code]].
: Language codes are in ISO 639 language code.
:'''{{para|postfix, postfix1}}''' will be aded as suffix text to local name #1. Its {{para|local_name_lang1}} will ''not'' show.
:'''{{para|postfix, postfix1}}''' will be aded as suffix text to local name #1. Its {{para|local_name_lang1}} will ''not'' show.


Line 181: Line 181:


:All official languages of the issuing authority, plus all that appear on the physical currencies. But exclude languages that appear on motto ("E Pluribus Unum", of the US, "Dieu et mon droit" of UK, if it ever appears) that are in such languages for historical reasons, and regional languages on rotation (the don't-be-stupid clause). It is better missing than to guess. It is ok to be missing. Multiple languages: {{tl|Native name list}}
:All official languages of the issuing authority, plus all that appear on the physical currencies. But exclude languages that appear on motto ("E Pluribus Unum", of the US, "Dieu et mon droit" of UK, if it ever appears) that are in such languages for historical reasons, and regional languages on rotation (the don't-be-stupid clause). It is better missing than to guess. It is ok to be missing. Multiple languages: {{tl|Native name list}}
: In some languages, indefinite/definite articles are part of the nouns, such as the [[North Germanic languages]]. Use indefinite singular form. Example: [[Faroese króna]]. One wouldn't write "le franc français" in French franc's infobox.
: In some languages, indefinite/definite articles are part of the nouns, such as the North Germanic languages. Use indefinite singular form. Example: Faroese króna. One wouldn't write "le franc français" in French franc's infobox.
: See {{tlx|native name}} documentation for listing multiple languages. (One line per spelling. Use the {{tlf|native name}} or similar templates where appropriate. For example: [[Euro]], <small>dólar australiano (Spanish, Portuguese)</small>.
: See {{tlx|native name}} documentation for listing multiple languages. (One line per spelling. Use the {{tlf|native name}} or similar templates where appropriate. For example: Euro, <small>dólar australiano (Spanish, Portuguese)</small>.
: Use capitalization rule as if it is in the middle of a sentence in that language. For example, "franc français", not "Franc français", nor "franc Français".
: Use capitalization rule as if it is in the middle of a sentence in that language. For example, "franc français", not "Franc français", nor "franc Français".


Line 196: Line 196:


===ISO 4217 code===
===ISO 4217 code===
* '''{{para|iso_code}}''', the formal alpha-3 [[ISO 4217]] code like {{code|EGP, EUR, USD}}. Some codes are ambiguously active and obslolete, for these, {{para|obsolete|yes/no}} is decisive.
* '''{{para|iso_code}}''', the formal alpha-3 ISO 4217 code like {{code|EGP, EUR, USD}}. Some codes are ambiguously active and obslolete, for these, {{para|obsolete|yes/no}} is decisive.
:'''{{para|iso_code|<nowiki>''None''</nowiki>}}''' (formatted in any form) can be used. This helps the reader clarifying the status of the currency.
:'''{{para|iso_code|<nowiki>''None''</nowiki>}}''' (formatted in any form) can be used. This helps the reader clarifying the status of the currency.
:Derived values, as defined by ISO 4217{{ISO 4217/cite|SIX}} are added automatically: {{code|ISO Numeric Code}}, {{code|ISO Minor Unit}} (see {{tlx|ISO 4217/code}}<!--,  {{code|ISO Withdrawal Date}}.-->
:Derived values, as defined by ISO 4217{{ISO 4217/cite|SIX}} are added automatically: {{code|ISO Numeric Code}}, {{code|ISO Minor Unit}} (see {{tlx|ISO 4217/code}}<!--,  {{code|ISO Withdrawal Date}}.-->
Line 212: Line 212:
* '''{{para|image_title_1}}'''
* '''{{para|image_title_1}}'''
* '''{{para|image_background_1}}''' (none) #000000
* '''{{para|image_background_1}}''' (none) #000000
* '''{{para|image_width_1}}''' 126 ''or'' 252: use a positive integer, no "px". For examples, see [[East Caribbean dollar]], [[Polish zloty]], [[Chilean peso]], [[Portuguese escudo]], [[Bangladeshi taka]]
* '''{{para|image_width_1}}''' 126 ''or'' 252: use a positive integer, no "px". For examples, see East Caribbean dollar, Polish zloty, Chilean peso, Portuguese escudo, Bangladeshi taka
* '''{{para|image_2}}'''
* '''{{para|image_2}}'''
* '''{{para|image_title_2}}'''
* '''{{para|image_title_2}}'''
Line 220: Line 220:
=== Pre-euro currencies (ERM) ===
=== Pre-euro currencies (ERM) ===
* '''{{para|ERM_since}}''' is required for ERM/euro currencies, unless {{para|ERM_withdraw}} is used
* '''{{para|ERM_since}}''' is required for ERM/euro currencies, unless {{para|ERM_withdraw}} is used
* '''{{para|ERM_withdraw}}''' date (for [[pound sterling]] and [[Italian lira]])
* '''{{para|ERM_withdraw}}''' date (for pound sterling and Italian lira)
* '''{{para|ERM_fixed_rate}}''' "5.94573&nbsp;mk", (not "1 euro = 5.94573 mk", use symbol if possible)
* '''{{para|ERM_fixed_rate}}''' "5.94573&nbsp;mk", (not "1 euro = 5.94573 mk", use symbol if possible)
* '''{{para|ERM_fixed_rate_since}}'''  
* '''{{para|ERM_fixed_rate_since}}'''  
Line 235: Line 235:
* '''{{para|date_of_introduction_source}}''' date_of_introduction Name of and reference to the act regarding the introduction of the currency.
* '''{{para|date_of_introduction_source}}''' date_of_introduction Name of and reference to the act regarding the introduction of the currency.
* '''{{para|using_countries}}''' At least the country that issues the currency, together with any other countries that use it (typically because they do not have their own currency).
* '''{{para|using_countries}}''' At least the country that issues the currency, together with any other countries that use it (typically because they do not have their own currency).
:: Do not use flags (see  MOS:INFOBOXFLAG).
:: Do not use flags.
:: Italicize non-sovereign states or states with limited recognition, order them as appropriate in the context.  
:: Italicize non-sovereign states or states with limited recognition, order them as appropriate in the context.  
:: Only list countries or territories if local people use the currency routinely with each other in that country. A citation is required. Acceptance in hotels and shops in tourist areas does not qualify.
:: Only list countries or territories if local people use the currency routinely with each other in that country. A citation is required. Acceptance in hotels and shops in tourist areas does not qualify.
Line 245: Line 245:
::<code><nowiki>&lt;ref>[http://www.riksbank.com/templates/Page.aspx?id=12953 Sveriges Riksbank], August 2011&lt;/ref></nowiki></code>
::<code><nowiki>&lt;ref>[http://www.riksbank.com/templates/Page.aspx?id=12953 Sveriges Riksbank], August 2011&lt;/ref></nowiki></code>
::<code><nowiki>&lt;ref>[https://www.cia.gov/library/publications/the-world-factbook/fields/2092.html The World Factbook]'', 2010 est.&lt;/ref></nowiki></code><br/>
::<code><nowiki>&lt;ref>[https://www.cia.gov/library/publications/the-world-factbook/fields/2092.html The World Factbook]'', 2010 est.&lt;/ref></nowiki></code><br/>
* '''{{para| inflation_method}}''' for example, [[Consumer price index]] (CPI), or [[Consumer price index|CPI excluding real estate]]
* '''{{para| inflation_method}}''' for example, Consumer price index (CPI), or CPI excluding real estate


=== Pegging ===
=== Pegging ===
Line 255: Line 255:
* '''{{para|unit}}''' unit name, as used locally. e.g., just "dollar" for Australia, Canada etc.
* '''{{para|unit}}''' unit name, as used locally. e.g., just "dollar" for Australia, Canada etc.
* '''{{para|plural}}''' emalangeni (use this is the it doesn't follow English grammar)
* '''{{para|plural}}''' emalangeni (use this is the it doesn't follow English grammar)
* '''{{para|plural_slavic}}''' Put any non-empty value to enable the Slavic notice. For example see [[Russian ruble]]
* '''{{para|plural_slavic}}''' Put any non-empty value to enable the Slavic notice. For example see Russian ruble
* '''{{para|no_plural}}''' put any non-empty value to enable the no-plural notice. For example [[New Taiwan dollar]].
* '''{{para|no_plural}}''' put any non-empty value to enable the no-plural notice. For example New Taiwan dollar.
* '''{{para|symbol}}''' unqualified signs as used locally. For example €, £, $. (). Link to the articles of the currency symbols if exist (e.g. dollar sign, pound sign). Do not use abbreviations here, see {{para|name_abbr}}.
* '''{{para|symbol}}''' unqualified signs as used locally. For example €, £, $. (). Link to the articles of the currency symbols if exist (e.g. dollar sign, pound sign). Do not use abbreviations here, see {{para|name_abbr}}.
* '''{{para|symbol_comment}}''' age, references, notes, language
* '''{{para|symbol_comment}}''' age, references, notes, language
* '''{{para|nickname}}''' For example [[quid]], [[buck]]/[[greenback]], [[loonie]]/[[loonie|huard]]
* '''{{para|nickname}}''' For example quid, buck/greenback, loonie/huard


=== Superunit, subunit (1&ndash;5) ===
=== Superunit, subunit (1&ndash;5) ===
Line 279: Line 279:
* '''{{para|frequently_used_coins}}'''
* '''{{para|frequently_used_coins}}'''
* '''{{para|rarely_used_coins}}'''
* '''{{para|rarely_used_coins}}'''
* '''{{para|coin_article}}''' For example {{para|coin_article|<nowiki>[[United States coinage]]</nowiki>}}
* '''{{para|coin_article}}''' For example {{para|coin_article|<nowiki>United States coinage</nowiki>}}


* The {{para|coin_article}} parameter without an argument will result in {{code|<nowiki>[[Coins of the {{{currency_name|{{PAGENAMEBASE}}}}}|Coins]]</nowiki>}} in boldface type ''only if that article exists''. If that article does not exist, then "Coins" will be in bold and unlinked.
* The {{para|coin_article}} parameter without an argument will result in {{code|<nowiki>{{PAGENAMEBASE}}}}}|Coins</nowiki>}} in boldface type ''only if that article exists''. If that article does not exist, then "Coins" will be in bold and unlinked.
* Use symbol if possible. But it has to be correct down to the position and the spacing. If you are not sure, fall back to the full name. Central bank websites are a good source for authoritative information.
* Use symbol if possible. But it has to be correct down to the position and the spacing. If you are not sure, fall back to the full name. Central bank websites are a good source for authoritative information.
:'''Correct:'''
:'''Correct:'''
Line 312: Line 312:
:* 100&nbsp;000 (with &amp;nbsp;, not a regular space)
:* 100&nbsp;000 (with &amp;nbsp;, not a regular space)
:* 1&nbsp;000&nbsp;000 (with &amp;nbsp;, not a regular space)
:* 1&nbsp;000&nbsp;000 (with &amp;nbsp;, not a regular space)
:* 10<sup>7</sup> (or higher) (use {{tl|e}} if the number doesn't start with 1)
:* 10<sup>7</sup> (or higher) (use <code>scientific notation</code> if the number doesn't start with 1)


Frequent vs. rare comments:
Frequent vs. rare comments:
Line 334: Line 334:
* '''{{para|frequently_used_banknotes}}'''
* '''{{para|frequently_used_banknotes}}'''
* '''{{para|rarely_used_banknotes}}'''
* '''{{para|rarely_used_banknotes}}'''
* '''{{para|banknote_article}}''' [[Banknotes of the Hong Kong dollar]]
* '''{{para|banknote_article}}''' Banknotes of the Hong Kong dollar
:{{para|banknote_article}} without an argument will result in {{code|<nowiki>[[Banknotes of the {{{currency_name|{{PAGENAMEBASE}}}}}|Banknotes]]</nowiki>}}, if that article exists. If that article does not exist, then "Banknotes" will be in bold and unlinked.
:{{para|banknote_article}} without an argument will result in {{code|<nowiki>{{PAGENAMEBASE}}}}}|Banknotes</nowiki>}}, if that article exists. If that article does not exist, then "Banknotes" will be in bold and unlinked.


=== Production ===
=== Production ===
Line 345: Line 345:
* '''{{para|footnotes}}'''
* '''{{para|footnotes}}'''


== TemplateData ==
 
{{TemplateData header}}
{{collapse top|bg=#ccc|title=Template Data}}
<templatedata>
{
"params": {
"currency_name_in_local": {},
"image_1": {},
"image_2": {},
"image_background_1": {},
"image_background_2": {},
"image_width_1": {},
"image_width_2": {},
"image_title_1": {},
"image_title_2": {},
"iso_code": {
"example": "USD",
"type": "string",
"suggested": true,
"label": "ISO 4217 code",
"description": "3-letter code representing the currency"
},
"superunit_name_1": {},
"subunit_name_1": {},
"plural": {},
"symbol": {
"example": "$",
"type": "string"
},
"nickname": {},
"used_banknotes": {},
"frequently_used_banknotes": {},
"rarely_used_banknotes": {},
"used_coins": {},
"frequently_used_coins": {},
"rarely_used_coins": {},
"superunit_ratio_1": {},
"superunit_ratio_2": {},
"superunit_ratio_3": {},
"superunit_ratio_4": {},
"superunit_ratio_5": {},
"superunit_inline_note_1": {},
"superunit_name_2": {},
"superunit_inline_note_2": {},
"superunit_name_3": {},
"superunit_inline_note_3": {},
"superunit_name_4": {},
"superunit_inline_note_4": {},
"superunit_name_5": {},
"superunit_inline_note_5": {},
"subunit_ratio_1": {},
"subunit_ratio_2": {},
"subunit_ratio_3": {},
"subunit_ratio_4": {},
"subunit_ratio_5": {},
"subunit_inline_note_1": {},
"subunit_name_2": {},
"subunit_inline_note_2": {},
"subunit_name_3": {},
"subunit_inline_note_3": {},
"subunit_name_4": {},
"subunit_inline_note_4": {},
"subunit_name_5": {},
"subunit_inline_note_5": {},
"plural_slavic": {},
"no_plural": {},
"plural_subunit_1": {},
"plural_subunit_2": {},
"plural_subunit_3": {},
"plural_subunit_4": {},
"plural_subunit_5": {},
"symbol_subunit_1": {},
"symbol_subunit_2": {},
"symbol_subunit_3": {},
"symbol_subunit_4": {},
"symbol_subunit_5": {},
"nickname_subunit_1": {},
"nickname_subunit_2": {},
"nickname_subunit_3": {},
"nickname_subunit_4": {},
"nickname_subunit_5": {},
"banknote_article": {},
"coin_article": {},
"date_of_introduction": {},
"date_of_introduction_source": {},
"unofficial_users": {},
"using_countries": {
"required": true,
"suggested": true
},
"issuing_authority": {},
"printer": {},
"mint": {},
"issuing_authority_title": {},
"issuing_authority_website": {
"type": "url"
},
"printer_website": {},
"mint_website": {},
"inflation_rate": {},
"value": {},
"ERM_since": {},
"pegged_with": {},
"pegged_by": {},
"inflation_title": {},
"inflation_source_date": {},
"inflation_method": {},
"ERM_withdraw": {},
"ERM_fixed_rate_since": {},
"euro_replace_non_cash": {},
"euro_replace_cash": {},
"ERM_fixed_rate": {},
"ERM_band": {},
"footnotes": {},
"replaced_currency": {},
"date_of_withdrawal": {},
"date_of_withdrawal_source": {},
"replaced_by_currency": {},
"unit": {},
"obsolete": {
"label": "Is obsolete",
"description": "\"Yes\" (or \"1999\") will stat the currency is Obsolete (\"no\"=active currency)",
"type": "string",
"default": "no"
},
"name_abbr": {},
"image_alt_1": {
"aliases": [
"alt1"
],
"type": "string"
},
"image_alt_2": {
"aliases": [
"alt2"
],
"type": "string"
},
"symbol_comment": {
"label": "symbol comment",
"description": "Is added to the symbol (after space). Can have a reference."
},
"iso_comment": {
"label": "ISO 4217 comment",
"description": "comment on ISO code"
},
"iso_ref": {
"label": "ISO reference",
"description": "reference (<ref>) for ISO 4217 data",
"type": "string"
},
"obsolete_notice": {
"label": "Obsolete footnote",
"description": "Will add footnote \"Infobox shows status before going obsolete\". Only when obsolete=yes.",
"type": "boolean"
},
"qid": {
"label": "QID",
"description": "Wikidata QID when this currency is not the article item"
},
"name": {
"aliases": [
"currency_name"
]
},
"local_name_format": {},
"local_name_lang": {},
"local_name_lang1": {},
"local_name": {},
"local_name1": {},
"postfix": {},
"postfix1": {},
"local_name_lang2": {},
"local_name2": {},
"local_name_lang3": {},
"local_name3": {},
"local_name_lang4": {},
"local_name4": {}
},
"description": "currency",
"format": "block",
"paramOrder": [
"name",
"name_abbr",
"currency_name_in_local",
"image_1",
"image_width_1",
"image_title_1",
"image_alt_1",
"image_background_1",
"image_2",
"image_width_2",
"image_title_2",
"image_alt_2",
"image_background_2",
"iso_code",
"iso_comment",
"iso_ref",
"unit",
"plural",
"plural_slavic",
"no_plural",
"symbol",
"symbol_comment",
"nickname",
"used_banknotes",
"frequently_used_banknotes",
"rarely_used_banknotes",
"used_coins",
"frequently_used_coins",
"rarely_used_coins",
"superunit_name_1",
"superunit_ratio_1",
"superunit_ratio_2",
"superunit_ratio_3",
"superunit_ratio_4",
"superunit_ratio_5",
"superunit_inline_note_1",
"superunit_name_2",
"superunit_inline_note_2",
"superunit_name_3",
"superunit_inline_note_3",
"superunit_name_4",
"superunit_inline_note_4",
"superunit_name_5",
"superunit_inline_note_5",
"subunit_ratio_1",
"subunit_ratio_2",
"subunit_ratio_3",
"subunit_ratio_4",
"subunit_ratio_5",
"subunit_name_1",
"subunit_inline_note_1",
"subunit_name_2",
"subunit_inline_note_2",
"subunit_name_3",
"subunit_inline_note_3",
"subunit_name_4",
"subunit_inline_note_4",
"subunit_name_5",
"subunit_inline_note_5",
"plural_subunit_1",
"plural_subunit_2",
"plural_subunit_3",
"plural_subunit_4",
"plural_subunit_5",
"symbol_subunit_1",
"symbol_subunit_2",
"symbol_subunit_3",
"symbol_subunit_4",
"symbol_subunit_5",
"nickname_subunit_1",
"nickname_subunit_2",
"nickname_subunit_3",
"nickname_subunit_4",
"nickname_subunit_5",
"banknote_article",
"coin_article",
"date_of_introduction",
"date_of_introduction_source",
"using_countries",
"unofficial_users",
"issuing_authority_title",
"issuing_authority",
"issuing_authority_website",
"printer",
"printer_website",
"mint",
"mint_website",
"inflation_rate",
"value",
"pegged_with",
"pegged_by",
"inflation_title",
"inflation_source_date",
"inflation_method",
"ERM_since",
"ERM_withdraw",
"ERM_fixed_rate_since",
"ERM_band",
"ERM_fixed_rate",
"euro_replace_non_cash",
"euro_replace_cash",
"replaced_currency",
"date_of_withdrawal",
"date_of_withdrawal_source",
"replaced_by_currency",
"obsolete",
"obsolete_notice",
"footnotes",
"qid",
"local_name_format",
"local_name_lang",
"local_name_lang1",
"local_name",
"local_name1",
"postfix",
"postfix1",
"local_name_lang2",
"local_name2",
"local_name_lang3",
"local_name3",
"local_name_lang4",
"local_name4"
]
}
</templatedata>
{{collapse bottom}}
{{collapse bottom}}




}}</includeonly>
}}</includeonly>