Changes

1,377 bytes added ,  05:01, 16 July 2021
Pywikibot 6.4.0
{{Module rating |alpha <!-- Values: pre-alpha • alpha • beta • release • protected -- If a rating not needed/relevant, delete this template call -->}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==

<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|read|''archive''}}

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

<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|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.

<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|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.

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->

}}</includeonly>