Template:Euro convergence criteria row: Difference between revisions
Danlaycock (talk | contribs) more explanation |
Danlaycock (talk | contribs) fix for ERM members |
||
Line 8: | Line 8: | ||
| style="background:{{#if:{{{DEB|}}}|{{#ifexpr:{{{DEB|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|DEB}}|lightgreen|{{#ifeq: {{{BDDC|}}}|Y|{{#ifeq: {{{FDDC|}}}|Y|yellow|{{#ifeq: {{{FDDCE|}}}|Y|yellow|<nowiki>#</nowiki>ff7f7f}} }}|{{#ifeq: {{{BDDCE|}}}|Y|{{#ifeq: {{{FDDC|}}}|Y|yellow|{{#ifeq: {{{FDDCE|}}}|Y|yellow|<nowiki>#</nowiki>ff7f7f}} }}|<nowiki>#</nowiki>ff7f7f}} }} }}|gray}}" | {{{DEB|?}}}%{{#if:{{{DEB|}}}|{{#ifexpr:{{{DEB|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|DEB}}||{{#ifeq: {{{BDDC|}}}|Y|{{#ifeq: {{{FDDC|}}}|Y|<small> (exempt)</small>|{{#ifeq: {{{FDDCE|}}}|Y|<small> (exempt)</small>|}} }}|{{#ifeq: {{{BDDCE|}}}|Y|{{#ifeq: {{{FDDC|}}}|Y|<small> (exempt)</small>|{{#ifeq: {{{FDDCE|}}}|Y|<small> (exempt)</small>|}} }}|}} }} }}| }}{{{DEBN|}}} |
| style="background:{{#if:{{{DEB|}}}|{{#ifexpr:{{{DEB|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|DEB}}|lightgreen|{{#ifeq: {{{BDDC|}}}|Y|{{#ifeq: {{{FDDC|}}}|Y|yellow|{{#ifeq: {{{FDDCE|}}}|Y|yellow|<nowiki>#</nowiki>ff7f7f}} }}|{{#ifeq: {{{BDDCE|}}}|Y|{{#ifeq: {{{FDDC|}}}|Y|yellow|{{#ifeq: {{{FDDCE|}}}|Y|yellow|<nowiki>#</nowiki>ff7f7f}} }}|<nowiki>#</nowiki>ff7f7f}} }} }}|gray}}" | {{{DEB|?}}}%{{#if:{{{DEB|}}}|{{#ifexpr:{{{DEB|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|DEB}}||{{#ifeq: {{{BDDC|}}}|Y|{{#ifeq: {{{FDDC|}}}|Y|<small> (exempt)</small>|{{#ifeq: {{{FDDCE|}}}|Y|<small> (exempt)</small>|}} }}|{{#ifeq: {{{BDDCE|}}}|Y|{{#ifeq: {{{FDDC|}}}|Y|<small> (exempt)</small>|{{#ifeq: {{{FDDCE|}}}|Y|<small> (exempt)</small>|}} }}|}} }} }}| }}{{{DEBN|}}} |
||
| style="background:{{#if:{{{FDDC|}}}|{{#ifeq:{{{FDDC|}}}|Y|lightgreen|{{#ifeq:{{{FDDCE|}}}|Y|yellow|{{#ifeq:{{{FDDC|}}}|N|<nowiki>#</nowiki>ff7f7f}} }} }}|gray}}" | {{#ifeq: {{{FDDC|}}}|Y|Yes|{{#ifeq: {{{FDDC|}}}|N|No|?}} }}{{#ifeq: {{{FDDCE|}}}|Y|<small> (exempt)</small>}}{{{FDDCN|}}} |
| style="background:{{#if:{{{FDDC|}}}|{{#ifeq:{{{FDDC|}}}|Y|lightgreen|{{#ifeq:{{{FDDCE|}}}|Y|yellow|{{#ifeq:{{{FDDC|}}}|N|<nowiki>#</nowiki>ff7f7f}} }} }}|gray}}" | {{#ifeq: {{{FDDC|}}}|Y|Yes|{{#ifeq: {{{FDDC|}}}|N|No|?}} }}{{#ifeq: {{{FDDCE|}}}|Y|<small> (exempt)</small>}}{{{FDDCN|}}} |
||
| style="background:{{#if:{{{ERM|}}}|{{#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|}}}|{{#ifeq: {{{ERM|}}}|N|No |{{dts|format=dmy|{{{ERMY|}}}|{{{ERMM|}}}|{{{ERMD|}}} }} }}|?}}{{{ERMN|}}} |
| 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 |{{dts|format=dmy|{{{ERMY|}}}|{{{ERMM|}}}|{{{ERMD|}}} }} }}|?}}{{{ERMN|}}} |
||
| style="background:{{#if:{{{INT|}}}|{{#ifexpr:{{{INT|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|INT}}|lightgreen|<nowiki>#</nowiki>ff7f7f}}|gray}}" | {{{INT|?}}}%{{sp}}{{{INTN|}}}<noinclude> |
| style="background:{{#if:{{{INT|}}}|{{#ifexpr:{{{INT|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|INT}}|lightgreen|<nowiki>#</nowiki>ff7f7f}}|gray}}" | {{{INT|?}}}%{{sp}}{{{INTN|}}}<noinclude> |
||
{{documentation| content= |
{{documentation| content= |
Revision as of 15:30, 5 July 2014
|- style="text-align:center" | style="text-align:left" | [[|]] | style="background:gray" | ?% | style="background:gray" | ?% | style="background:gray" | ?% | style="background:gray" | ?% | style="background:gray" | ? | style="background:gray" | ?% | style="background:gray" | ? | 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{{flagcountry|ISO}}
template for country "ISO"HICP
- Harmonised Index of Consumer PricesDEF1
- Government budget deficit to Gross domestic product in the preceding yearDEF2
- Government budget deficit to Gross domestic product in the reference yearDEF3
- Government budget deficit to Gross domestic product in the following yearDEF1E
- Y if exempt from a breech of Government budget deficit to Gross domestic product in the preceding yearDEF2E
- Y if exempt from a breech of Government budget deficit to Gross domestic product in the reference yearDEF3E
- Y if exempt from a breech of Government budget deficit to Gross domestic product in the following yearDEB
- debt-to-GDP ratioBDDC
- Y if backwards declining debt compliant, NA if not applicable (ie if DEB<60%)FDDC
- Y if forwards declining debt compliantBDDCE
- Y if exempt from a breech of backwards declining debt complianceFDDCE
- Y if exempt from a breech of forwards declining debt complianceERM
- 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 membershipINT
- long-term interest rate.NOTE
- Adds a note after the country name (useful for things like {{kosovo-note}})HICPN
- Adds a note after the HICPDEF1N
- Adds a note after the budget deficit to GDP in the preceding yearDEF2N
- Adds a note after the budget deficit to GDP in the current yearDEF3N
- Adds a note after the budget deficit to GDP in the following yearDEBN
- Adds a note after the debt to GDPBDDCN
- Adds a note after the backwards declining debt complianceFDDCN
- Adds a note after the forwards declining debt complianceERMN
- Adds a note after the number of years as a member of the ERM IIINTN
- 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.