Module:Shortcut/sandbox: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 24:
frame = frame or mw.getCurrentFrame()
cfg = cfg or mw.loadData(CONFIG_MODULE)
local templateMode = yesno(options.template)
local isCategorized = yesno(options.category) ~= false
 
Line 33 ⟶ 34:
end
 
-- Template mode, an opt-out option in the Template namespace and an opt-in
-- one in others.
local templateMode = yesno(options.template)
if templateMode == nil then
templateMode = mw.title.getCurrentTitle().namespace == 10
end
 
-- Make the list items. These are the shortcuts plus any extra lines such