Template:Euro convergence criteria row: Difference between revisions
Danlaycock (talk | contribs) extra param |
mNo edit summary |
||
(19 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
|- style="text-align:center" |
|- style="text-align:center;" |
||
| style="text-align:left" | '''{{ |
| style="text-align:left;" rowspan="2"| '''{{flag icon| {{{1|}}} }} [[{{country name| {{{1|}}} }} and the euro|{{country name| {{{1|}}} }}]]'''{{{NOTE|}}} |
||
| style="background:{{#if:{{{HICP|}}}|{{#ifexpr:{{{HICP|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|HICP}}|lightgreen|<nowiki>#</nowiki>ff7f7f}}|gray}}" | {{{HICP|?}}}%{{{HICPN|}}} |
| style="background:{{#if:{{{HICP|}}}|{{#ifexpr:{{{HICP|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|HICP}}|lightgreen|<nowiki>#</nowiki>ff7f7f}}|gray}};" rowspan="2"| {{{HICP|?}}}%{{{HICPN|}}} |
||
| |
| colspan="2" {{#ifeq:{{{EDP|}}}|NA|{{n/a}}|style="background:{{#ifeq:{{{EDPA|}}}|Y|yellow|{{#switch:{{{EDP|}}}|Y=<nowiki>#</nowiki>ff7f7f|N=lightgreen|gray}}}}" {{!}} {{#switch:{{{EDP|}}}|Y=Open|N=None|?}}}}{{{EDPN|}}} |
||
⚫ | | style="background:{{#if:{{{ERM|}}}{{{ERMY|}}}|{{#ifeq: {{{ERM|}}}|N|<nowiki>#</nowiki>ff7f7f |{{#ifexpr:{{age|{{{ERMY|}}}|{{{ERMM|}}}|{{{ERMD|}}}|{{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|YC}}|{{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|MC}}|{{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|DC}} }}>={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|ERM}}|lightgreen|<nowiki>#</nowiki>ff7f7f}} }}|gray}};" rowspan="2"| {{#if:{{{ERM|}}}{{{ERMY|}}}|{{#ifeq: {{{ERM|}}}|N|No |{{Age in years and months|{{{ERMY|}}}|{{{ERMM|}}}|{{{ERMD|}}}|{{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|YC}}|{{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|MC}}|{{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|DC}} }} }}|?}}{{{ERMN|}}} |
||
⚫ | | rowspan=2 {{#if:{{{EXCR|}}}|{{#ifeq:{{{EXCR|}}}|NA|{{n/a}}|style="background:{{#ifexpr:{{{EXCR|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|EXCR}} and {{{EXCR|}}}>=-{{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|EXCR}}|lightgreen|<nowiki>#</nowiki>ff7f7f}};" {{!}} {{{EXCR|}}}%}}|{{unknown}}}}{{{EXCRN|}}} |
||
⚫ | |||
| rowspan="2" {{#ifexpr:{{#switch:{{{LEG|}}}|Y=1|N=1|0}}|style="background:{{#switch:{{{LEG|}}}|Y=lightgreen|N=<nowiki>#</nowiki>ff7f7f }};" {{!}} {{#switch:{{{LEG|}}}|Y=Yes|N=No}}|{{#switch:{{{LEG|}}}|NA={{n/a}}|{{unknown}}}}}}{{{LEGN|}}} |
|||
|- style="text-align:center;" |
|||
| style="background:{{#if:{{{DEF|}}}|{{#ifexpr:{{{DEF|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|DEF}}|lightgreen|{{#ifeq:{{{DEFE|}}}|Y|yellow|<nowiki>#</nowiki>ff7f7f}} }}|gray}}" | {{{DEF|?}}}%{{#ifexpr: {{{DEF|0}}}<0.0|<small> (surplus)</small>}}{{#ifeq: {{{DEFE|}}}|Y|<small> (exempt)</small>}}{{{DEFN|}}} |
| style="background:{{#if:{{{DEF|}}}|{{#ifexpr:{{{DEF|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|DEF}}|lightgreen|{{#ifeq:{{{DEFE|}}}|Y|yellow|<nowiki>#</nowiki>ff7f7f}} }}|gray}}" | {{{DEF|?}}}%{{#ifexpr: {{{DEF|0}}}<0.0|<small> (surplus)</small>}}{{#ifeq: {{{DEFE|}}}|Y|<small> (exempt)</small>}}{{{DEFN|}}} |
||
| style="background:{{#if:{{{DEB|}}}|{{#ifexpr:{{{DEB|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|DEB}}|lightgreen|<nowiki>#</nowiki>ff7f7f}}|gray}}" | {{{DEB|?}}}%{{{DEBN|}}} |
| style="background:{{#if:{{{DEB|}}}|{{#ifexpr:{{{DEB|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|DEB}}|lightgreen|{{#ifeq:{{{DEBE|}}}|Y|yellow|<nowiki>#</nowiki>ff7f7f}} }}|gray}}" | {{{DEB|?}}}%{{#ifeq: {{{DEBE|}}}|Y|<small> (exempt)</small>}}{{{DEBN|}}}<noinclude> |
||
⚫ | | style="background:{{#if:{{{ERM|}}}{{{ERMY|}}}|{{#ifeq: {{{ERM|}}}|N|<nowiki>#</nowiki>ff7f7f |{{#ifexpr:{{age|{{{ERMY|}}}|{{{ERMM|}}}|{{{ERMD|}}}|{{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|YC}}|{{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|MC}}|{{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|DC}} }}>={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|ERM}}|lightgreen|<nowiki>#</nowiki>ff7f7f}} }}|gray}}" | {{#if:{{{ERM|}}}{{{ERMY|}}}|{{#ifeq: {{{ERM|}}}|N|No |{{ |
||
⚫ | | |
||
⚫ | |||
{{documentation| content= |
{{documentation| content= |
||
This template is used by {{tl|Euro convergence criteria}} (and associated historical templates) to display a row of convergence values for a specific country. |
This template is used by {{tl|Euro convergence criteria}} (and associated historical templates) to display a row of convergence values for a specific country. |
||
Line 13: | Line 15: | ||
==Usage== |
==Usage== |
||
The template accepts one unnamed argument and 16 named arguments: |
The template accepts one unnamed argument and 16 named arguments: |
||
* <code>1=ISO</code> - This outputs the {{tlx| |
* <code>1=ISO</code> - This outputs the {{tlx|flag country|ISO}} template for country "ISO" |
||
* <code>HICP</code> - [[Harmonised Index of Consumer Prices]] |
* <code>HICP</code> - [[Harmonised Index of Consumer Prices]] |
||
* <code>EDP</code> - Y if an excessive deficit procedure is open for the state, N non is open, NA if not applicable |
* <code>EDP</code> - Y if an excessive deficit procedure is open for the state, N non is open, NA if not applicable |
||
Line 20: | Line 22: | ||
* <code>DEFE</code> - Y if exempt from a breach of [[Government budget deficit]] to [[Gross domestic product]] in the reference year |
* <code>DEFE</code> - Y if exempt from a breach of [[Government budget deficit]] to [[Gross domestic product]] in the reference year |
||
* <code>DEB</code> - [[debt-to-GDP ratio]] |
* <code>DEB</code> - [[debt-to-GDP ratio]] |
||
* <code>DEBE</code> - Y if exempt from a breach of [[debt-to-GDP ratio]] |
|||
* <code>ERM</code> - N if not yet a member |
* <code>ERM</code> - N if not yet a member |
||
* <code>ERMY</code> - year of [[European Exchange Rate Mechanism]] II membership |
* <code>ERMY</code> - year of [[European Exchange Rate Mechanism]] II membership |
||
Line 39: | Line 42: | ||
}} |
}} |
||
[[Category: |
[[Category:European Union economic templates]] |
||
</noinclude> |
</noinclude> |
Latest revision as of 13:39, 30 July 2024
|- style="text-align:center;" | style="text-align:left;" rowspan="2"| [[and the euro|]] | style="background:gray;" rowspan="2"| ?% | colspan="2" style="background:gray" | ? | style="background:gray;" rowspan="2"| ? | rowspan=2 style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center; " class="table-Unknown" | Unknown | rowspan="2" style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center; " class="table-Unknown" | Unknown | rowspan="2" style="background: var(--background-color-interactive, #EEE); color: var(--color-base, black); vertical-align: middle; white-space: nowrap; text-align: center; " class="table-Unknown" | Unknown |- style="text-align:center;" | style="background:gray" | ?% | style="background:gray" | ?%
This template is used by {{Euro convergence criteria}} (and associated historical templates) to display a row of convergence values for a specific country.
Usage
The template accepts one unnamed argument and 16 named arguments:
1=ISO
- This outputs the{{flag country|ISO}}
template for country "ISO"HICP
- Harmonised Index of Consumer PricesEDP
- Y if an excessive deficit procedure is open for the state, N non is open, NA if not applicableEDPA
- Y if Council subsequently decides to abrogate the excessive deficit procedure later that yearDEF
- Government budget deficit to Gross domestic product in the reference yearDEFE
- Y if exempt from a breach of Government budget deficit to Gross domestic product in the reference yearDEB
- debt-to-GDP ratioDEBE
- Y if exempt from a breach of debt-to-GDP ratioERM
- N if not yet a memberERMY
- year of European Exchange Rate Mechanism II membershipERMM
- month of European Exchange Rate Mechanism II membershipERMD
- day of European Exchange Rate Mechanism II membershipEXCR
- annual change in the average exchange rate with the euro, NA if not applicableINT
- long-term interest rate.NOTE
- Adds a note after the country name (useful for things like {{kosovo-note}})HICPN
- Adds a note after the HICPDEFN
- Adds a note after the budget deficit to GDP in the current yearEDPN
- Adds a note after the excessive deficit procedureDEBN
- Adds a note after the debt to GDPERMN
- Adds a note after the number of years as a member of the ERM IIEXCRN
- Adds a note after the exchange rateINTN
- Adds a note after the long-term interest rateY
- This is the year that the convergence evaluation was performed, and is used for disambiguation of the historic version of {{Euro convergence criteria}} (ie {{Euro convergence criteria (2012)}}). It must equal the year of the tables (ie the part of the file name in brackets) or 2012 in this example.
The template uses the reference values saved in {{ECC (Y)/REF}} (where Y is the option year disambiguator for historical tables) to compare the inputed values against the criteria and colour the cells accordingly.