Vorlage: ARCHIUM TEMPLATE format timeframe: Unterschied zwischen den Versionen
Aus artux
Artux1zu2>SandroSchwarzentrub |
K (1 Version importiert) |
||
| (16 dazwischenliegende Versionen von 5 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
<div class="archium-ul">{{{ | <!-- ARCHIUM_TEMPLATE_format_timeframe --> | ||
<!-- 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 | |||
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> | |||
<!-- CALL HOOKS --> | |||
{{ARCHIUM_TEMPLATE_hook|ARCHIUM_thorax}} | |||
<!-- LICENSE NOTE --> | |||
<!-- https://www.mediawiki.org/wiki/Extension:Cargo/Storing_data | |||
Distributed under the terms of GNU General Public License, | |||
version 2 (GPL-2.0), https://www.gnu.org/licenses/old-licenses/gpl-2.0.html --> | |||
</noinclude> | |||
Aktuelle Version vom 28. April 2022, 14:22 Uhr
