Module:Motd/doc

From Thetacola Wiki
< Module:Motd
Revision as of 18:19, 24 September 2021 by en>Pppery (Bump rating)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This is the documentation page for Module:Motd

Usage

{{#invoke:Motd|read|archive}}

archives are pages like Wikipedia:Motto_of_the_day/Schedule/Archive_2012. (2012 to 2015)

{{#invoke:Motd|read11|archive}}

archives are pages like Wikipedia:Motto_of_the_day/Schedule/Archive_2009. (up to 2011)

The read routine produces an output that has been manually cut-and-pasted into Module:Motd/data/2012 etc., and in some cases further modified. Ideally, each year should have one motto per day, possibly appropriate to that day. The read function produces the data to paste and the main function calls on this data for its output.

{{#invoke:Motd|main|day = day|year = year}}

Picks a motto. Defaults to 2012 for year, current day for day. Years 2006 to 2015 exist, but 2006, 2014, 2015 themselves don't have a full set of days. Haven't checked the others to be sure either.