Module:Submit an edit request/doc

MyWikiBiz, Author Your Legacy — Wednesday December 04, 2024
< Module:Submit an edit request
Revision as of 07:28, 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:Submit an edit request

Template:Used in system Template:Lua This module implements the {{submit an edit request}} and {{submit an edit request/link}} templates.

Usage from wikitext

To use this template from wikitext, you should normally use the {{submit an edit request}} and {{submit an edit request/link}} templates. However, the module can also be used directly from #invoke. For the edit request button, use {{#invoke:Submit an edit request|button|args}}, and for the edit request link only, use {{#invoke:Submit an edit request|link|args}}. Please see the respective template pages for a list of available parameters.

Usage from Lua modules

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

<syntaxhighlight lang="lua"> local mEditRequest = require('Module:Submit an edit request') </syntaxhighlight>

You can then use the _button function to generate an edit request button, and the _link function to generate an edit request link.

<syntaxhighlight lang="lua"> mEditRequest._button(args) mEditRequest._link(args) </syntaxhighlight>

The args variable should be a table containing the arguments to pass to the module. To see the different arguments that can be specified and how they affect the module output, please refer to the documentation of {{Submit an edit request}} and {{Submit an edit request/link}}.

Configuration

This module can be translated and configured for other wikis by editing Module:Submit an edit request/config.