Template:AllusionsItemTop: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 10: Line 10:
{{#vardefine:Century|{{#expr:{{#sub:{{#expr:{{#var:Date}}-{{#ifeq:{{#rpos:{{#var:Date}}|00}}|2|1|0}} }}|0|2}}+1}}}}
{{#vardefine:Century|{{#expr:{{#sub:{{#expr:{{#var:Date}}-{{#ifeq:{{#rpos:{{#var:Date}}|00}}|2|1|0}} }}|0|2}}+1}}}}
{{#vardefine:TwoLast|{{#sub:{{#var:Date}}|2|2}}}}
{{#vardefine:TwoLast|{{#sub:{{#var:Date}}|2|2}}}}
 
{#vardefine:QCentury:{{#ifeq:{{#expr:{{#expr:{{#var:TwoLast}} > 00}} and {{#expr:{{#var:TwoLast}} < 26}}}}|1|01|{{#ifeq:{{#expr:{{#expr:{{#var:TwoLast}} > 25}} and {{#expr:{{#var:TwoLast}} < 51}}}}|1|26|{{#ifeq:{{#expr:{{#expr:{{#var:TwoLast}} > 50}} and {{#expr:{{#var:TwoLast}} < 76}}}}|1|51|76}}}}}}}}
<!--{#vardefine:Qcentury:
{#vardefine:HCentury:{{#ifeq:{{#expr:{{#ifeq:{#var:QCentury}}|01}} or {{#ifeq:{#var:QCentury}}|26}}}}|1|01|51}}}}
 
 
}}-->
 
 
{{#ifeq:
{{#expr:
{{#expr:{{#var:TwoLast}} > 00}}  
and
{{#expr:{{#var:TwoLast}} < 26}}
}} |1|01|{{#ifeq:
{{#expr:
{{#expr:{{#var:TwoLast}} > 25}}  
and
{{#expr:{{#var:TwoLast}} < 51}}
}} |1|26|{{#ifeq:
{{#expr:
{{#expr:{{#var:TwoLast}} > 50}}  
and
{{#expr:{{#var:TwoLast}} < 76}}
}} |1|51|76}}
}}
}}
 
 
 
 
 
 
 
 
M{{#sub:{{#var:Date}}|3|1}}M
{{#var:Century}}
 
{{Infobox
{{Infobox
  |header1=Allusion
  |header1=Allusion

Revision as of 06:44, 6 June 2018