Vorlage:Event item: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(+week number) |
(Layout) |
||
| Zeile 25: | Zeile 25: | ||
== Abhängigkeiten == | == Abhängigkeiten == | ||
| − | * [[mediawikiwiki:extension:SemanticMediaWiki|extension:SemanticMediaWiki]] | + | Erweiterungen |
| + | * [[mediawikiwiki:extension:SemanticMediaWiki|extension:SemanticMediaWiki]] | ||
| + | * [[mediawikiwiki:extension:SemanticResultFormats|extension:SemanticResultFormats]] | ||
| + | * [[mediawikiwiki:extension:Maps|extension:Maps]] | ||
| + | * [[mediawikiwiki:extension:Page Forms|extension:Page Forms]] | ||
| + | |||
| + | Attribute | ||
* [[{{ns:property}}:Has date]] | * [[{{ns:property}}:Has date]] | ||
* [[{{ns:property}}:Has event]] | * [[{{ns:property}}:Has event]] | ||
| Zeile 37: | Zeile 43: | ||
* [[{{ns:property}}:Has event color]] | * [[{{ns:property}}:Has event color]] | ||
| − | Vorlagen: | + | Vorlagen/Formulare: |
* [[{{ns:template}}:Event item/color by type]] | * [[{{ns:template}}:Event item/color by type]] | ||
| + | * [[{{ns:form}}:Event item]] | ||
Klick auf „Bearbeiten“, um den Quelltext der Vorlage anzusehen. | Klick auf „Bearbeiten“, um den Quelltext der Vorlage anzusehen. | ||
| Zeile 61: | Zeile 68: | ||
start & end | start & end | ||
-->| ''bis:'' {{ | -->| ''bis:'' {{ | ||
| − | + | #ifeq: <!-- at the same day? | |
| − | + | -->{{#explode:{{{start|}}}| }} | {{#explode:{{{end|}}}| }}<!-- | |
| − | -->|{{#time: l d. F Y H:i |{{{end|}}}}} Uhr<!-- | + | then |
| − | + | -->|{{#if: {{#pos:{{{end|}}}|:}}<!-- | |
| − | + | then has time | |
| + | -->|{{#time: H:i |{{{end|}}}}} Uhr<!-- | ||
| + | else has no time, just date | ||
| + | -->| Ende am selben Tag | ||
| + | }}<!-- | ||
| + | else not at the same day | ||
| + | -->|{{ | ||
| + | #if: {{#pos:{{{end|}}}|:}}<!-- | ||
| + | then has time | ||
| + | -->|{{#time: l d. F Y H:i |{{{end|}}}}} Uhr<!-- | ||
| + | else has no time, just date | ||
| + | -->|{{#time: l d. F Y |{{{end|}}}}} | ||
| + | }} | ||
}} | }} | ||
}} | }} | ||
| Zeile 125: | Zeile 144: | ||
|end={{{recurring end|}}} | |end={{{recurring end|}}} | ||
|unit={{#switch: {{LC:{{{recurring unit|}}}}} | |unit={{#switch: {{LC:{{{recurring unit|}}}}} | ||
| − | |day|tag=day | + | |day|days|tag|tage=day |
| − | |week|woche=week | + | |week|weeks|woche|wochen=week |
| − | |year|jahr=year | + | |year|years|jahr|jahre=year |
| − | |month|monat=month | + | |month|months|monat|monate=month |
|#default=day | |#default=day | ||
}} | }} | ||
Version vom 28. Mai 2018, 10:34 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=
|recurring type=
|recurring unit=
|recurring period=
|recurring week number=
|recurring start=
|recurring end=
|recurring limit=
|recurring include datetimes=
|recurring exclude datetimes=
}}
Abhängigkeiten
Erweiterungen
Attribute
- Attribut:Has date
- 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:
Klick auf „Bearbeiten“, um den Quelltext der Vorlage anzusehen.