Difference between revisions of "Template:Dow date to use"
From Geohashing
imported>Tjtrumpet2323 |
imported>Tjtrumpet2323 (hopefully this fixes all the errors... maybe not) |
||
Line 1: | Line 1: | ||
− | {{ #ifexpr: {{ #time: N | {{{1|{{CURRENTTIMESTAMP}} }}} }} >= 6 | + | {{#ifexpr: ({{{30w|0}}} = 1) or ({{{30w|0}}} = 0 and {{#time:N|{{{1|{{CURRENTTIMESTAMP}}}}} }} >= 6) |
− | | {{ | + | | {{#vardefine:base|{{Previous weekday|{{{1|{{CURRENTTIMESTAMP}}}}} }} }} |
− | | {{ | + | | {{#vardefine:base|{{{1|{{CURRENTTIMESTAMP}}}}} }} |
− | }}<noinclude> | + | }}{{#ifeq: {{Dow holiday|{{#var:base}}}} | 1 | {{#var:base}} | {{Previous weekday|{{#var:base}}}} }}<noinclude> |
== Usage == | == Usage == | ||
{{intricate}} | {{intricate}} |
Revision as of 20:17, 8 July 2008
2024-11-21
Usage
This template employs features of template syntax, some of which may be too intricate for novices. Please discuss any shortcomings or faults of this template on its talk page before making any changes. You are also encouraged to contact the original creator via their user page prior to editing this template. If changes are necessary, please familiarise yourself with the template’s setup and WikiMedia parser functions before attempting to edit, or contact someone with knowledge of template syntax.
If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. |
{{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.
- Defaults to not using 30W rule (i.e., gives coords for west of 30W). For east of 30W, use
- Considers Dow holidays (progammatically determined by Template:Dow holiday).