Vorlage:Calendar item: Unterschied zwischen den Versionen
Aus DIQA-Homepage
(Added to the wiki via WikiImport-Script.) |
|||
(5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 10: | Zeile 10: | ||
}} | }} | ||
</pre> | </pre> | ||
− | |||
{{Calendar_item | {{Calendar_item | ||
Zeile 17: | Zeile 16: | ||
|start=13:30 | |start=13:30 | ||
|end=13:50 | |end=13:50 | ||
+ | }} | ||
+ | |||
+ | {{Calendar_item | ||
+ | |page=Main Page | ||
+ | |date= | ||
+ | |start= | ||
+ | |end= | ||
+ | |date_text=September 2020 | ||
+ | |start_text=offen | ||
}} | }} | ||
</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;">{{#time: j |{{{date| }}}|de}}. {{#time: F |{{{date|}}}|de}} {{#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;"> {{{start| }}}{{#if:{{{end| }}}| <br />-{{{end| }}}|}}</span>]]</div></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;"> |
+ | {{#if:{{{date_text| }}}|{{{date_text}}}|{{#time: j |{{{date| }}}|de}}. {{#time: F |{{{date|}}}|de}} {{#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;"> {{#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 }}