Vorlage:LinkDatum: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 5: Zeile 5:
-->{{#vardefine:Date.3|{{#explode:{{{1}}}| |2}} }}<!--
-->{{#vardefine:Date.3|{{#explode:{{{1}}}| |2}} }}<!--
-->{{#vardefine:Date.4|{{#explode:{{{1}}}| |3}} }}<!--
-->{{#vardefine:Date.4|{{#explode:{{{1}}}| |3}} }}<!--
-->{{#rpos:{{#var:Date.4}}|JL}} * {{#rpos:{{#var:Date.3}}|JL}} * {{#rpos:{{#var:Date.2}}|JL}} * {{#rpos:{{#var:Date.1}}|JL}}<!--
 
-->{{#ifexpr:{{#rpos:{{#var:Date.2}}|JL}} > -1|Greater| }}<!--
Move variables around if JL is in there:
-->{{#if:{{#var:Date.3}}|[[{{#var:Date.1}}. {{#var:Date.2}}]] [[{{#var:Date.3}}]]|<!--
-->{{#ifexpr:{{#rpos:{{#var:Date.3}}|JL}} > -1|{{#vardefine:Date.4|{{#var:Date.3}}}} {{#vardefine:Date.3|}} }}<!--
-->{{#if:{{#var:Date.2}}|{{#var:Date.1}} [[{{#var:Date.2}}]]|<!--
-->{{#ifexpr:{{#rpos:{{#var:Date.2}}|JL}} > -1|{{#vardefine:Date.4|{{#var:Date.2}}}} {{#vardefine:Date.2|}} }}<!--
-->{{#if:{{#var:Date.1}}|[[{{#var:Date.1}}]]}}}}}}<!--
 
Show 'em all:
-->{{#if:{{#var:Date.3}}|[[{{#var:Date.1}}. {{#var:Date.2}}]] [[{{#var:Date.3}}]] {{#var:Date.4}}|<!--
-->{{#if:{{#var:Date.2}}|{{#var:Date.1}} [[{{#var:Date.2}}]] {{#var:Date.4}}|<!--
-->{{#if:{{#var:Date.1}}|[[{{#var:Date.1}}]] {{#var:Date.4}} }} }} }}<!--
--></includeonly>
--></includeonly>