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

From blackwiki
Jump to navigation Jump to search
imported>MusikAnimal
m (Protected "Template:Certification Table Entry/Sales/SwedishPeriod": Highly visible template; 1,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite)))
imported>Muhandes
(Correct for Sweden relyear >=2018)
 
Line 20: Line 20:
 
                   |{{#ifexpr: {{{month}}} < 11|4|5}}
 
                   |{{#ifexpr: {{{month}}} < 11|4|5}}
 
                   |0}}
 
                   |0}}
                 |{{#ifexpr: {{{year}}} > 2010
+
                 |{{#ifexpr: {{{year}}} < 2010
                |6|5}}
+
                  |5
}}}}}}}}}}}}}}
+
                  |{{#ifexpr: {{{year}}} < 2018
   |0}}
+
                    |6
</includeonly><noinclude>
+
                    |7
 +
                    }}
 +
                  }}
 +
                }}
 +
              }}
 +
            }}
 +
          }}
 +
        }}
 +
      }}
 +
    }}
 +
   |0
 +
  }}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 18:06, 26 October 2019

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

This helper template calculates periods for Swedish certifications, as stated in [1] and [2]

It returns:

Before October 1996 Before 2002 Before July 2003 Before November 2006 Before January 2010 Before January 2018 From January 2018
1 2 3 4 5 6 7

Returns 0 if the data provided is not sufficient.