Difference between revisions of "EuroCheck"

From Sega Retro

 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine:region|{{{1}}}}}{{#switch: {{#var:region}}
+
<includeonly>{{#vardefine:region|{{{1}}}}}{{#switch: {{#var:region}}
 
|AT
 
|AT
 
|BE
 
|BE
Line 13: Line 13:
 
|PT={{#ifexpr:{{#sub:{{{2}}}|0|4}}>=2002|EU|{{#var:region}}}}
 
|PT={{#ifexpr:{{#sub:{{{2}}}|0|4}}>=2002|EU|{{#var:region}}}}
 
|{{#var:region}}
 
|{{#var:region}}
}}<noinclude>[[Category:Sega Retro templates]]
+
}}</includeonly><noinclude>Currency changer template for the adoption of the Euro. While it technically came into existence in 1999, coins weren't widely available until 2002. There was a two or three month overlap period where both the old and new currencies were legal tender - we'll just assume that anything after 2002-01-01 should be listed in Euros.
 
*UK, 1992 -> {{EuroCheck|UK|1992}}
 
*UK, 1992 -> {{EuroCheck|UK|1992}}
 
*UK, 2002 -> {{EuroCheck|UK|2002}}
 
*UK, 2002 -> {{EuroCheck|UK|2002}}
Line 20: Line 20:
 
*FR, 2002 -> {{EuroCheck|FR|2002}}
 
*FR, 2002 -> {{EuroCheck|FR|2002}}
 
*FR, 2012 -> {{EuroCheck|FR|2012}}
 
*FR, 2012 -> {{EuroCheck|FR|2012}}
</noinclude>
+
==Usage==
 +
<pre>{{EuroCheck|REGION|DATE}}
 +
 
 +
{{currency|{{EuroCheck|REGION|DATE}}|PRICE}}
 +
</pre>
 +
[[Category:Templates]]</noinclude>

Latest revision as of 13:08, 1 January 2022

Currency changer template for the adoption of the Euro. While it technically came into existence in 1999, coins weren't widely available until 2002. There was a two or three month overlap period where both the old and new currencies were legal tender - we'll just assume that anything after 2002-01-01 should be listed in Euros.

  • UK, 1992 -> UK
  • UK, 2002 -> UK
  • UK, 2012 -> UK
  • FR, 1992 -> FR
  • FR, 2002 -> EU
  • FR, 2012 -> EU

Usage

{{EuroCheck|REGION|DATE}}

{{currency|{{EuroCheck|REGION|DATE}}|PRICE}}