Template:Euro convergence criteria row: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
|- align="center" |
|- align="center" |
||
| style="text-align:left"|'''{{ {{{1|}}} }}'''{{{NOTE|}}} |
| style="text-align:left" | '''{{ {{{1|}}} }}'''{{{NOTE|}}} |
||
{{!}}bgcolor={{#ifexpr:{{{HICP|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|HICP}}|lightgreen|"#ff7f7f"}} {{!}} {{{HICP|}}}%{{{HICPN|}}} |
|||
{{!}}bgcolor={{#ifexpr:{{{DEF|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|DEF}}|lightgreen|{{#ifexpr:{{{DEF|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|DEFP}}|yellow|"#ff7f7f"}} }} {{!}} {{{DEF|}}}%{{#ifexpr: {{{DEF|}}}<0.0|<small> (surplus)</small>}}{{{DEFN|}}} |
|||
{{!}}bgcolor={{#ifexpr:{{{DEB|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|DEB}}|lightgreen|{{#ifeq: {{{DEBC|}}}|D|lightgreen|"#ff7f7f"}} }} {{!}} {{{DEB|}}}%{{#switch: {{{DEBC|}}} | D = <small> (decreasing)</small>| I = <small> (increasing)</small>}}{{{DEBN|}}} |
|||
{{!}}bgcolor={{#ifeq: {{{ERM|}}}|NO|"#ff7f7f" {{!}} No | {{#ifexpr:{{age|{{{ERMY|}}}|{{{ERMM|}}}|{{{ERMD|}}}}}>={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|ERM}}|lightgreen|"#ff7f7f"}} {{!}} {{dts|format=dmy|{{{ERMY|}}}|{{{ERMM|}}}|{{{ERMD|}}} }} }}{{{ERMN|}}} |
|||
{{!}}{{#ifeq: {{{INT|}}}|NA|No data|bgcolor={{#ifexpr:{{{INT|}}}<={{ECC{{#if:{{{Y|}}}|{{sp}}({{{Y}}})}}/REF|INT}}|lightgreen|"#ff7f7f"}} {{!}} {{{INT|}}}%{{sp}}{{{INTN|}}} }}<noinclude> |
|||
{{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. |
Revision as of 22:19, 21 February 2013
|- align="center" | style="text-align:left" | {{ }} |bgcolor=Expression error: Unexpected <= operator | % |bgcolor=Expression error: Unexpected <= operator | %Expression error: Unexpected < operator |bgcolor=Expression error: Unexpected <= operator | % |bgcolor=Expression error: Unexpected < operator | |bgcolor=Expression error: Unexpected <= operator | %
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}} template for country "ISO"HICP
- Harmonised Index of Consumer PricesDEF
- Government budget deficit to Gross domestic productDEB
- debt-to-GDP ratioERM
- NO if not yet a memberERMY
- years 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. NA results in "No data".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 GDPDEBN
- Adds a note after the debt to GDPERMN
- Adds a note after the number of years as a member of the ERM IIINTN
- Adds a note after the long-term interest rateDEBC
- If this is set to I, then "(increasing)" is added after the debt, while D leads to "(decreasing)" after the debt. This is important if the debt is over 60%, as if the debt is decreasing the convergence criteria is still met.Y
- This is used for 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.