Difference between revisions of "Template:Dow date to use"

From Geohashing
imported>Tjtrumpet2323
m
imported>Tjtrumpet2323
m
Line 1: Line 1:
{{ #ifexpr: {{ #time: N | {{{1|{{CURRENTTIMESTAMP}} }}} }} >= 5
+
{{ #ifexpr: {{ #time: N | {{{1|{{CURRENTTIMESTAMP}} }}} }} >= 6
 
| {{Dow date to use/isWeekend|{{{1|{{CURRENTTIMESTAMP}} }}}|30w={{{30w|0}}} }} <!-- is a Saturday/Sunday, use Friday, but check holidays first -->
 
| {{Dow date to use/isWeekend|{{{1|{{CURRENTTIMESTAMP}} }}}|30w={{{30w|0}}} }} <!-- is a Saturday/Sunday, use Friday, but check holidays first -->
 
| {{Dow date to use/isWeekday|{{{1|{{CURRENTTIMESTAMP}} }}}|30w={{{30w|0}}} }} <!-- is a weekday, use self, but check holidays first -->
 
| {{Dow date to use/isWeekday|{{{1|{{CURRENTTIMESTAMP}} }}}|30w={{{30w|0}}} }} <!-- is a weekday, use self, but check holidays first -->

Revision as of 05:21, 25 May 2008

Template:Dow date to use/considerHolidays

Usage

{{Dow date to use|2008-05-25|30w=0}}

  • Defaults to current date. Use parameter in yyyy-mm-dd format for other dates.
  • Considers weekends and backwards-compatible 30W rule.
    • Defaults to not using 30W rule (i.e., gives coords for west of 30W). For east of 30W, use 30w=1 parameter.
  • Considers Dow holidays found at Template:Dow date to use/considerHolidays.