Module:Motd/doc

MyWikiBiz, Author Your Legacy — Monday October 07, 2024
< Module:Motd
Revision as of 05:01, 16 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This is the documentation page for Module:Motd

Template:Module rating

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.