Vorlage:Calendar item: Unterschied zwischen den Versionen

Aus DIQA-Homepage
Wechseln zu:Navigation, Suche
 
Zeile 28: Zeile 28:
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
<div style="float:left; margin-top:2px; margin-right:12px; padding:3px;width:140px;height:140px;">[[{{{page| }}}|<span style="float:left; width:100%;height:20%;color:#FFF;font-size:13px;font-weight:bold;text-align:center;line-height:17px;padding-top:5px;background: #ff4242;border-radius: 5px 5px 0 0; box-shadow:1px 1px 1px #666;">
 
<div style="float:left; margin-top:2px; margin-right:12px; padding:3px;width:140px;height:140px;">[[{{{page| }}}|<span style="float:left; width:100%;height:20%;color:#FFF;font-size:13px;font-weight:bold;text-align:center;line-height:17px;padding-top:5px;background: #ff4242;border-radius: 5px 5px 0 0; box-shadow:1px 1px 1px #666;">
{{#if:{{{date_text| }}}|{{{date_text}}}|{{#time: j |{{{date| }}}|de}}.&nbsp;{{#time: F |{{{date|}}}|de}}&nbsp;{{#time: Y |{{{date|}}}|de}}}}</span>]]<br/>[[{{{page| }}}|<span style="float:left; width:100%;color:#545050;font-size:36px;font-weight:bold;text-align:left;line-height:36px;padding:10px;background: #f5f5f5;border-radius: 0 0 5px 5px;box-shadow:1px 1px 1px #666;">&nbsp;{{#if:{{{start_text| }}}|{{{start_text| }}}{{#if:{{{start| }}}|{{{start| }}}|}}{{#if:{{{end| }}}| <br />-{{{end| }}}|}}|}}</span>]]</div></includeonly>
+
{{#if:{{{date_text| }}}|{{{date_text}}}|{{#time: j |{{{date| }}}|de}}.&nbsp;{{#time: F |{{{date|}}}|de}}&nbsp;{{#time: Y |{{{date|}}}|de}}}}</span>]]<br/>[[{{{page| }}}|<span style="float:left; width:100%;color:#545050;font-size:36px;font-weight:bold;text-align:left;line-height:36px;padding:10px;background: #f5f5f5;border-radius: 0 0 5px 5px;box-shadow:1px 1px 1px #666;">&nbsp;{{#if:{{{start_text| }}}|{{{start_text| }}}|{{#if:{{{start| }}}|{{{start| }}}|}}{{#if:{{{end| }}}| <br />-{{{end| }}}|}} }}</span>]]</div></includeonly>

Aktuelle Version vom 9. September 2020, 11:45 Uhr

Hint: if you use ask to generate the date, append "#ISO" to the display statement. In this way, the template will always work independent of language settings, e.g.

Example:

{{Calendar_item
|page=Main Page
|start=2012-12-08
|end=2012-12-15
}}