Difference between revisions of "Template:Holiday2"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(use tmbox)
imported>Frietjes
m (fix strange date errors)
Line 6: Line 6:
 
== Usage ==
 
== Usage ==
 
*'''<nowiki>{{Holiday2}}</nowiki>'''
 
*'''<nowiki>{{Holiday2}}</nowiki>'''
*'''<nowiki>{{</nowiki>Holiday2|till={{#expr:({{CURRENTDAY}} mod 31)+7}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki>'''
+
*'''<nowiki>{{</nowiki>Holiday2|till={{#time:j F Y|+2 weeks}}<nowiki>}}</nowiki>'''
*'''<nowiki>{{</nowiki>Holiday2|from={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}}|till={{NEXTWEEKDAYMONTH}} {{CURRENTYEAR}}<nowiki>}}</nowiki>'''
+
*'''<nowiki>{{</nowiki>Holiday2|from={{#time:j F Y}}|till={{#time:j F Y|+1 week}}<nowiki>}}</nowiki>'''
  
 
An optional '''bgcol=''' field can also be used to specify the background color of the box, either using a color name (e.g. "green") or by color number (e.g. "#00FF00"). See [[WP:COLOR]] for details.
 
An optional '''bgcol=''' field can also be used to specify the background color of the box, either using a color name (e.g. "green") or by color number (e.g. "#00FF00"). See [[WP:COLOR]] for details.

Revision as of 16:28, 29 August 2012

Usage

  • {{Holiday2}}
  • {{Holiday2|till=30 January 2026}}
  • {{Holiday2|from=16 January 2026|till=23 January 2026}}

An optional bgcol= field can also be used to specify the background color of the box, either using a color name (e.g. "green") or by color number (e.g. "#00FF00"). See WP:COLOR for details.

An optional img= field can also be used to specify the image of the box.