Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:DYK nompage links/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{high-use}} This module produces the list of links used on [[Wikipedia:Did you know]] nomination pages. It implements {{tl|DYK nompage links}}. == Usage from wikitext == Usually, this module should be used via the {{tl|DYK nompage links}} template. However, it can also be used with the syntax <code><nowiki>{{#invoke:DYK nompage links|main|</nowiki>''arguments''<nowiki>}}</nowiki></code>. 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> <var>nominationPage</var> is the nomination page name, as a string. <var>historyPages</var> is an array of page names to display (also strings). Both parameters are required, and <var>historyPages</var> must have a length of at least one. <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| <!-- Categories go here and interwikis go in Wikidata. --> }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:High-use
(
edit
)
Template:Tl
(
edit
)