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
(date)
 
(3 intermediate revisions by the same user not shown)
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|}}}
Line 10: 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 27: 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.