Difference between revisions of "Template:Dow date to use"
From Geohashing
imported>Tjtrumpet2323 m (testing will continue in the next myriad of edits) |
imported>Tjtrumpet2323 m |
||
Line 1: | Line 1: | ||
{{ #ifexpr: {{ #time: N | {{CURRENTTIMESTAMP}} }} >= 5 | {{ #ifexpr: {{ #time: N | {{CURRENTTIMESTAMP}} }} >= 5 | ||
− | | {{Dow date to use/isWeekend|{{{1}}} }} <!-- is a Saturday/Sunday, use Friday, but check holidays first --> | + | | {{Dow date to use/isWeekend|{{{1}}}|30w={{{30w|0}}} }} <!-- is a Saturday/Sunday, use Friday, but check holidays first --> |
− | | {{Dow date to use/isWeekday|{{{1}}} }} <!-- is a weekday, use own date --> | + | | {{Dow date to use/isWeekday|{{{1}}}|30w={{{30w|0}}} }} <!-- is a weekday, use own date --> |
}} | }} | ||
<noinclude> | <noinclude> | ||
− | |||
== Usage == | == Usage == | ||
− | <code><nowiki>{{Dow date to use|2008-05-25}}</nowiki></code> | + | <code><nowiki>{{Dow date to use|2008-05-25|30w=0}}</nowiki></code> |
* Will (but doesn't yet) consider weekends, holidays, and backwards-compatible [[30W]] rule. | * Will (but doesn't yet) consider weekends, holidays, and backwards-compatible [[30W]] rule. | ||
+ | * Defaults to '''not''' using 30W rule (i.e., gives coords for west of 30W). For east of 30W, use <code><nowiki>30w=1</nowiki></code> parameter. | ||
== Test Nonsense == | == Test Nonsense == | ||
<nowiki>#if: {{{contactEmail|}}} | [mailto:{{{contactEmail}}} {{{contactEmail}}}] | Unknown }}</nowiki> | <nowiki>#if: {{{contactEmail|}}} | [mailto:{{{contactEmail}}} {{{contactEmail}}}] | Unknown }}</nowiki> | ||
</noinclude> | </noinclude> |
Revision as of 04:00, 25 May 2008
Expression error: Unexpected < operator.
Usage
{{Dow date to use|2008-05-25|30w=0}}
- Will (but doesn't yet) consider weekends, holidays, 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.
Test Nonsense
#if: {{{contactEmail|}}} | [mailto:{{{contactEmail}}} {{{contactEmail}}}] | Unknown }}