Difference between revisions of "Template:Header/year"
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
|<!-- YES IT IS A NUMBER: perform as normal (nb: have to include years with digits below 4) -->{{#ifeq:{{{noprint|}}}|1|| ({{{year|{{{1|}}}}}}) }}{{#ifeq:{{{nocat|}}}|1||[[Category:{{{year|{{{1|}}}}}} works]]}} | |<!-- YES IT IS A NUMBER: perform as normal (nb: have to include years with digits below 4) -->{{#ifeq:{{{noprint|}}}|1|| ({{{year|{{{1|}}}}}}) }}{{#ifeq:{{{nocat|}}}|1||[[Category:{{{year|{{{1|}}}}}} works]]}} | ||
|<!-- NO IT IS NOT A NUMBER: more if statements and switches to select the right thing. | |<!-- NO IT IS NOT A NUMBER: more if statements and switches to select the right thing. | ||
− | |||
− | |||
Now some checks to determine the type on non-numeric input: | Now some checks to determine the type on non-numeric input: | ||
Line 56: | Line 54: | ||
|<!-- ELSE | |<!-- ELSE | ||
− | + | ||
}}<!-- end ifeq isyear titleparts (2nd part) --> | }}<!-- end ifeq isyear titleparts (2nd part) --> | ||
| #default = <!-- ELSE | | #default = <!-- ELSE | ||
− | + | ||
}}<!-- end switch titleparts (1st part) --> | }}<!-- end switch titleparts (1st part) --> | ||
|<!-- ELSE | |<!-- ELSE | ||
− | + | ||
}}<!-- end if titleparts --> | }}<!-- end if titleparts --> | ||
}}<!-- end ifeq year BCE --> | }}<!-- end ifeq year BCE --> |
Revision as of 07:00, 4 August 2019
{{#if:Template
| |{{#if:|{{#ifeq:|1 | () |