Difference between revisions of "Template:Certification Table Entry/Sales/SpanishPeriod"

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
(correct)
imported>Muhandes
(add new certification level)
Line 6: Line 6:
 
         |{{#ifexpr: {{{month}}} < 11 |1|2}}
 
         |{{#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>

Revision as of 14:55, 7 November 2011

50px Template documentation[view] [edit] [history] [purge]

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.