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

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
m (c)
 
imported>Muhandes
(support impending change in single certification for France)
 
(2 intermediate revisions by 2 users not shown)
Line 24: Line 24:
 
                     |{{#ifexpr: {{{month}}} < 7|4|5}}
 
                     |{{#ifexpr: {{{month}}} < 7|4|5}}
 
                     |0}}
 
                     |0}}
                   |5}}}}}}}}}}}}}}}}            
+
                   |{{#ifexpr: {{{year}}} < 2013
 +
                    |5
 +
                    |{{#ifexpr: {{{year}}} < 2014
 +
                      |{{#if:{{{month|}}}
 +
                        |{{#ifexpr: {{{month}}} < 3|5|6}}
 +
                        |0}}
 +
                      |{{#ifexpr: {{{year}}} < 2016
 +
                        |6
 +
                        |{{#ifexpr: {{{year}}} < 2018
 +
                          |7
 +
                          |{{#ifexpr: {{{year}}} < 2019
 +
                            |{{#if:{{{month|}}}
 +
                              |{{#ifexpr: {{{month}}} < 4
 +
                                |7
 +
                                |{{#ifexpr: {{{month}}} < 5
 +
                                  |{{#if:{{{day|}}}
 +
                                    |{{#ifexpr: {{{day}}} < 27|7|8}}
 +
                                    |0}}
 +
                                  |8}}
 +
                                }}
 +
                              |0}}
 +
                            |8                     
 +
                        }}}}}}}}}}}}}}}}}}}}}}}}}}
 
   |0}}
 
   |0}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 15:51, 26 April 2018

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

This helper template calculates periods for French certifications for singles and videos, as stated in Syndicat National de l'Édition Phonographique#Singles

It returns:

Before November 1, 1988 Before March 1, 1991 Before May 1, 2005 Before July 1, 2009 Before 1 March 2013 Before 1 January 2016 Before 27 April 2018 27 April 2018 and onward
1 2 3 4 5 6 7 8

Returns 0 if the data provided is not sufficient.