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

From blackwiki
Jump to navigation Jump to search
imported>Primefac
m (Protected "Template:Certification Table Entry/Sales/NewZealandPeriod": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require...)
imported>Muhandes
(Correct NZ singles levels, See Template talk:Certification Table Entry)
Line 1: Line 1:
 
<includeonly>{{#if:{{{year|}}}
 
<includeonly>{{#if:{{{year|}}}
   |{{#ifexpr: {{{year}}} < 2007
+
   |{{#ifexpr: {{{year}}} < 1989
 
     |1
 
     |1
     |{{#ifexpr: {{{year}}} < 2008
+
     |{{#ifexpr: {{{year}}} < 2007
      |{{#if:{{{month|}}}
+
      |2
        |{{#ifexpr: {{{month}}} < 6 |1|2}}
+
      |{{#ifexpr: {{{year}}} < 2008
        |0}}
+
        |{{#if:{{{month|}}}
      |{{#ifexpr: {{{year}}} < 2016
+
          |{{#ifexpr: {{{month}}} < 6 |2|3}}
        |2
+
          |0}}
        |{{#ifexpr: {{{year}}} < 2017
+
        |{{#ifexpr: {{{year}}} < 2016
          |{{#if:{{{month|}}}
+
          |3
            |{{#ifexpr: {{{month}}} < 6 |2|3}}
+
          |{{#ifexpr: {{{year}}} < 2017
            |0}}
+
            |{{#if:{{{month|}}}
        |3}}}}}}}}
+
              |{{#ifexpr: {{{month}}} < 6 |3|4}}
 +
              |0}}
 +
          |4}}}}}}}}}}
 
   |0}}
 
   |0}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 17:55, 17 November 2018

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

This helper template calculates periods for New Zealand single certifications, as stated in the following sources:

  • According to Scapolo, Dean (2007). The Complete New Zealand Music Charts: 1966 – 2006. Wellington: Maurienne House. p. 7. ISBN 978-1877443-00-8. the levels changed in 1989 (see here
  • The 7 May 2007 chart and 4 June 2007 chart demonstrate a change near June 2007.
  • According to this and the very bottom of this, from 17 June 2016, the NZ singles have 15,000 for Gold and 30,000 for Platinum now.

It returns:

Before June 1989 Before June 2007 Before June 2016 From June 2016
1 2 3 4

Returns 0 if the data provided is not sufficient.