This is a documentation subpage for Module:Motd. It may contain usage information, categories and other content that is not part of the original module page. |
Usage
edit{{#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.