Template:DATE2COMP

{{#switch:{{#expr:{{#ifexpr:{{JULIANDAY|{{{4}}}|{{{5}}}|{{{6}}}|{{{14|}}}|{{{17|}}}|{{{14|0}}}}>{{JULIANDAY|{{{1}}}|{{{2}}}|{{{3}}}|{{{13|}}}|{{{16|}}}|{{{13|0}}}}}|2|{{#ifexpr:{{JULIANDAY|{{{4}}}|{{{5}}}|{{{6}}}|{{{14|}}}|{{{17|}}}|{{{14|0}}}}={{JULIANDAY|{{{1}}}|{{{2}}}|{{{3}}}|{{{13|}}}|{{{16|}}}|{{{13|0}}}}}|1|0}}}}+{{#ifexpr:{{JULIANDAY|{{{7}}}|{{{9}}}|{{{9}}}|{{{15|}}}|{{{18|}}}|{{{14|0}}}}>{{JULIANDAY|{{{4}}}|{{{5}}}|{{{6}}}|{{{14|}}}|{{{17|}}}|{{{13|0}}}}}|2|{{#ifexpr:{{JULIANDAY|{{{7}}}|{{{9}}}|{{{9}}}|{{{15|}}}|{{{18|}}}|{{{14|0}}}}={{JULIANDAY|{{{4}}}|{{{5}}}|{{{6}}}|{{{14|}}}|{{{17|}}}|{{{13|0}}}}}|1|0}}}}}}}}|0|{{{before|}}}{{{before or first|}}}{{{last or not between|}}}{{{not between|}}}{{{first or not between|}}}{{{not between exclusive|}}}|1|{{{before or first|}}}{{{between not last|}}}{{{between|}}}{{{first or not between|}}}{{{not between exclusive|}}}|2|{{{between not last|}}}{{{between|}}}{{{between not first|}}}{{{between exclusive|}}}|3|{{{last or not between|}}}{{{between|}}}{{{between not first|}}}{{{after or last|}}}{{{not between exclusive|}}}|4|{{{last or not between|}}}{{{not between|}}}{{{first or not between|}}}{{{after or last|}}}{{{after|}}}{{{not between exclusive|}}}}} {{Template doc}} {{usedwp|Template:DATE2COMP}}