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

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
(Correct NZ singles levels, See Template talk:Certification Table Entry)
imported>Muhandes
(From sandbox, fix dates)
 
Line 7: Line 7:
 
         |{{#if:{{{month|}}}
 
         |{{#if:{{{month|}}}
 
           |{{#ifexpr: {{{month}}} < 6 |2|3}}
 
           |{{#ifexpr: {{{month}}} < 6 |2|3}}
           |0}}
+
           |0
 +
          }}
 
         |{{#ifexpr: {{{year}}} < 2016
 
         |{{#ifexpr: {{{year}}} < 2016
 
           |3
 
           |3
 
           |{{#ifexpr: {{{year}}} < 2017
 
           |{{#ifexpr: {{{year}}} < 2017
 
             |{{#if:{{{month|}}}
 
             |{{#if:{{{month|}}}
               |{{#ifexpr: {{{month}}} < 6 |3|4}}
+
               |{{#ifexpr: {{{month}}} < 6
               |0}}
+
                |3
          |4}}}}}}}}}}
+
                |{{#ifexpr: {{{month}}} < 7
   |0}}
+
                  |{{#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.