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

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
m (c)
 
imported>Muhandes
m (correct)
 
Line 1: Line 1:
 
<includeonly>{{#if:{{{year|}}}
 
<includeonly>{{#if:{{{year|}}}
 
   |{{#ifexpr: {{{year}}} < 2006
 
   |{{#ifexpr: {{{year}}} < 2006
     |0
+
     |1
 
     |{{#ifexpr: {{{year}}} < 2007
 
     |{{#ifexpr: {{{year}}} < 2007
 
       |{{#if:{{{month|}}}
 
       |{{#if:{{{month|}}}
         |{{#ifexpr: {{{month}}} < 9 |0|1}}
+
         |{{#ifexpr: {{{month}}} < 9 |1|2}}
 
         |0}}
 
         |0}}
       |{{#ifexpr: {{{year}}} < 2010|1|2}}}}}}
+
       |{{#ifexpr: {{{year}}} < 2010|2|3}}}}}}
 
   |0}}
 
   |0}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 06:22, 8 April 2011

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

This helper template calculates periods for Russian certifications, as stated in [1]

It returns:

Before September 2006 Before 2010 From 2010
1 2 3

Returns 0 if the data provided is not sufficient.