Vorlage:Event item: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(test: recurring week number auch als “1,3”) |
(Test work around week input: “1,3”) |
||
Zeile 124: | Zeile 124: | ||
|week={{PLURAL:{{{recurring period|1}}}|jede Woche|alle {{{recurring period|1}}} Wochen}} | |week={{PLURAL:{{{recurring period|1}}}|jede Woche|alle {{{recurring period|1}}} Wochen}} | ||
|month={{ | |month={{ | ||
− | #ifexpr: {{#replace:{{{recurring week number|}}}|,|+}} + 0 > 0<!-- | + | #ifexpr: {{#replace:{{{recurring week number|}}}|,|+}} + 0 > 0<!-- work around week input: “1,3” |
then positive week number within week | then positive week number within week | ||
-->|an jedem {{#replace:{{{recurring week number|}}}|,| und }}. {{#time: l|{{{start|}}}}} im Monat<!-- | -->|an jedem {{#replace:{{{recurring week number|}}}|,| und }}. {{#time: l|{{{start|}}}}} im Monat<!-- | ||
Zeile 135: | Zeile 135: | ||
-->|{{PLURAL:{{{recurring period|1}}}|jeden Monat|alle {{{recurring period|1}}} Monate}} | -->|{{PLURAL:{{{recurring period|1}}}|jeden Monat|alle {{{recurring period|1}}} Monate}} | ||
}} | }} | ||
− | }} | + | }}<!-- if: recurring week number --> |
|year={{PLURAL:{{{recurring period|1}}}|jedes Jahr|alle {{{recurring period|1}}} Jahre}} | |year={{PLURAL:{{{recurring period|1}}}|jedes Jahr|alle {{{recurring period|1}}} Jahre}} | ||
|#default= | |#default= | ||
Zeile 273: | Zeile 273: | ||
-->{{#switch: {{LC:{{{recurring type|}}}}} | -->{{#switch: {{LC:{{{recurring type|}}}}} | ||
− | |1|recurring|wiederkehrend={{#set_recurring_event:Wiederkehrend: {{#replace:{{{title|}}}|+|+}}<!-- Kommentar: + zu full width plus ersetzen + | + | |1|recurring|wiederkehrend={{#if: {{#pos: {{{recurring week number}}}|,}}<!-- |
+ | THEN-->|{{#arraymap: {{{recurring week number}}}<!-- | ||
+ | -->|,<!-- sep , | ||
+ | -->|ω<!-- assign ω as temporary var | ||
+ | -->|{{#set_recurring_event: Wiederkehrend: {{#replace:{{{title|}}}|+|+}}<!-- Kommentar: + zu full width plus ersetzen + | ||
+ | -->|property=Has date | ||
+ | |Has event={{{title|}}} | ||
+ | |Has group=wiederkehrendes Ereignis@de | ||
+ | |Has event type={{{type|}}} | ||
+ | |Has event start={{{start|}}} | ||
+ | |Has event end={{{end|}}} | ||
+ | |Has event location={{{location|}}} | ||
+ | |Has event icon={{#if: {{{icon|}}} | ||
+ | |File:{{#explode:{{{icon|}}}|:|-1}} | ||
+ | |<!-- {{#switch: {{{type|}}} | ||
+ | |Besprechung =File:Event-meeting-icon.png | ||
+ | |Präsentation=File:Event-presentation-icon.png | ||
+ | |Talk=File:Event-talk-icon.png }} --> | ||
+ | }} | ||
+ | |Has event color={{Event item/color by type|{{{type|}}}}} | ||
+ | |Has event description={{{description|}}} | ||
+ | |Has event geocoordinates={{{coordinates|}}} | ||
+ | |Has monolingual keyword list={{#if: {{{keywords|}}}|{{{keywords|}}}@de}} | ||
+ | |Has keyword list={{{keywords|}}} | ||
+ | |start={{{recurring start|}}} | ||
+ | |end={{{recurring end|}}} | ||
+ | |unit={{#var: recurringUnitStandardized}} | ||
+ | |period={{{recurring period|1}}} | ||
+ | |week number=ω<!-- single week number --> | ||
+ | |limit={{{recurring limit|}}}<!-- end: supersedes this limit --> | ||
+ | |include={{{recurring include datetimes|}}} | ||
+ | |exclude={{{recurring exclude datetimes|}}} | ||
+ | }}<!--output | ||
+ | -->|<!--arraymap output sep | ||
+ | -->}}<!-- end arraymap | ||
+ | |||
+ | ELSE-->|<!-- | ||
+ | -->{{#set_recurring_event: Wiederkehrend: {{#replace:{{{title|}}}|+|+}}<!-- Kommentar: + zu full width plus ersetzen + | ||
-->|property=Has date | -->|property=Has date | ||
|Has event={{{title|}}} | |Has event={{{title|}}} | ||
Zeile 301: | Zeile 338: | ||
|include={{{recurring include datetimes|}}} | |include={{{recurring include datetimes|}}} | ||
|exclude={{{recurring exclude datetimes|}}} | |exclude={{{recurring exclude datetimes|}}} | ||
− | }}<!-- | + | }} |
+ | }}<!-- if pos , recurring week number | ||
+ | |||
+ | --><!-- | ||
<div class="debug" style="display:none"> | <div class="debug" style="display:none"> | ||
wiederkehrend-{{{title|}}} | wiederkehrend-{{{title|}}} |
Version vom 28. Juni 2020, 12:50 Uhr
Dies ist die Vorlage „Event item“. Sie hat folgende Vorlagenparameter (Pflichtparameter in fett und optionale normal):
{{Event item |title= |start= |end= |type= |description= |color= |icon= |coordinates= |location= |keywords= |recurring type= |recurring unit= |recurring period= |recurring week number= |recurring start= |recurring end= |recurring limit= |recurring include datetimes= |recurring exclude datetimes= }}
Technische Abhängigkeiten
Erweiterungen
- extension:SemanticMediaWiki
- extension:SemanticResultFormats
- extension:Maps
- extension:Page Forms
- extension:Variables
Attribute
- Attribut: Has date
- Attribut: Has group
- Attribut: Has monolingual keyword
- Attribut: Has keyword
- Attribut: Has monolingual keyword list
- Attribut: Has keyword list
- Attribut: Has event
- Attribut: Has event description
- Attribut: Has event type
- Attribut: Has event location
- Attribut: Has event geocoordinates
- Attribut: Has event start
- Attribut: Has event end
- Attribut: Has event icon
- Attribut: Has event color
Vorlagen/Formulare:
- Vorlage: Event item/color by type
- Vorlage: Logo
- Vorlage: Stichwörter
- Vorlage: BrowseByAskQueryPreviousNext
- Formular: Event item
Dateien:
Layout:
- CSS-Klassen booktable, vertical-align-top
Klick auf „Bearbeiten“, um den Quelltext der Vorlage anzusehen.