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

From blackwiki
Jump to navigation Jump to search
imported>Primefac
m (Protected "Template:Certification Table Entry/Sales/FrenchPeriod": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require auto...)
imported>Muhandes
(Supporting changes in French Singles certificates since 2013)
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
 +
                        |7}}}}}}}}}}}}}}}}}}}}}}
 
   |0}}
 
   |0}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 09:36, 16 March 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.