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:{{#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:HCentury:{{#ifeq:{{#expr:{{#ifeq:{#var:QCentury}}|01}} or {{#ifeq:{#var:QCentury}}|26}}}}|1|01|51}}}}
{#vardefine:HCentury:{{#ifeq:{{#expr:{{#ifeq:{#var:QCentury}}|01}} or {{#ifeq:{#var:QCentury}}|26}}}}|1|01|51}}}}
{{Infobox
{{Infobox

Revision as of 06:45, 6 June 2018