Difference between revisions of "Module:DYK nompage links/doc"

MyWikiBiz, Author Your Legacy — Sunday September 07, 2025
Jump to navigationJump to search
(Pywikibot 6.4.0)
 
(No difference)

Latest revision as of 21:15, 15 July 2021

This module produces the list of links used on Wikipedia:Did you know nomination pages. It implements {{DYK nompage links}}.

Usage from wikitext

Usually, this module should be used via the {{DYK nompage links}} template. However, it can also be used with the syntax {{#invoke:DYK nompage links|main|arguments}}. See Template:DYK nompage links for a list of arguments.

Usage from other Lua modules

To use this module from other Lua modules, first load the module:

<syntaxhighlight lang="lua"> local mDYKlinks = require('Module:DYK nompage links') </syntaxhighlight>

You can then use the _main function like this:

<syntaxhighlight lang="lua"> mDYKlinks._main(nominationPage, historyPages) </syntaxhighlight>

nominationPage is the nomination page name, as a string. historyPages is an array of page names to display (also strings). Both parameters are required, and historyPages must have a length of at least one.