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

From blackwiki
Jump to navigation Jump to search
imported>Primefac
m (Protected "Template:Certification Table Entry/Sales/NorwegianPeriod": semi-protection of high-usage templates to combat systematic vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed...)
imported>Muhandes
(update)
 
Line 6: Line 6:
 
         | {{#ifexpr: {{{month}}} < 7 | 1 | 2}}
 
         | {{#ifexpr: {{{month}}} < 7 | 1 | 2}}
 
         | 0}}
 
         | 0}}
       | {{#ifexpr: {{{year}}} < 2008 | 2 | 3}}}}}}
+
       | {{#ifexpr: {{{year}}} < 2008  
   |0}}
+
        | 2  
 +
        | {{#ifexpr: {{{year}}} < 2015
 +
          | 3
 +
          | {{#ifexpr: {{{year}}} < 2018
 +
            | 4
 +
            | 5
 +
            }}
 +
          }}
 +
        }}
 +
      }}
 +
    }}
 +
   |0
 +
  }}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 18:52, 9 March 2019

50px 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.