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

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
(2011 only from 7 January)
imported>Muhandes
(date)
 
(2 intermediate revisions by the same user not shown)
Line 16: Line 16:
 
               |{{#ifexpr: {{{day}}} < 30 |1|2}}
 
               |{{#ifexpr: {{{day}}} < 30 |1|2}}
 
               |0}}
 
               |0}}
             |{{#ifexpr: {{{month}}} < 5 |2|3}}
+
             |{{#ifexpr: {{{month}}} < 4
 +
              |2
 +
              |{{#ifexpr: {{{month}}} < 5
 +
                |{{#if:{{{day|}}}
 +
                  |{{#ifexpr: {{{day}}} < 30 |2|3}}
 +
                  |0}}
 +
                |3
 +
                }}
 +
              }}
 
             }}
 
             }}
 
           |0}}
 
           |0}}
Line 33: Line 41:
 
                     |{{#ifexpr: {{{month}}} < 12
 
                     |{{#ifexpr: {{{month}}} < 12
 
                       |{{#if:{{{day|}}}
 
                       |{{#if:{{{day|}}}
                         |{{#ifexpr: {{{day}}} < 21 |3|4}}
+
                         |{{#ifexpr: {{{day}}} < 17 |4|0}}
 
                         |0}}  
 
                         |0}}  
 
                       |0}} <!-- December 2014 -->
 
                       |0}} <!-- December 2014 -->

Latest revision as of 14:46, 6 December 2018

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

This helper template calculates periods for Danish streaming certifications, as stated in the following sources:

  • [1] - Streaming certification instituted January 7, 2011
  • [2] - levels changed January 30, 2012
  • [3] - levels changed April 30, 2012
  • [4] - levels changed March 21, 2014
  • [5] - canceled November 17, 2014

It returns:

Before January 7, 2011 Before January 30, 2012 Before April 30, 2012 Before March 21, 2014 Before November 17, 2014 Since November 17, 2014
0 1 2 3 4 0

Returns 0 if the data provided is not sufficient.