Difference between revisions of "Template:Header/year"
Jump to navigation
Jump to search
(5 intermediate revisions by the same user not shown) | |||
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 54: | Line 56: | ||
|<!-- ELSE | |<!-- ELSE | ||
− | + | -->{{#ifeq:{{{noprint|}}}|1|| ({{{year|{{{1|}}}}}}) }}<!-- a "circa"-style date with a non-year 2nd part get categorised as unrecognised and undated --> | |
}}<!-- end ifeq isyear titleparts (2nd part) --> | }}<!-- end ifeq isyear titleparts (2nd part) --> | ||
| #default = <!-- ELSE | | #default = <!-- ELSE | ||
− | + | -->{{#ifeq:{{{noprint|}}}|1|| ({{{year|{{{1|}}}}}}) }}<!-- if a multi-part date but no matches, categorise as unrecognised and undated --> | |
}}<!-- end switch titleparts (1st part) --> | }}<!-- end switch titleparts (1st part) --> | ||
|<!-- ELSE | |<!-- ELSE | ||
− | + | -->{{#ifeq:{{{noprint|}}}|1|| ({{{year|{{{1|}}}}}}) }}<!-- if the input is STILL not recognised, categorise it as unrecognised and undated --> | |
}}<!-- end if titleparts --> | }}<!-- end if titleparts --> | ||
}}<!-- end ifeq year BCE --> | }}<!-- end ifeq year BCE --> | ||
Line 74: | Line 76: | ||
}}<!-- if SUBJECTSPACE --> | }}<!-- if SUBJECTSPACE --> | ||
− | <noinclude> | + | <noinclude>[[Category:Header templates|Header/year]]</noinclude> |