Difference between revisions of "Template:Certification Table Entry/Sales/SpanishPeriod"
Jump to navigation
Jump to search
imported>Muhandes m (c) |
imported>Primefac m (Protected "Template:Certification Table Entry/Sales/SpanishPeriod": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require aut...) |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 4: | Line 4: | ||
|{{#ifexpr: {{{year}}} < 2006 | |{{#ifexpr: {{{year}}} < 2006 | ||
|{{#if:{{{month|}}} | |{{#if:{{{month|}}} | ||
| − | |{{#ifexpr: {{{month}}} < | + | |{{#ifexpr: {{{month}}} < 11 |1|2}} |
|0}} | |0}} | ||
| − | |{{#ifexpr: {{{year}}} < 2009|2|3}}}}}} | + | |{{#ifexpr: {{{year}}} < 2009 |
| + | |2 | ||
| + | |{{#ifexpr: {{{year}}} < 2011 | ||
| + | | 3 | ||
| + | |{{#ifexpr: {{{year}}} < 2012 | ||
| + | |{{#if:{{{month|}}} | ||
| + | |{{#ifexpr: {{{month}}} < 11 |3|4}} | ||
| + | |0}} | ||
| + | | 4}}}}}}}}}} | ||
|0}} | |0}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 18:58, 10 January 2018
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. |