模块:Submit an edit request/doc

来自决策链云智库
< 模块:Submit an edit request
Zeroclanzhang讨论 | 贡献2024年1月20日 (六) 20:36的版本 (创建页面,内容为“{{used in system}} {{Lua|Module:Redirect|Module:Effective protection level|Module:String|Module:Arguments|Module:Clickable button 2}} This module implements the {{tl|submit an edit request}} and {{tl|submit an edit request/link}} templates. == Usage from wikitext == To use this module from wikitext, you should normally use the {{Template link|Submit an edit request}} and {{Template link|Submit an edit request/link}} templates. However, the module can also be…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

这是模块:Submit an edit request的文档页面

This module implements the {{submit an edit request}} and {{submit an edit request/link}} templates.

Usage from wikitext

To use this module 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.

local mEditRequest = require('Module:Submit an edit request')

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

mEditRequest._button(args)
mEditRequest._link(args)

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.