Difference between revisions of "Template:Certification Table Entry/Sales/PhilippinesPeriod"
Jump to navigation
Jump to search
imported>Muhandes (Add Philippines per request at Template talk:Certification Table Entry#Philippines unsupported) |
imported>Muhandes (fix) |
||
| Line 2: | Line 2: | ||
|{{#ifexpr: {{{year}}} < 1990 <!-- before 1990 --> | |{{#ifexpr: {{{year}}} < 1990 <!-- before 1990 --> | ||
|1 | |1 | ||
| − | |{{#ifexpr: {{{year}}} < | + | |{{#ifexpr: {{{year}}} < 2003 <!-- 1990-2002 --> |
|2 | |2 | ||
| − | |{{#ifexpr: {{{year}}} < | + | |{{#ifexpr: {{{year}}} < 2004 <!-- 2003 --> |
|3 | |3 | ||
| − | |{{#ifexpr: {{{year}}} < | + | |{{#ifexpr: {{{year}}} < 2005 <!-- 2004 --> |
|{{#if:{{{month|}}} | |{{#if:{{{month|}}} | ||
| − | |{{#ifexpr: {{{month}}} < | + | |{{#ifexpr: {{{month}}} < 7 |3|4}} |
|0}} | |0}} | ||
| − | |{{#ifexpr: {{{year}}} < | + | |{{#ifexpr: {{{year}}} < 2007 <!-- 2005-2006 --> |
| − | + | |4 | |
| − | + | |{{#ifexpr: {{{year}}} < 2008 <!-- 2007 --> | |
| − | |||
| − | |{{#ifexpr: {{{year}}} < | ||
|{{#if:{{{month|}}} | |{{#if:{{{month|}}} | ||
| − | |{{#ifexpr: {{{month}}} < 4 |5 | + | |{{#ifexpr: {{{month}}} < 10 |4|5}} |
|0}} | |0}} | ||
| − | |{{#ifexpr: {{{year}}} < | + | |{{#ifexpr: {{{year}}} < 2009 <!-- 2008 --> |
| − | |6 | + | |{{#if:{{{month|}}} |
| − | |{{#ifexpr: {{{year}}} < | + | |{{#ifexpr: {{{month}}} < 10 |5|6}} |
| + | |0}} | ||
| + | |{{#ifexpr: {{{year}}} < 2010 <!-- 2009 --> | ||
|{{#if:{{{month|}}} | |{{#if:{{{month|}}} | ||
| − | |{{#ifexpr: {{{month}}} < | + | |{{#ifexpr: {{{month}}} < 4 |6|7}} |
|0}} | |0}} | ||
| − | |7 | + | |{{#ifexpr: {{{year}}} < 2012 <!-- 2010-2011 --> |
| + | |7 | ||
| + | |{{#ifexpr: {{{year}}} < 2013 <!-- 2012 --> | ||
| + | |{{#if:{{{month|}}} | ||
| + | |{{#ifexpr: {{{month}}} < 3 |7|8}} | ||
| + | |0}} | ||
| + | |8 | ||
| + | }} | ||
| + | }} | ||
}} | }} | ||
}} | }} | ||
| Line 33: | Line 41: | ||
}} | }} | ||
}} | }} | ||
| − | |0}} | + | |0}} |
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 16:04, 25 December 2018
This helper template calculates periods for Philippines certifications, as stated in Philippine Association of the Record Industry#Albums.
It returns:
| Before 1990 | Before 2003 | Before July 2004 | Before October 2007 | Before October 2008 | Before April 2009 | Before March 2012 | From March 2012 |
|---|---|---|---|---|---|---|---|
| 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/PhilippinesPeriod/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. |