Module:Contentious topics talk banner and Module:Contentious topics talk banner/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
HouseBlaster (talk | contribs) add |aeprotection as a parameter; see user:Valereee's request at Special:Diff/1294066570 |
HouseBlaster (talk | contribs) dipping my toes into the fray |
||
Line 40: | Line 40: | ||
local args = require('Module:Arguments').getArgs(frame) |
local args = require('Module:Arguments').getArgs(frame) |
||
local topics = collectTopics(args) |
local topics = collectTopics(args) |
||
local partialTopics |
|||
local restrictions = {} -- A list of which restrictions are enabled for easier iteration |
local restrictions = {} -- A list of which restrictions are enabled for easier iteration |
||
local restrictionFlags = {} -- Track which restrictions are enabled, as a set |
local restrictionFlags = {} -- Track which restrictions are enabled, as a set |
||
Line 101: | Line 102: | ||
-- Add the protection level |
-- Add the protection level |
||
if yesno(args.protection |
if yesno(args.protection, true) then |
||
protectionLevel = subjectTitleObject.protectionLevels["edit"][1] |
protectionLevel = subjectTitleObject.protectionLevels["edit"][1] |
||
if protectionLevel then |
if protectionLevel then |
||
Line 230: | Line 231: | ||
end |
end |
||
end |
end |
||
--[[ |
|||
Now build some further information collapse boxes |
|||
We get the content of each collapse box from Wikipedia:Contentious topics/[Topic]/Further information |
|||
--]] |
|||
-- Now build the messageBox |
-- Now build the messageBox |