Module:Request for permission links/doc
![]() | This is a documentation subpage for Module:Request for permission links. It may contain usage information, categories and other content that is not part of the original module page. |
This module implements {{Request for permission links}}. Please see the template page for documentation.
Example appearance
Example (t · th · c · del · cross-wiki · SUL · edit counter · pages created (xtools · sigma) · non-automated edits · BLP edits · undos · manual reverts · rollbacks · logs (blocks · rights · moves) · rfar · spi · cci)
Adding new links
To add a new link, find an empty line in the section between about lines 38 and 92 and add either a link <syntaxhighlight lang="Lua" inline>l[#l+1] = '[URL label]'</syntaxhighlight> or a wikilink <syntaxhighlight lang="Lua" inline>l[#l+1] = 'label'</syntaxhighlight>. However, replace any instance of a username in the link with <syntaxhighlight lang="Lua" inline>'..userURL..'</syntaxhighlight> (for a URL/external link) or <syntaxhighlight lang="Lua" inline>'..username..'</syntaxhighlight> (for a wikilink).
Each new l
(link string) will automatically have a spaced middot between it and the previous link. To skip the spaced dot, add a line before the new link with <syntaxhighlight lang="Lua" inline>before()</syntaxhighlight>. See the existing links in the module for examples.
For a permission-specific, wrap the link(s) with a condition, such as: <syntaxhighlight lang="Lua">if permission == 'New page reviewer' then
l[#l+1] =
end</syntaxhighlight>
Differences since the template was converted to a module
The functional difference since converting to a module is primarily that this checks each permission subpage to see if there are requests for the user at each page. Then, if there are multiple, it adds a parenthetical such as (requesting AutoWikiBrowser, Pending changes reviewer) after the userpage link.
If there is only one request found, then the parenthetical appears on the main Wikipedia:Requests for permissions page but not on the subpage where the request appears. Additionally, in this case the links specific to that permission are also shown on the main page. Previously, these links only appeared when viewing the subpage for that permission.
Notify links
The following do not currently have "notify" links: {{subst:AutoWikiBrowser granted}}, {{subst:Confirmed granted}}, {{subst:Extended confirmed granted}}.