Difference between revisions of "Template:Certification Table Entry/Sales/HungarianPeriod/sandbox"
Jump to navigation
Jump to search
imported>Muhandes (Create sandbox version of Template:Certification Table Entry/Sales/HungarianPeriod) |
imported>Muhandes (more) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
|{{#ifexpr: {{{year}}} < 1992 | |{{#ifexpr: {{{year}}} < 1992 | ||
|1 | |1 | ||
| − | |{{#ifexpr: {{{year}}} > | + | |{{#ifexpr: {{{year}}} > 2017 |
| − | | | + | |9 |
|{{#switch: {{{year}}} | |{{#switch: {{{year}}} | ||
| − | |1992={{#if:{{{month|}}} | + | |1992={{#if:{{{month|}}} |
| − | + | |{{#ifexpr: {{{month}}} < 6 | |
| − | | | + | |1 |
| − | |{{#ifexpr: {{{month}}} < | + | |{{#ifexpr: {{{month}}} < 7 |
| + | |{{#if:{{{day|}}} | ||
| + | |{{#ifexpr: {{{day}}} < 12|1|2}} | ||
| + | |0}} | ||
| + | |2}}}} | ||
| + | |0}} | ||
| + | |1993|1994|1995|1996=2 | ||
| + | |1997={{#if:{{{month|}}} | ||
| + | |{{#ifexpr: {{{month}}} < 12 | ||
| + | |2 | ||
|{{#if:{{{day|}}} | |{{#if:{{{day|}}} | ||
| − | |{{#ifexpr: {{{day}}} < | + | |{{#ifexpr: {{{day}}} < 23|2|3}} |
| − | |0 | + | |0}}}} |
| − | + | |0}} | |
| − | + | |1998|1999|2000|2001=3 | |
| − | | | + | |2002={{#if:{{{month|}}} |
| − | | | + | |{{#ifexpr: {{{month}}} < 4 |
| − | + | |3 | |
| − | + | |{{#ifexpr: {{{month}}} < 5 | |
| − | + | |{{#if:{{{day|}}} | |
| − | + | |{{#ifexpr: {{{day}}} < 23|3|4}} | |
| − | + | |0}} | |
| − | + | |4}}}} | |
| − | | | + | |0}} |
| − | | | + | |2003|2004=4 |
| − | + | |2005={{#if:{{{month|}}} | |
| − | + | |{{#ifexpr: {{{month}}} < 2 | |
| − | + | |4 | |
| − | + | |{{#ifexpr: {{{month}}} < 3 | |
| − | + | |{{#if:{{{day|}}} | |
| − | + | |{{#ifexpr: {{{day}}} < 23|4|5}} | |
| − | + | |0}} | |
| − | + | |5}}}} | |
| − | | | + | |0}} |
| − | + | |2006={{#if:{{{month|}}} | |
| − | + | |{{#ifexpr: {{{month}}} < 9 | |
| − | + | |5 | |
| − | + | |{{#ifexpr: {{{month}}} < 10 | |
| − | + | |{{#if:{{{day|}}} | |
| − | + | |{{#ifexpr: {{{day}}} < 13|5|6}} | |
| − | + | |0}} | |
| − | + | |6}}}} | |
| − | + | |0}} | |
| − | | | + | |2007|2008=6 |
| − | + | |2009={{#if:{{{month|}}} | |
| − | | | + | |{{#ifexpr: {{{month}}} < 10|6|7}} |
| − | |{{#ifexpr: {{{month}}} < | + | |0}} |
| + | |2010|2011=7 | ||
| + | |2012={{#if:{{{month|}}} | ||
| + | |{{#ifexpr: {{{month}}} < 12 | ||
| + | |7 | ||
|{{#if:{{{day|}}} | |{{#if:{{{day|}}} | ||
| − | |{{#ifexpr: {{{day}}} < | + | |{{#ifexpr: {{{day}}} < 14|7|8}} |
|0}} | |0}} | ||
| − | + | }} | |
| − | + | |0}} | |
| − | | | + | |2013|2014|2015|2016|2017=8 |
| − | | | + | }} |
| − | + | }} | |
| − | + | }} | |
|0}} | |0}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 10:55, 4 October 2019
| 50px | This is the template sandbox page for Template:Certification Table Entry/Sales/HungarianPeriod (diff). See also the companion subpage for test cases. |
This helper template calculates periods for Hungarian certifications, as stated in Mahasz#Certification levels
It returns:
| Before 12 June 1992 | Before 3 December 1997 | Before 23 April 2002 | Before 23 February 2005 | Before 13 September 2006 | Before 1 October 2009 | Before 14 December 2012 | Before 2018 | Since 2018 |
|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
Returns 0 if the data provided is not sufficient.
| The above documentation is transcluded from Template:Certification Table Entry/Sales/HungarianPeriod/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |