Difference between revisions of "Template:Certification Table Entry/Sales/DanishPeriodHelper2"
Jump to navigation
Jump to search
imported>Primefac m (Protected "Template:Certification Table Entry/Sales/DanishPeriodHelper2": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Requi...) |
imported>Muhandes (correcting Denmark certification levels (see Template talk:Certification Table Entry)) |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{year|}}} | <includeonly>{{#if:{{{year|}}} | ||
| − | |{{#ifexpr: {{{year}}} < | + | |{{#ifexpr: {{{year}}} < 1994 |
|1 | |1 | ||
| − | |{{#ifexpr: {{{year}}} < | + | |{{#ifexpr: {{{year}}} < 2003 <!-- year is 1994-2002--> |
| − | + | |2 | |
| − | + | |{{#ifexpr: {{{year}}} < 2004 <!-- year is 2003--> | |
| − | + | |{{#if:{{{month|}}} | |
| − | |{{#ifexpr: {{{year}}} < | + | |{{#ifexpr: {{{month}}} < 4 |2|3}} |
| − | + | |0}} | |
| − | + | |{{#ifexpr: {{{year}}} < 2007 <!-- year is 2004-2006--> | |
| − | + | |3 | |
| − | + | |{{#ifexpr: {{{year}}} < 2008 <!-- year is 2007--> | |
| − | + | |{{#if:{{{month|}}} | |
| − | + | |{{#ifexpr: {{{month}}} < 2 |3|4}} | |
| − | + | |0}} | |
| − | + | |{{#ifexpr: {{{year}}} < 2009 <!-- year is 2008--> | |
| − | + | |4 | |
| − | + | |{{#ifexpr: {{{year}}} < 2010 <!-- year is 2009--> | |
| − | |||
| − | |{{#ifexpr: {{{year}}} < | ||
|{{#if:{{{month|}}} | |{{#if:{{{month|}}} | ||
| − | |{{#ifexpr: {{{month | + | |{{#ifexpr: {{{month}}} < 4 |4|5}} |
| − | |||
| − | |||
| − | |||
| − | |||
|0}} | |0}} | ||
| − | |{{#ifexpr: {{{year}}} < | + | |{{#ifexpr: {{{year}}} < 2011 <!-- year is 2010--> |
|5 | |5 | ||
| − | |{{#ifexpr: {{{year}}} < | + | |{{#ifexpr: {{{year}}} < 2012 <!-- year is 2011--> |
|{{#if:{{{month|}}} | |{{#if:{{{month|}}} | ||
| − | |{{#ifexpr: {{{month}}} | + | |{{#ifexpr: {{{month}}} > 1 |
| − | |5 | + | |6 |
| − | |{{#ifexpr: {{{month}}} < 12 | + | |{{#if:{{{day|}}} |
| − | + | |{{#ifexpr: {{{day}}} < 7 |5|6}} | |
| − | + | |0}}}} | |
| − | + | |0}} | |
| − | + | |{{#ifexpr: {{{year}}} < 2014 <!-- year is 2012-2013--> | |
| − | + | |6 | |
| − | + | |{{#ifexpr: {{{year}}} < 2015 <!-- year is 2014--> | |
| − | + | |{{#if:{{{month|}}} | |
| − | + | |{{#ifexpr: {{{month}}} < 11 | |
| − | + | |6 | |
| − | + | |{{#ifexpr: {{{month}}} < 12 | |
| − | + | |{{#if:{{{day|}}} | |
| − | + | |{{#ifexpr: {{{day}}} <17 |6|7}} | |
| − | + | |0}} | |
| − | + | |7}}}} | |
| − | + | |0}} | |
| − | + | |{{#ifexpr: {{{year}}} < 2016 <!-- year is 2015--> | |
| − | + | |7 | |
| − | + | |{{#ifexpr: {{{year}}} < 2017 <!-- year is 2016--> | |
| − | + | |{{#if:{{{month|}}} | |
| − | + | |{{#ifexpr: {{{month}}} < 4 |7|8}} | |
| − | + | |0}} | |
| − | + | |8 <!-- year is 2017 and onward --> | |
| − | + | }} | |
| − | + | }} | |
| − | + | }} | |
| − | |0 | + | }} |
| − | }} | + | }} |
| + | }} | ||
| + | }} | ||
| + | }} | ||
| + | }} | ||
| + | }} | ||
| + | }} | ||
| + | }} | ||
| + | }} | ||
| + | |0}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 00:35, 2 December 2018
This is a helper template for {{Certification Table Entry/Sales/DanishPeriod}}, see its documentation.
Variables
year– year of certification/releasemonth– month of certification/releaseday– month of certification/release
Return values
Based on these sources:
- [1] - Album level changed in 1994
- [2] - levels changed in April 2003
- [3] - new levels for albums and singles in February 2007
- [4] new levels for singles changed in April 2009
- [5] - new albums levels change in 7 January 2011
- [6] - new single levels from 17 November 2014
- [7] - new single levels from 1 April 2016
It returns:
| Before 1994 | Before April 2003 | Before February 2007 | Before April 2009 | Before 7 January 2011 | Before 17 November 2014 | Before 1 April 2016 | From 1 April 2016 |
|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
Returns 0 if the data provided is not sufficient.
| The above documentation is transcluded from Template:Certification Table Entry/Sales/DanishPeriodHelper2/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |