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

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
(Created page with '<includeonly>{{#if:{{{year|}}} |{{#ifexpr: {{{year}}} < 2011 <!-- Before 2011 --> |0 |{{#ifexpr: {{{year}}} < 2012 <!-- year is 2011--> |1...')
 
imported>Muhandes
(2011 only from 7 January)
Line 3: Line 3:
 
     |0
 
     |0
 
     |{{#ifexpr: {{{year}}} < 2012 <!-- year is 2011-->
 
     |{{#ifexpr: {{{year}}} < 2012 <!-- year is 2011-->
       |1
+
       |{{#if:{{{month|}}}
 +
        |{{#ifexpr: {{{month}}} < 2
 +
          |{{#if:{{{day|}}}
 +
            |{{#ifexpr: {{{day}}} < 7 | 0 | 1}}
 +
            |0}}
 +
          |1}}
 +
        |0}}
 
       |{{#ifexpr: {{{year}}} < 2013 <!-- year is 2012-->
 
       |{{#ifexpr: {{{year}}} < 2013 <!-- year is 2012-->
 
         |{{#if:{{{month|}}}
 
         |{{#if:{{{month|}}}

Revision as of 14:22, 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.