1,070
edits
Changes
Jump to navigation
Jump to search
First, add temporary tracking category (unless nocat is true) -->{{#ifeq:{{{nocat|}}}|1||[[Category:Works with non-numeric dates]]}}<!--
-->{{#ifeq:{{{noprint|}}}|1|| ({{{year|{{{1|}}}}}}) }}{{#ifeq:{{{nocat|}}}|1||[[Category:Works with unrecognised dates]][[Category:Undated works]]}}<!-- a "circa"-style date with a non-year 2nd part get categorised as unrecognised and undated -->
-->{{#ifeq:{{{noprint|}}}|1|| ({{{year|{{{1|}}}}}}) }}{{#ifeq:{{{nocat|}}}|1||[[Category:Works with unrecognised dates]][[Category:Undated works]]}}<!-- if a multi-part date but no matches, categorise as unrecognised and undated -->
-->{{#ifeq:{{{noprint|}}}|1|| ({{{year|{{{1|}}}}}}) }}{{#ifeq:{{{nocat|}}}|1||[[Category:Works with unrecognised dates]][[Category:Undated works]]}}<!-- if the input is STILL not recognised, categorise it as unrecognised and undated -->
no edit summary
|<!-- 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.
Now some checks to determine the type on non-numeric input:
|<!-- ELSE
}}<!-- end ifeq isyear titleparts (2nd part) -->
| #default = <!-- ELSE
}}<!-- end switch titleparts (1st part) -->
|<!-- ELSE
}}<!-- end if titleparts -->
}}<!-- end ifeq year BCE -->