Vorlage: ARCHIUM TEMPLATE format timeframe: Unterschied zwischen den Versionen
Aus artux
Artux1zu2>SandroSchwarzentrub |
K (1 Version importiert) |
||
| (7 dazwischenliegende Versionen von 5 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
<!-- ARCHIUM_TEMPLATE_format_timeframe --> | <!-- ARCHIUM_TEMPLATE_format_timeframe --> | ||
<!-- Version | <!-- Version 20220303--> | ||
<!--{{#vardefine:zeitformat|l, j. F Y}}--> | |||
{{#vardefine:zeitformat|j. F Y}} | |||
{{#vardefine:zeitstring| | |||
{{#if:{{{date_from|}}}{{{date_until|}}}<!--Prüfe: Datum überhaupt vorhanden--> | |||
|{{#if: {{{date_until|}}} <!--Prüfe: Enddatum vorhanden--> | |||
|{{#if: {{{date_from|}}} <!--Prüfe: Startdatum vorhanden--> | |||
|{{#ifeq: {{{date_from|}}}|{{{date_until|}}} <!--Prüfe: Startdatum und Enddatum gleich--> | |||
|{{#time:{{#var:zeitformat}}|{{{date_from|}}}}} | |||
|{{#time:{{#var:zeitformat}}|{{{date_from|}}}}} – {{#time:{{#var:zeitformat}}|{{{date_until|}}}}} | |||
}} <!--Prüfe: Kein Startdatum vorhanden--> | |||
|< {{#time:{{#var:zeitformat}}|{{{date_until|}}}}} | |||
}} <!--Prüfe: Kein Enddatum vorhanden--> | |||
|{{#time:{{#var:zeitformat}}|{{{date_from|}}}}} < | |||
}} | |||
}} | |||
}} | |||
{{#vardefine:kommentarstring| | |||
{{#if:{{{date_alt|}}} <!--Prüfe: Alternativtext erwünscht--> | |||
| {{ARCHIUM TEMPLATE filter db2text|{{{date_alt|}}}}} | |||
| | |||
}} | |||
}} | |||
<!-- outputs the given dates inside an archium-ul div | <!-- outputs the given dates inside an archium-ul div | ||
which we format with CSS --> | which we format with CSS --> | ||
< | <includeonly> | ||
{{#if:{{#var:zeitstring}} | |||
|{{#if:{{#var:kommentarstring}} | |||
| <span class="archium-ul" data-toggle="tooltip" title="{{#var:zeitstring}}">{{#var:kommentarstring}}</span> | |||
| <span class="archium-ul">{{#var:zeitstring}}</span> | |||
}} | |||
| | |||
}} | |||
</includeonly> | |||
<noinclude> | <noinclude> | ||
<!-- CALL HOOKS --> | <!-- CALL HOOKS --> | ||
{{ARCHIUM_TEMPLATE_hook| | {{ARCHIUM_TEMPLATE_hook|ARCHIUM_thorax}} | ||
<!-- LICENSE NOTE --> | <!-- LICENSE NOTE --> | ||
<!-- https://www.mediawiki.org/wiki/Extension:Cargo/Storing_data | <!-- https://www.mediawiki.org/wiki/Extension:Cargo/Storing_data | ||
Aktuelle Version vom 28. April 2022, 14:22 Uhr
