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

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
(Supporting changes in French Singles certificates since 2013)
imported>Muhandes
(support impending change in single certification for France)
 
Line 32: Line 32:
 
                       |{{#ifexpr: {{{year}}} < 2016
 
                       |{{#ifexpr: {{{year}}} < 2016
 
                         |6
 
                         |6
                         |7}}}}}}}}}}}}}}}}}}}}}}
+
                         |{{#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.