Module:Request for permission links/doc
This module implements {{Request for permission links}}. Please see the template page for documentation.
Example appearance
[edit]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
[edit]To add a new link, find an empty line in the section between about lines 38 and 92 and add either a link l[#l+1] = '[URL label]'
or a wikilink l[#l+1] = '[[Page|label]]'
. However, replace any instance of a username in the link with '..userURL..'
(for a URL/external link) or
'..username..'
(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 before('')
. See the existing links in the module for examples.
For a permission-specific, wrap the link(s) with a condition, such as:
if permission == 'New page reviewer' then
l[#l+1] =
end
Differences since the template was converted to a module
[edit]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
[edit]The following do not currently have "notify" links: {{subst:AutoWikiBrowser granted}}, {{subst:Confirmed granted}}, {{subst:Extended confirmed granted}}.