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

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
m (c)
 
imported>Primefac
m (Protected "Template:Certification Table Entry/Sales/PolishPeriod": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require auto...)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
<includeonly>{{#if:{{{year|}}}
 
<includeonly>{{#if:{{{year|}}}
   |{{#ifexpr: {{{year}}} < 2005
+
   |{{#ifexpr: {{{year}}} < 1997
 
     | 1
 
     | 1
     | {{#ifexpr: {{{year}}} < 2006
+
     | {{#ifexpr: {{{year}}} < 1998
 
       | {{#if:{{{month|}}}
 
       | {{#if:{{{month|}}}
         | {{#ifexpr: {{{month}}} < 7 | 1 | 2}}
+
         | {{#ifexpr: {{{month}}} < 4 | 1 | 2}}
 
         | 0}}
 
         | 0}}
       | 2}}}}
+
       | {{#ifexpr: {{{year}}} < 2002
 +
        | 2
 +
        | {{#ifexpr: {{{year}}} < 2003
 +
          | {{#if:{{{month|}}}
 +
            | {{#ifexpr: {{{month}}} < 6 | 2 | 3}}
 +
            | 0}}
 +
          | {{#ifexpr: {{{year}}} < 2004
 +
            | 3
 +
            | {{#ifexpr: {{{year}}} < 2005
 +
              | {{#if:{{{month|}}}
 +
                | {{#ifexpr: {{{month}}} < 6 | 3 | 4}}
 +
                | 0}}
 +
              | {{#ifexpr: {{{year}}} < 2006
 +
                | {{#if:{{{month|}}}
 +
                  | {{#ifexpr: {{{month}}} < 7 | 4 | 5}}
 +
                  | 0}}
 +
                | 5}}}}}}}}}}}}}}
 
   |0}}
 
   |0}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 19:16, 10 January 2018

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

This helper template calculates periods for Polish certifications, as stated in [1] and [2]. The first source was given priority as it is more public.

It returns:

Before April 1997 Before June 2002 Before June 2004 Before July 2005 From July 2005
1 2 3 4 5

Returns 0 if the data provided is not sufficient.