Vorlage:Event item: Unterschied zwischen den Versionen

Aus Open Source Ecology - Germany
Zur Navigation springen Zur Suche springen
(+{{Stichwörter}})
(Fix icon with prefixed File:)
Zeile 73: Zeile 73:
 
<table class="booktable vertical-align-top">
 
<table class="booktable vertical-align-top">
 
<tr><th colspan="2"><!--  
 
<tr><th colspan="2"><!--  
-->{{#if:{{{icon|}}}|[[{{{icon|}}}|x20px|left|{{{title|}}}]]}}<!--  
+
-->{{#if:{{{icon|}}}|[[File:{{#explode:{{{icon|}}}|:|-1}}|x20px|left|{{{title|}}}]]}}<!--  
 
-->{{{title|}}}<!--  
 
-->{{{title|}}}<!--  
 
-->{{#if:{{{type|}}}|<nowiki></nowiki> ({{{type|}}})}}<!--  
 
-->{{#if:{{{type|}}}|<nowiki></nowiki> ({{{type|}}})}}<!--  
Zeile 174: Zeile 174:
 
|Has event location={{{location|}}}
 
|Has event location={{{location|}}}
 
|Has event icon={{#if: {{{icon|}}}
 
|Has event icon={{#if: {{{icon|}}}
   |{{{icon|}}}
+
   |File:{{#explode:{{{icon|}}}|:|-1}}
 
   |<!-- {{#switch: {{{type|}}}
 
   |<!-- {{#switch: {{{type|}}}
 
   |Besprechung =File:Event-meeting-icon.png
 
   |Besprechung =File:Event-meeting-icon.png
Zeile 197: Zeile 197:
 
   |Has event end={{{end|}}}
 
   |Has event end={{{end|}}}
 
   |Has event location={{{location|}}}
 
   |Has event location={{{location|}}}
   |Has event icon={{{icon|}}}
+
   |Has event icon=File:{{#explode:{{{icon|}}}|:|-1}}
 
   |Has event color={{Event item/color by type|{{{type|}}}}}
 
   |Has event color={{Event item/color by type|{{{type|}}}}}
 
   |Has event description={{{description|}}}
 
   |Has event description={{{description|}}}

Version vom 19. Juli 2018, 20:32 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

Attribute

Vorlagen/Formulare:

Layout:

  • CSS-Klassen booktable, vertical-align-top

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