Vorlage:LinkDatum: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
<noinclude>{{Dokumentation}}</noinclude><!--
<noinclude>{{Dokumentation}}</noinclude><!--
--><noinclude><!--
--><includeonly>{{#invoke:LinkFormDatum|FormatDate}}</includeonly>
-->{{#vardefine:Date.1|{{#explode:{{{1}}}| |0}} }}<!--
-->{{#vardefine:Date.2|{{#explode:{{{1}}}| |1}} }}<!--
-->{{#vardefine:Date.3|{{#explode:{{{1}}}| |2}} }}<!--
-->{{#vardefine:Date.4|{{#explode:{{{1}}}| |3}} }}<!--
 
Move variables around if JL is in there:
-->{{#ifexpr:{{#rpos:{{#var:Date.3}}|JL}} > -1|{{#vardefine:Date.4|{{#var:Date.3}}}} {{#vardefine:Date.3|}} }}<!--
-->{{#ifexpr:{{#rpos:{{#var:Date.2}}|JL}} > -1|{{#vardefine:Date.4|{{#var:Date.2}}}} {{#vardefine:Date.2|}} }}<!--
 
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}} }} }} }}<!--
--></noinclude>
<includeonly>{{#invoke:LinkFormDatum|FormatDate}}</includeonly>