Perl Wiki:2006/38/Wednesday
From Perl Wiki
MediaWiki allows us to build dynamic pages through the use of templates and variables.
The code, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} produces:
- 28 August 2008
The code {{Q}} produces:
- 2008/35/Thursday
Q is a convenience for weekly things such as current events. It uses the year/week/dayname format. It is made from:
- {{CURRENTYEAR}}/{{CURRENTWEEK}}/{{CURRENTDAYNAME}}
We're going to make another template, Queue that auto-generates the 11 July 2006 format.
Now we have a way to make a versitile day/week/month/year counter for automating functions here at the Perl Wiki. For the Perl Wiki:Record, we generate a {{DQ}} or Day Queue like so:
- [[{{Q}}|{{Queue}}]]
Now we have a page:
- Thursday in the Main Namespace here at Perl Wiki.
Of course that link is red. 20 September 2006 is its location.
Stay tuned! We're going to work on using Q, Queue and DQ along with Perl to build a new dynamic Main Page, unlike any other!