Difference between revisions of "Template:Certification Table Entry/Sales/GermanPeriod"
Jump to navigation
Jump to search
imported>Muhandes m (c) |
imported>John of Reading (Fix handling of year=2003, and add a fourth period starting in June 2014) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{{#if:{{{year|}}}|{{#ifexpr: {{{year}}} < 1999|1|{{#ifexpr: {{{year}}} | + | <includeonly>{{#if:{{{year|}}} |
| + | |{{#ifexpr: {{{year}}} < 1999 | ||
| + | |1 | ||
| + | |{{#ifexpr: {{{year}}} < 2000 | ||
| + | |{{#if:{{{month|}}}|{{#ifexpr: {{{month}}} < 9|1|{{#ifexpr: {{{month}}} > 9|2|{{#if:{{{day|}}}|{{#ifexpr: {{{day}}} < 24|1|2}}|0}}}}|0}}|0}} | ||
| + | |{{#ifexpr: {{{year}}} < 2003 | ||
| + | |2 | ||
| + | |{{#ifexpr: {{{year}}} < 2014 | ||
| + | |3 | ||
| + | |{{#ifexpr: {{{year}}} < 2015 | ||
| + | |{{#if:{{{month|}}}|{{#ifexpr: {{{month}}} < 6|3|4}}|0}} | ||
| + | |4}}}}}}}}}} | ||
| + | |0}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 08:50, 22 July 2016
This helper template calculates periods for German certifications, as stated in BVMI#Gold and Platinum certification awards (Timeline)
It returns:
| Before September 24, 1999 | Before January 1, 2003 | Before June 1, 2014 | After June 1, 2014 |
|---|---|---|---|
| 1 | 2 | 3 | 4 |
Returns 0 if the data provided is insufficient
| The above documentation is transcluded from Template:Certification Table Entry/Sales/GermanPeriod/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |