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

From blackwiki
Jump to navigation Jump to search
imported>John of Reading
(Allow for a further transition at May/June 2016.)
imported>Muhandes
(From sandbox, fix dates)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>{{#if:{{{year|}}}
 
<includeonly>{{#if:{{{year|}}}
   |{{#ifexpr: {{{year}}} < 1978
+
   |{{#ifexpr: {{{year}}} < 1989
     |0
+
     |1
     |{{#ifexpr: {{{year}}} < 1979
+
     |{{#ifexpr: {{{year}}} < 2007
       |{{#if:{{{month|}}}
+
      |2
         |{{#ifexpr: {{{month}}} < 7 |0|1}}
+
       |{{#ifexpr: {{{year}}} < 2008
        |0}}
+
         |{{#if:{{{month|}}}
      |{{#ifexpr: {{{year}}} < 1992
+
          |{{#ifexpr: {{{month}}} < 6 |2|3}}
        |1
+
          |0
         |{{#ifexpr: {{{year}}} < 2007
+
          }}
           |2
+
         |{{#ifexpr: {{{year}}} < 2016
           |{{#ifexpr: {{{year}}} < 2008
+
           |3
 +
           |{{#ifexpr: {{{year}}} < 2017
 
             |{{#if:{{{month|}}}
 
             |{{#if:{{{month|}}}
               |{{#ifexpr: {{{month}}} < 6 |2|3}}
+
               |{{#ifexpr: {{{month}}} < 6
              |0}}
+
                |3
            |{{#ifexpr: {{{year}}} < 2016
+
                |{{#ifexpr: {{{month}}} < 7
              |3
+
                  |{{#if:{{{day|}}}
              |{{#ifexpr: {{{year}}} < 2017
+
                    |{{#ifexpr: {{{day}}} < 17 |3|4}}
                |{{#if:{{{month|}}}
+
                    |0
                  |{{#ifexpr: {{{month}}} < 6 |3|4}}
+
                    }}
                  |0}}
+
                  |4
              |4}}}}}}}}}}}}}}
+
                  }}
   |0}}
+
                }}
 +
              |0
 +
              }}
 +
            |4
 +
            }}
 +
          }}
 +
        }}
 +
      }}
 +
    }}
 +
   |0
 +
  }}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 13:23, 10 June 2020

50px 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.