Difference between revisions of "Template:Certification Table Entry/Sales/SpanishPeriod/sandbox"
Jump to navigation
Jump to search
imported>Muhandes (Create sandbox version of Template:Certification Table Entry/Sales/SpanishPeriod) |
imported>Muhandes (correct) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{year|}}} | <includeonly>{{#if:{{{year|}}} | ||
| − | |{{#ifexpr: {{{year}}} < 2005 | + | |{{#ifexpr: {{{year}}} < 2005 <!-- until 2004 --> |
|1 | |1 | ||
| − | |{{#ifexpr: {{{year}}} < 2006 | + | |{{#ifexpr: {{{year}}} < 2006 <!-- 2005 --> |
|{{#if:{{{month|}}} | |{{#if:{{{month|}}} | ||
|{{#ifexpr: {{{month}}} < 11 |1|2}} | |{{#ifexpr: {{{month}}} < 11 |1|2}} | ||
|0}} | |0}} | ||
| − | |{{#ifexpr: {{{year}}} < | + | |{{#ifexpr: {{{year}}} < 2007 <!-- 2006 --> |
|2 | |2 | ||
| − | |{{#ifexpr: {{{year}}} < | + | |{{#ifexpr: {{{year}}} < 2008 <!-- 2007 --> |
| − | | 3 | + | |{{#if:{{{month|}}} |
| − | |{{#ifexpr: {{{year}}} < | + | |{{#ifexpr: {{{month}}} < 4 |2|3}} |
| − | |{{#if:{{{month|}}} | + | |0}} |
| − | + | |{{#ifexpr: {{{year}}} < 2009 <!-- 2008 --> | |
| − | |0}} | + | |3 |
| − | + | |{{#ifexpr: {{{year}}} < 2010 <!-- 2009 --> | |
| + | |{{#if:{{{month|}}} | ||
| + | |{{#ifexpr: {{{month}}} < 9 | ||
| + | |3 | ||
| + | |{{#ifexpr: {{{month}}} < 10 | ||
| + | |{{#if:{{{day|}}} | ||
| + | |{{#ifexpr: {{{day}}} < 6 |3|4}} | ||
| + | |0}} | ||
| + | |4}} | ||
| + | }} | ||
| + | |0}} | ||
| + | |{{#ifexpr: {{{year}}} < 2011 <!-- 2010 --> | ||
| + | |4 | ||
| + | |{{#ifexpr: {{{year}}} < 2012 <!-- 2011 --> | ||
| + | |{{#if:{{{month|}}} | ||
| + | |{{#ifexpr: {{{month}}} < 11 |4|5}} | ||
| + | |0}} | ||
| + | |5 | ||
| + | }} | ||
| + | }} | ||
| + | }} | ||
| + | }} | ||
| + | }} | ||
| + | }} | ||
| + | }} | ||
| + | }} | ||
|0}} | |0}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 15:14, 17 December 2018
| 50px | This is the template sandbox page for Template:Certification Table Entry/Sales/SpanishPeriod (diff). See also the companion subpage for test cases. |
This helper template calculates periods for Spanish certifications, as stated in Productores de Música de España#Certifications
It returns:
| Before November 2005 | Before 2009 | Before November 2011 | From November 2011 |
|---|---|---|---|
| 1 | 2 | 3 | 4 |
Returns 0 if the data provided is not sufficient.
| The above documentation is transcluded from Template:Certification Table Entry/Sales/SpanishPeriod/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. |