Vorlage:Event item: Unterschied zwischen den Versionen
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= | ||
− | |||
<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|}}}| | + | -->{{#if:{{{icon|}}}|[[{{{icon|}}}|x20px|left|{{{title|}}}]]}}<!-- |
− | -->{{#if:{{{type|}}}|'' | + | -->{{#if:{{{type|}}}|''{{{type|}}}:'' <nowiki></nowiki>}}<!-- |
− | --> | + | -->{{{title|}}}<!-- |
--></td></tr> | --></td></tr> | ||
<tr> | <tr> | ||
Zeile 27: | Zeile 41: | ||
<td> | <td> | ||
{{#if: {{{end|}}} | {{#if: {{{end|}}} | ||
− | |''Beginn:'' | + | |''Beginn:'' {{{start|}}} ''Ende:'' {{{end|}}} |
− | | | + | |{{{start|}}} |
}} | }} | ||
</td> | </td> | ||
Zeile 35: | Zeile 49: | ||
|<tr> | |<tr> | ||
<td><i>Was?</i></td> | <td><i>Was?</i></td> | ||
− | <td> | + | <td>{{{description|}}}</td> |
</tr> | </tr> | ||
}} | }} | ||
Zeile 41: | Zeile 55: | ||
|<tr> | |<tr> | ||
<td><i>Wo?</i></td> | <td><i>Wo?</i></td> | ||
− | <td> | + | <td>{{{location|}}}</td> |
</tr> | </tr> | ||
}} | }} | ||
Zeile 52: | Zeile 66: | ||
</table><!-- | </table><!-- | ||
− | set | + | set properties in subobject |
− | -->{{# | + | |
− | + | -->{{#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
- mediawikiwiki:extension:SemanticMediaWiki, mediawikiwiki:extension:SemanticResultsFormat, mediawikiwiki:extension:Maps
- 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
Klick auf „Bearbeiten“, um den Quelltext der Vorlage anzusehen.