FANDOM


The DOW value is a numeric value representing the Days Of the Week:

Sunday:0

  1. Monday:1
  2. Tuesday:2
  3. Wednesday:3
  4. Thursday:4
  5. Friday:5
  6. Saturday:6

This is convenient for crafting simple weekly queue systems.

MediaWiki Edit

The DOW value is called in MediaWiki:

  • {{CURRENTDOW}}

Current DOW value: 3

WikiaPerl Edit

The script, gen.pl generates an octal reference...

$DOW=(0..7);

Use of 7 in an octal schema produces a null, which can be used as a placeholder for a valid week. This can come in handy, Saturday night at midnight. See Chronology

GEN.pm Edit

In WikiaPerl, the current friendly name equivalent of the DOW value is presented as an array:

@DayName=(Sunday..Saturday);

The Day name is called in MediaWiki:

  • {{CURRENTDAYNAME}}

Current DOW value: Wednesday

gen.pl Edit

In the GEN.pm module, gen.pl works from a hash:

%Weekday=($DOW=>@DayName);

It then produces template, {{WEEK}}:

WeekBots:
0 - Su 1 - M 2 - Tu 3 - W 4 - Th 5 - F 6 - Sa

Template:WEEK then becomes a building-block within the chronological structure of WikiaPerl.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.