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

From blackwiki
Jump to navigation Jump to search
imported>Primefac
m (Protected "Template:Certification Table Entry/Sales/DutchPeriod": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoc...)
imported>Muhandes
(update netherlands)
 
Line 1: Line 1:
<includeonly>{{#if:{{{year|}}}|{{#ifexpr: {{{year}}} < 1984|1|{{#ifexpr: {{{year}}} < 1992|2|{{#ifexpr: {{{year}}} < 2000|3|{{#ifexpr: {{{year}}} < 2006|4|{{#ifexpr: {{{year}}} < 2008|5|{{#ifexpr: {{{year}}} < 2009|6|{{#ifexpr: {{{year}}} > 2009|7|{{#if:{{{month|}}}|{{#ifexpr: {{{month}}} < 6|6|7}}|0}}}}}}}}}}}}}}}}|0}}
+
<includeonly>{{#if:{{{year|}}}
 +
  |{{#ifexpr: {{{year}}} < 1984
 +
    |1
 +
    |{{#ifexpr: {{{year}}} < 1992
 +
      |2
 +
      |{{#ifexpr: {{{year}}} < 2000
 +
        |3
 +
        |{{#ifexpr: {{{year}}} < 2006
 +
          |4
 +
          |{{#ifexpr: {{{year}}} < 2008
 +
            |5
 +
            |{{#ifexpr: {{{year}}} < 2009
 +
              |6
 +
              |{{#ifexpr: {{{year}}} < 2010 <!-- 2009 -->
 +
                |{{#if:{{{month|}}}
 +
                  |{{#ifexpr: {{{month}}} < 6|6|7}}
 +
                  |0
 +
                  }}
 +
                | {{#ifexpr: {{{year}}} < 2014
 +
                  |7
 +
                  | {{#ifexpr: {{{year}}} < 2015 <!-- 2014 -->
 +
                    |{{#if:{{{month|}}}
 +
                      |{{#ifexpr: {{{month}}} < 7|7|8}}
 +
                      |0
 +
                      }}
 +
                    | {{#ifexpr: {{{year}}} < 2016 <!-- 2015 -->
 +
                      |{{#if:{{{month|}}}
 +
                        |{{#ifexpr: {{{month}}} < 10|8|9}}
 +
                        |0
 +
                        }}
 +
                      |{{#ifexpr: {{{year}}} < 2017 <!-- 2016 -->
 +
                        |{{#if:{{{month|}}}
 +
                          |{{#ifexpr: {{{month}}} < 4 |9 |10}}
 +
                          |0
 +
                          }}
 +
                        | {{#ifexpr: {{{year}}} < 2018 |10|11}}
 +
                        }}
 +
                      }}
 +
                    }}
 +
                  }}
 +
                }}
 +
              }}
 +
            }}
 +
          }}
 +
        }}
 +
      }}
 +
    }}
 +
  |0}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 16:24, 17 March 2019

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

This helper template calculates periods for German certifications, as stated in NVPI#Certification-award-levels (Timeline)

It returns:

Before 1984 Before 1992 Before 2000 Before 2006 Before 2008 Before June 2009 Before July 2014 Before October 2015 Before April 2016 Before 2018 From 2018
1 2 3 4 5 6 7 8 9 10 11

Returns 0 if the data provided is insufficient