Vorlage:Event item: Unterschied zwischen den Versionen

Aus Open Source Ecology - Germany
Zur Navigation springen Zur Suche springen
(Layout)
(Layout & wiederkehrendes Ereignis + formlink)
Zeile 30: Zeile 30:
 
* [[mediawikiwiki:extension:Maps|extension:Maps]]
 
* [[mediawikiwiki:extension:Maps|extension:Maps]]
 
* [[mediawikiwiki:extension:Page Forms|extension:Page Forms]]
 
* [[mediawikiwiki:extension:Page Forms|extension:Page Forms]]
 +
* [[mediawikiwiki:extension:Variables|extension:Variables]]
  
 
Attribute
 
Attribute
 
* [[{{ns:property}}:Has date]]
 
* [[{{ns:property}}:Has date]]
 +
* [[{{ns:property}}:Has group]]
 
* [[{{ns:property}}:Has event]]
 
* [[{{ns:property}}:Has event]]
 
* [[{{ns:property}}:Has event description]]
 
* [[{{ns:property}}:Has event description]]
Zeile 50: Zeile 52:
  
 
[[Kategorie: Kalendereigenschaften]]
 
[[Kategorie: Kalendereigenschaften]]
</noinclude><includeonly>
+
</noinclude><includeonly><!--
<table class="booktable">
+
-->{{#vardefine: recurringUnitStandardized|{{#switch: {{LC:{{{recurring unit|}}}}}
 +
  |day|days|tag|tage=day
 +
  |week|weeks|woche|wochen=week
 +
  |year|years|jahr|jahre=year
 +
  |month|months|monat|monate=month
 +
  |#default=day
 +
  }}
 +
}}<table class="booktable">
 
<tr><th colspan="2"><!--  
 
<tr><th colspan="2"><!--  
 
-->{{#if:{{{icon|}}}|[[{{{icon|}}}|x20px|left|{{{title|}}}]]}}<!--  
 
-->{{#if:{{{icon|}}}|[[{{{icon|}}}|x20px|left|{{{title|}}}]]}}<!--  
-->{{#if:{{{type|}}}|''{{{type|}}}:'' <nowiki></nowiki>}}<!--
 
 
-->{{{title|}}}<!--  
 
-->{{{title|}}}<!--  
--></th></tr>
+
-->{{#if:{{{type|}}}|<nowiki></nowiki> ({{{type|}}})}}<!--
 +
--> <span class="noprint">{{#formlink:
 +
    form=Event item<!--
 +
    -->|link text=[[File:Edit-pencil (OSEG-green, Papirus desktop theme, accessories-text-editor).svg|x16px|link=]]<!--
 +
    -->|target={{FULLPAGENAME}}<!--
 +
    -->|tooltip=Diesen Kalendereintrag bearbeiten<!--
 +
  -->}}</span></th></tr>
 
<tr>
 
<tr>
 
<td><i>Wann?</i></td>
 
<td><i>Wann?</i></td>
Zeile 85: Zeile 99:
 
     -->|{{#time: l d. F Y |{{{end|}}}}}
 
     -->|{{#time: l d. F Y |{{{end|}}}}}
 
     }}
 
     }}
 +
  }}
 +
}}{{#switch: {{LC:{{{recurring type|}}}}}
 +
|1|recurring|wiederkehrend=<br />''Hinweis:'' der Termine wiederholt sich {{#switch: {{#var: recurringUnitStandardized}}
 +
  |day={{PLURAL:{{{recurring period|1}}}|jeden Tag|alle {{{recurring period|1}}} Tage}}
 +
  |week={{PLURAL:{{{recurring period|1}}}|jede Woche|alle {{{recurring period|1}}} Wochen}}
 +
  |month={{
 +
  #ifexpr: {{{recurring week number|}}} + 0 > 0<!--
 +
  then positive week number within week
 +
    -->|an jedem {{{recurring week number|}}}. {{#time: l|{{{start|}}}}} im Monat<!--
 +
  else 0==0 or < 0
 +
    -->|{{
 +
    #ifexpr: {{{recurring week number|}}} + 0 < 0<!--
 +
    then negative week number within week
 +
      -->|an jedem {{#switch:{{{recurring week number|}}}|-1=letzten|#default={{{recurring week number|}}}.–letzten}} {{#time: l|{{{start|}}}}} im Monat<!--
 +
    else equals 0
 +
      -->|{{PLURAL:{{{recurring period|1}}}|jeden Monat|alle {{{recurring period|1}}} Monate}}
 +
    }}
 +
  }}
 +
  |year={{PLURAL:{{{recurring period|1}}}|jedes Jahr|alle {{{recurring period|1}}} Jahre}}
 +
  |#default=
 
   }}
 
   }}
 
}}
 
}}
Zeile 113: Zeile 147:
 
-->{{#subobject:
 
-->{{#subobject:
 
|Has event={{{title|}}}
 
|Has event={{{title|}}}
 +
|Has group=einmaliges Ereignis@de
 
|Has event start={{{start|}}}
 
|Has event start={{{start|}}}
 
|Has event end={{{end|}}}
 
|Has event end={{{end|}}}
Zeile 133: Zeile 168:
 
   |property=Has date
 
   |property=Has date
 
   |Has event={{{title|}}}
 
   |Has event={{{title|}}}
 +
  |Has group=wiederkehrendes Ereignis@de
 
   |Has event type={{{type|}}}
 
   |Has event type={{{type|}}}
 
   |Has event start={{{start|}}}
 
   |Has event start={{{start|}}}
Zeile 143: Zeile 179:
 
   |start={{{recurring start|}}}
 
   |start={{{recurring start|}}}
 
   |end={{{recurring end|}}}
 
   |end={{{recurring end|}}}
   |unit={{#switch: {{LC:{{{recurring unit|}}}}}
+
   |unit={{#var: recurringUnitStandardized}}
    |day|days|tag|tage=day
 
    |week|weeks|woche|wochen=week
 
    |year|years|jahr|jahre=year
 
    |month|months|monat|monate=month
 
    |#default=day
 
    }}
 
 
   |period={{{recurring period|1}}}
 
   |period={{{recurring period|1}}}
 
   |week number={{{recurring week number|}}}
 
   |week number={{{recurring week number|}}}

Version vom 28. Mai 2018, 15:05 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

Vorlagen/Formulare:

Klick auf „Bearbeiten“, um den Quelltext der Vorlage anzusehen.