The DOW value is a numeric value representing the Days Of the Week:
Sunday:0
This is convenient for crafting simple weekly queue systems.
MediaWiki[]
The DOW value is called in MediaWiki:
- {{CURRENTDOW}}
Current DOW value: 5
WikiaPerl[]
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[]
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: Friday
gen.pl[]
In the GEN.pm module, gen.pl works from a hash:
%Weekday=($DOW=>@DayName);
It then produces template, {{WEEK}}:
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.