Vorlage:Event item: Unterschied zwischen den Versionen

Aus Open Source Ecology - Germany
Zur Navigation springen Zur Suche springen
(SMW als subobject)
Zeile 6: Zeile 6:
 
  <b>|start=</b>
 
  <b>|start=</b>
 
  |end=
 
  |end=
 +
|type=
 
  |description=
 
  |description=
 
  |color=
 
  |color=
Zeile 11: Zeile 12:
 
  |coordinates=
 
  |coordinates=
 
  |location=
 
  |location=
|type=
 
 
  <nowiki>}}</nowiki>
 
  <nowiki>}}</nowiki>
 +
 +
== Abhängigkeiten ==
 +
 +
* [[mediawikiwiki:extension:SemanticMediaWiki]], [[mediawikiwiki:extension:SemanticResultsFormat]], [[mediawikiwiki:extension:Maps]]
 +
* [[{{ns:property}}:Has event]]
 +
* [[{{ns:property}}:Has event description]]
 +
* [[{{ns:property}}:Has event type]]
 +
* [[{{ns:property}}:Has event location]]
 +
* [[{{ns:property}}:Has event geocoordinates]]
 +
* [[{{ns:property}}:Has event start]]
 +
* [[{{ns:property}}:Has event end]]
 +
* [[{{ns:property}}:Has event icon]]
 +
* [[{{ns:property}}:Has event color]]
 +
 
Klick auf „Bearbeiten“, um den Quelltext der Vorlage anzusehen.
 
Klick auf „Bearbeiten“, um den Quelltext der Vorlage anzusehen.
  
Zeile 19: Zeile 33:
 
<table class="wikitable">
 
<table class="wikitable">
 
<tr><td colspan="2"><!--  
 
<tr><td colspan="2"><!--  
-->{{#if:{{{icon|}}}|[[Has event icon::{{{icon|}}}| ]] [[{{{icon|}}}|x20px|left|{{{title|}}}]]}}<!--  
+
-->{{#if:{{{icon|}}}|[[{{{icon|}}}|x20px|left|{{{title|}}}]]}}<!--  
-->{{#if:{{{type|}}}|''[[Has event type::{{{type|}}}]]:'' <nowiki></nowiki>}}<!--  
+
-->{{#if:{{{type|}}}|''{{{type|}}}:'' <nowiki></nowiki>}}<!--  
-->[[Has event::{{{title|}}}]]<!--  
+
-->{{{title|}}}<!--  
 
--></td></tr>
 
--></td></tr>
 
<tr>
 
<tr>
Zeile 27: Zeile 41:
 
<td>
 
<td>
 
{{#if: {{{end|}}}
 
{{#if: {{{end|}}}
|''Beginn:''&nbsp;[[Has event start::{{{start|}}}]] ''Ende:''&nbsp;[[Has event end::{{{end|}}}]]
+
|''Beginn:''&nbsp;{{{start|}}} ''Ende:''&nbsp;{{{end|}}}
|[[Has event start::{{{start|}}}]]
+
|{{{start|}}}
 
}}
 
}}
 
</td>
 
</td>
Zeile 35: Zeile 49:
 
|<tr>
 
|<tr>
 
<td><i>Was?</i></td>
 
<td><i>Was?</i></td>
<td>[[Has event description::{{{description|}}}]]</td>
+
<td>{{{description|}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
Zeile 41: Zeile 55:
 
|<tr>
 
|<tr>
 
<td><i>Wo?</i></td>
 
<td><i>Wo?</i></td>
<td>[[Has event location::{{{location|}}}]]</td>
+
<td>{{{location|}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
Zeile 52: Zeile 66:
 
</table><!--  
 
</table><!--  
  
   set silently properties
+
   set properties in subobject
-->{{#if:{{{color|}}}|[[Has event color::{{{color|}}}| ]]}}<!--  
+
 
-->{{#if:{{{coordinates|}}}|[[Has event geocoordinates::{{{coordinates|}}}| ]]}}
+
-->{{#subobject:
 +
|Has event={{{title|}}}
 +
|Has event description={{{description|}}}
 +
|Has event start={{{start|}}}
 +
|Has event end={{{end|}}}
 +
|Has event type={{{type|}}}
 +
|Has event location={{{location|}}}
 +
|Has event geocoordinates={{{coordinates|}}}
 +
|Has event icon={{#if: {{{icon|}}}
 +
  |{{{icon|}}}
 +
  |<!-- {{#switch: {{{type|}}}
 +
  |Besprechung =File:Event-meeting-icon.png
 +
  |Presentation=File:Event-presentation-icon.png
 +
  |Talk=File:Event-talk-icon.png }} -->
 +
  }}
 +
|Has event color={{#switch: {{{type|}}}
 +
  |#default=#76b82a
 +
  }}
 +
}}
 
</includeonly>
 
</includeonly>

Version vom 25. Mai 2018, 22:08 Uhr

Dies ist die Vorlage „Event“. Sie hat folgende Vorlagenparameter (Pflichtparameter in fett und optionale normal):

{{Event
|title=
|start=
|end=
|type=
|description=
|color=
|icon=
|coordinates=
|location=
}}

Abhängigkeiten

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