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

From blackwiki
Jump to navigation Jump to search
imported>John of Reading
(Only three periods required after all. Insufficient sources found for changes before 2007.)
imported>Muhandes
(From sandbox, fix dates)
 
(2 intermediate revisions by 2 users not shown)
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
+
          }}
          |{{#if:{{{month|}}}
+
        |{{#ifexpr: {{{year}}} < 2016
            |{{#ifexpr: {{{month}}} < 6 |2|3}}
+
          |3
            |0}}
+
          |{{#ifexpr: {{{year}}} < 2017
        |3}}}}}}}}
+
            |{{#if:{{{month|}}}
   |0}}
+
              |{{#ifexpr: {{{month}}} < 6
 +
                |3
 +
                |{{#ifexpr: {{{month}}} < 7
 +
                  |{{#if:{{{day|}}}
 +
                    |{{#ifexpr: {{{day}}} < 17 |3|4}}
 +
                    |0
 +
                    }}
 +
                  |4
 +
                  }}
 +
                }}
 +
              |0
 +
              }}
 +
            |4
 +
            }}
 +
          }}
 +
        }}
 +
      }}
 +
    }}
 +
   |0
 +
  }}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 13:23, 10 June 2020

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.