Template:AllusionsItemTop: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 9: Line 9:
{{#vardefine:About|{{{About|}}}}}
{{#vardefine:About|{{{About|}}}}}
{{#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:TwoFirst|{{#sub:{{#var:Date}}|0|2}}}}
{{#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}}}}}}}}
Line 14: Line 15:
{{#vardefine:Last|{{#sub:{{#var:Date}}|3|1}}}}
{{#vardefine:Last|{{#sub:{{#var:Date}}|3|1}}}}
{{#vardefine:Decade|{{#sub:{{#ifeq:{{#var:last}}|0|{{#expr:{{#var:Date}} - 1}}|{{#var:Date}}}}|0|3}}1}}
{{#vardefine:Decade|{{#sub:{{#ifeq:{{#var:last}}|0|{{#expr:{{#var:Date}} - 1}}|{{#var:Date}}}}|0|3}}1}}


Decade is: {{#var:Decade}}
Decade is: {{#var:Decade}}
Quarter century is: {{#var:Century}}{{#var:QCentury}}
Quarter century is: {{#var:TwoFirst}}{{#var:QCentury}}
Half century is: {{#var:Century}}{{#var:HCentury}}
Half century is: {{#var:TwoFirst}}{{#var:HCentury}}


{{Infobox
{{Infobox

Revision as of 07:11, 6 June 2018