Difference between revisions of "Template:Header/year"

From En JW United
Jump to navigation Jump to search
(Created page with "<!-- === INPUTS TO THIS SUB-TEMPLATE === 1 = year noprint = if 1, do not print the year in the header (eg. noyear) nocat = if 1, do not categorise the page (eg. noyear...")
 
 
(10 intermediate revisions by the same user not shown)
Line 18: Line 18:
 
       |<!-- 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.
  
          First, add temporary tracking category (unless nocat is true) -->{{#ifeq:{{{nocat|}}}|1||[[Category:Works with non-numeric dates]]}}<!--
+
 
  
 
           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 56:
 
                                           |<!-- ELSE
 
                                           |<!-- ELSE
  
                                         -->{{#ifeq:{{{noprint|}}}|1||&nbsp;({{{year|{{{1|}}}}}})&nbsp;}}{{#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||&nbsp;({{{year|{{{1|}}}}}})&nbsp;}}<!-- 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||&nbsp;({{{year|{{{1|}}}}}})&nbsp;}}{{#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||&nbsp;({{{year|{{{1|}}}}}})&nbsp;}}<!-- 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||&nbsp;({{{year|{{{1|}}}}}})&nbsp;}}{{#ifeq:{{{nocat|}}}|1||[[Category:Works with unrecognised dates]][[Category:Undated works‎]]}}<!-- if the input is STILL not recognised, categorise it as unrecognised and undated -->
+
                           -->{{#ifeq:{{{noprint|}}}|1||&nbsp;({{{year|{{{1|}}}}}})&nbsp;}}<!-- 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 -->

Latest revision as of 12:29, 4 August 2019