Jump to content

Template:Infobox currency: Difference between revisions

From the Vrienden Universe, a fictional wiki
wiki>Zackmann08
m Module has been renamed
 
Migrate infobox code parameters to ICR names
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<templatestyles src="Template:Infobox currency/styles.css" />
{{infobox
{{infobox
| title = {{if empty|{{{name|}}}|{{{currency_name|}}}|{{PAGENAMEBASE}}}}
| title = {{if empty|{{{name|}}}|{{{currency_name|}}}|{{PAGENAMEBASE}}}}
Line 51: Line 52:
   }}
   }}


|header1 = {{#if:{{ISO 4217/code|iso-code={{{iso_code|}}}|format=option-none}}{{{iso_comment|}}}{{{iso_ref|}}}|[[ISO 4217]]}}
|header1 = {{#if:{{ISO 4217/code|iso-code={{{icr_code|{{{iso_code|}}}}}}|format=option-none}}{{{icr_comment|{{{iso_comment|}}}}}}{{{icr_ref|{{{iso_ref|}}}}}}|[[ICR 200]]}}


| label2 = Code
| label2 = Code
|  data2 = {{trim|1=<!-- three optional elements < > spaced; needs trimming in case of empty element; a ref requires unspaced
|  data2 = {{trim|1=<!-- three optional elements < > spaced; needs trimming in case of empty element; a ref requires unspaced
-->{{ISO 4217/code|iso-code={{{iso_code|}}}|format=option-none, ISO4217-cat}} <!-- intentional space
-->{{ISO 4217/code|iso-code={{{icr_code|{{{iso_code|}}}}}}|format=option-none, ISO4217-cat}} <!-- intentional space
-->{{yesno|{{if empty|{{{obsolete|}}}|no}}|yes=|no={{#if:{{ISO 4217/code-count|iso-code={{{iso_code|}}}|list=L1}}|(numeric:&#x20;{{ISO 4217/code-to-number|iso-code={{{iso_code|}}}|format=mono}})}}}} <!-- intentional space
-->{{yesno|{{if empty|{{{obsolete|}}}|no}}|yes=|no={{#if:{{ISO 4217/code-count|iso-code={{{icr_code|{{{iso_code|}}}}}}|list=L1}}|(numeric:&#x20;{{ISO 4217/code-to-number|iso-code={{{icr_code|{{{iso_code|}}}}}}|format=mono}})}}}} <!-- intentional space
-->{{if both|{{{iso_code|}}}|{{{iso_comment|}}}|<br />}}{{{iso_comment|}}}
-->{{if both|{{{icr_code|{{{iso_code|}}}}}}|{{{icr_comment|{{{iso_comment|}}}}}}|<br />}}{{{icr_comment|{{{iso_comment|}}}}}}
}}{{{iso_ref|}}}
}}{{{icr_ref|{{{iso_ref|}}}}}}


| label4 = [[ISO 4217#Minor unit decimals|Subunit]]
| label4 = [[ICR 200|Subunit]]
|  data4 = {{ISO 4217/code-minor-unit|iso-code={{{iso_code|}}}|is-obsolete={{yesno|{{{obsolete|}}}}}}}
|  data4 = {{ISO 4217/code-minor-unit|iso-code={{{icr_code|{{{iso_code|}}}}}}|is-obsolete={{yesno|{{{obsolete|}}}}}}}


|header5 = {{#if:{{{unit|}}}{{{plural|}}}{{{symbol|}}}{{{nickname|}}}|Unit}}
|header5 = {{#if:{{{unit|}}}{{{plural|}}}{{{symbol|}}}{{{nickname|}}}|Unit}}
Line 75: Line 76:
   }}
   }}


| label8 = [[Currency symbol|Symbol]]
| label8 = Symbol
|  data8 = {{#if:{{{symbol|}}}|{{big|1={{{symbol|}}}}}&lrm;}} {{{symbol_comment|}}}
|  data8 = {{#if:{{{symbol|}}}|{{big|1={{{symbol|}}}}}&lrm;}} {{{symbol_comment|}}}


Line 294: Line 295:
<!-- BANKNOTES AND COINS -->|used_banknotes |used_coins |banknote_article |coin_article |frequently_used_banknotes |frequently_used_coins |rarely_used_banknotes |rarely_used_coins
<!-- BANKNOTES AND COINS -->|used_banknotes |used_coins |banknote_article |coin_article |frequently_used_banknotes |frequently_used_coins |rarely_used_banknotes |rarely_used_coins
<!-- HISTORICAL -->|obsolete |obsolete_notice |date_of_introduction |date_of_introduction_source |date_of_withdrawal |date_of_withdrawal_source |replaced_by_currency |replaced_currency
<!-- HISTORICAL -->|obsolete |obsolete_notice |date_of_introduction |date_of_introduction_source |date_of_withdrawal |date_of_withdrawal_source |replaced_by_currency |replaced_currency
<!-- ISO -->|iso_code |iso_comment |iso_ref
<!-- ICR -->|icr_code |icr_numeric_code |icr_minor_unit |icr_status |icr_comment |icr_ref |iso_code |iso_comment |iso_ref
<!-- UNIT -->|unit |plural |plural_slavic |no_plural |symbol |symbol_comment |nickname
<!-- UNIT -->|unit |plural |plural_slavic |no_plural |symbol |symbol_comment |nickname
<!-- SUBUNIT -->|nickname_subunit_1 |nickname_subunit_2 |nickname_subunit_3 |nickname_subunit_4 |nickname_subunit_5 |plural_subunit_1 |plural_subunit_2 |plural_subunit_3 |plural_subunit_4 |plural_subunit_5 |subunit_inline_note_1 |subunit_inline_note_2 |subunit_inline_note_3 |subunit_inline_note_4 |subunit_inline_note_5 |subunit_name_1 |subunit_name_2 |subunit_name_3 |subunit_name_4 |subunit_name_5 |subunit_ratio_1 |subunit_ratio_2 |subunit_ratio_3 |subunit_ratio_4 |subunit_ratio_5 |symbol_subunit_1 |symbol_subunit_2 |symbol_subunit_3 |symbol_subunit_4 |symbol_subunit_5
<!-- SUBUNIT -->|nickname_subunit_1 |nickname_subunit_2 |nickname_subunit_3 |nickname_subunit_4 |nickname_subunit_5 |plural_subunit_1 |plural_subunit_2 |plural_subunit_3 |plural_subunit_4 |plural_subunit_5 |subunit_inline_note_1 |subunit_inline_note_2 |subunit_inline_note_3 |subunit_inline_note_4 |subunit_inline_note_5 |subunit_name_1 |subunit_name_2 |subunit_name_3 |subunit_name_4 |subunit_name_5 |subunit_ratio_1 |subunit_ratio_2 |subunit_ratio_3 |subunit_ratio_4 |subunit_ratio_5 |symbol_subunit_1 |symbol_subunit_2 |symbol_subunit_3 |symbol_subunit_4 |symbol_subunit_5
Line 304: Line 305:
}}<!--
}}<!--


  CAT by iso-code. "None"=explicitly categorise as Without ISO code
  CAT by iso-code. "None"=explicitly categorise as Without ICR code
-->{{#if:{{ISO 4217/code-none|iso-code={{{iso_code|}}}}}|{{main other|1=[[Category:Currencies without ISO 4217 code]]|2={{template other|1=[[:Category:Currencies without ISO 4217 code|cat:Without ISO code]]}}}}}}<!--
-->{{#if:{{ISO 4217/code-none|iso-code={{{icr_code|{{{iso_code|}}}}}}}}|{{main other|1=[[Category:Currencies without ICR 200 code]]|2={{template other|1=[[:Category:Currencies without ICR 200 code|cat:Without ICR code]]}}}}}}<!--
-->{{#if:{{ISO 4217/code|iso-code={{{iso_code|}}}}}|{{main other|1=[[Category:Currencies with ISO 4217 code]]|2={{template other|1=[[:Category:Currencies with ISO 4217 code|cat:With ISO code]]}}}}}}<!--
-->{{#if:{{ISO 4217/code|iso-code={{{icr_code|{{{iso_code|}}}}}}}}|{{main other|1=[[Category:Currencies with ICR 200 code]]|2={{template other|1=[[:Category:Currencies with ICR 200 code|cat:With ICR code]]}}}}}}<!--


  bare url, categorise (3x check)
  bare url, categorise (3x check)

Latest revision as of 07:51, 4 July 2026

Infobox currency
  1. World Bank Style Guide pp134–139)
  2. ISO 4217 Standard definition:
    • "Data Standards, ISO 4217 - Currency Code Maintenance: Get the Correct Currency Code". www.six-group.com. SIX Group. 2022-10-01.