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

From blackwiki
Jump to navigation Jump to search
imported>Muhandes
m (c)
 
imported>Muhandes
m (1-3)
Line 1: Line 1:
 
<includeonly>{{#if:{{{year|}}}
 
<includeonly>{{#if:{{{year|}}}
 
   |{{#ifexpr: {{{year}}} < 2002
 
   |{{#ifexpr: {{{year}}} < 2002
     | 0
+
     | 1
 
     | {{#ifexpr: {{{year}}} < 2003
 
     | {{#ifexpr: {{{year}}} < 2003
 
       | {{#if:{{{month|}}}
 
       | {{#if:{{{month|}}}
         | {{#ifexpr: {{{month}}} < 7 | 0 | 1}}
+
         | {{#ifexpr: {{{month}}} < 7 | 1 | 2}}
 
         | 0}}
 
         | 0}}
       | {{#ifexpr: {{{year}}} < 2008 | 1 | 2}}}}}}
+
       | {{#ifexpr: {{{year}}} < 2008 | 2 | 3}}}}}}
 
   |0}}
 
   |0}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 07:40, 16 March 2011

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

This helper template calculates periods for Norwegian certifications. For albums:


It returns:

Before July 2002 Before 2008 Before 2015 Before 2018 From 2018
1 2 3 4 5

Returns 0 if the data provided is not sufficient.