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

From Geohashing
imported>Tjtrumpet2323
(hopefully this fixes all the errors... maybe not)
imported>Tjtrumpet2323
Line 1: Line 1:
{{#ifexpr: ({{{30w|0}}} = 1) or ({{{30w|0}}} = 0 and {{#time:N|{{{1|{{CURRENTTIMESTAMP}}}}} }} >= 6)
+
{{#ifexpr: ({{{30w|0}}} = 1 and {{#time:Ymd|{{{1|{{CURRENTTIMESTAMP}}}}} }} >= 20080527) or ({{#time:N|{{{1|{{CURRENTTIMESTAMP}}}}} }} >= 6)
 
| {{#vardefine:base|{{Previous weekday|{{{1|{{CURRENTTIMESTAMP}}}}} }} }}
 
| {{#vardefine:base|{{Previous weekday|{{{1|{{CURRENTTIMESTAMP}}}}} }} }}
 
| {{#vardefine:base|{{{1|{{CURRENTTIMESTAMP}}}}} }}
 
| {{#vardefine:base|{{{1|{{CURRENTTIMESTAMP}}}}} }}

Revision as of 21:18, 8 July 2008

20240329064020

Usage

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

  • Defaults to using 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.
    • Does not apply 30W rule prior to 2008-05-27, even if parameter is passed.
  • Considers Dow holidays (progammatically determined by Template:Dow holiday).