Module:Lockbox: Difference between revisions

Content deleted Content added
more voodoo
less voodoo
Line 3:
function export.lock(frame)
local output = {}
local wikitext = {}
-- check if the current page is cascade-protected
Line 19 ⟶ 18:
-- getContent() on a title object might be cleaner, but getContent() and title objects
-- are considered "expensive". even though they are probably cheaper than actual transclusion
table.insert(wikitext,frame:expandTemplate '{{' ..title = item .. '}}')
 
local ns = match(item, "^(.-):")
Line 31 ⟶ 30:
end
end
frame:preprocess(table.concat(wikitext))
 
if frame.args.silent then