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

From Geohashing
imported>Tjtrumpet2323
(testing)
 
imported>Tjtrumpet2323
m (testing will continue in the next myriad of edits)
Line 1: Line 1:
#if: {{ #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}}} }} <!-- 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}}} }} <!-- is a weekday, use own date -->
Line 13: Line 13:
  
 
== Test Nonsense ==
 
== Test Nonsense ==
#if: {{{contactEmail|}}} | [mailto:{{{contactEmail}}} {{{contactEmail}}}] | Unknown }}
+
<nowiki>#if: {{{contactEmail|}}} | [mailto:{{{contactEmail}}} {{{contactEmail}}}] | Unknown }}</nowiki>
 
</noinclude>
 
</noinclude>

Revision as of 03:55, 25 May 2008

Expression error: Unexpected < operator.


Not yet 30W-compliant.

Usage

{{Dow date to use|2008-05-25}}

  • Will (but doesn't yet) consider weekends, holidays, and backwards-compatible 30W rule.

Test Nonsense

#if: {{{contactEmail|}}} | [mailto:{{{contactEmail}}} {{{contactEmail}}}] | Unknown }}