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

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
(Undid revision 851005400 by Muhandes (talk) oops)
imported>Muhandes
(Add needed support for July 2018 change)
Line 1: Line 1:
 
<includeonly>{{#if:{{{year|}}}
 
<includeonly>{{#if:{{{year|}}}
 
   |{{#ifexpr: {{{year}}} < 2006
 
   |{{#ifexpr: {{{year}}} < 2006
     | 1
+
     |1
 
     |{{#ifexpr: {{{year}}} < 2007
 
     |{{#ifexpr: {{{year}}} < 2007
 
       |2
 
       |2
Line 12: Line 12:
 
             |{{#ifexpr: {{{month}}} < 4|3|4}}
 
             |{{#ifexpr: {{{month}}} < 4|3|4}}
 
             |0}}
 
             |0}}
           |4}}}}}}}}
+
           |{{#ifexpr: {{{year}}} < 2018
 +
            |4
 +
            |{{#ifexpr: {{{year}}} < 2019
 +
              |{{#if:{{{month|}}}
 +
                |{{#ifexpr: {{{month}}} < 8|4|5}}
 +
                |0}}
 +
              |5}}}}}}}}}}}}
 
   |0}}
 
   |0}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 15:58, 19 July 2018

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

This helper template calculates periods for Belgian certifications, as stated in the following source:

  • [1] - certification until 2006
  • [2] - certification from October 2007 (active at least from April 2007 [3])
  • [4] - certification from 2009 (changed on April 2008 [5])
  • [6] - certification from July 2018

There is no data for the interim period

It returns:

Before 2006 Before April 2007 Before April 2008 before July 2018 from July 2018
1 2 3 4 5

Returns 0 if the data provided is insufficient