Difference between revisions of "Template:Certification Table Entry/Sales/SpanishSinglesPeriod"
Jump to navigation
Jump to search
imported>Muhandes m (Muhandes moved page Template:Certification Table Entry/Sales/SpanishPeriodSingles to Template:Certification Table Entry/Sales/SpanishSinglesPeriod: better name for it) |
imported>Muhandes (correct) |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{year|}}} | <includeonly>{{#if:{{{year|}}} | ||
− | |{{#ifexpr: {{{year}}} < | + | |{{#ifexpr: {{{year}}} < 2005 <!-- until 2004 --> |
|1 | |1 | ||
− | + | |{{#ifexpr: {{{year}}} < 2006 <!-- 2005 --> | |
− | + | |{{#if:{{{month|}}} | |
− | + | |{{#ifexpr: {{{month}}} < 11 |1|2}} | |
− | + | |0}} | |
− | + | |{{#ifexpr: {{{year}}} < 2007 <!-- 2006 --> | |
− | + | |2 | |
− | + | |{{#ifexpr: {{{year}}} < 2008 <!-- 2007 --> | |
− | + | |{{#if:{{{month|}}} | |
− | + | |{{#ifexpr: {{{month}}} < 4 |2|3}} | |
− | + | |0}} | |
− | + | |{{#ifexpr: {{{year}}} < 2009 <!-- 2008 --> | |
− | + | |3 | |
− | + | |4 <!-- Since 2009 --> | |
− | |||
− | |||
− | |||
}} | }} | ||
}} | }} | ||
}} | }} | ||
}} | }} | ||
+ | }} | ||
|0}} | |0}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 13:56, 20 December 2018
This helper template calculates periods for Spanish singles certifications, as stated in Productores de Música de España#Certifications
It returns:
Before November 2005 | Before April 2007 | Before 2009 | From 2009 |
---|---|---|---|
1 | 2 | 3 | 4 |
Returns 0 if the data provided is not sufficient.
The above documentation is transcluded from Template:Certification Table Entry/Sales/SpanishSinglesPeriod/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. |