Module:Shortcut/sandbox: Difference between revisions

Content deleted Content added
m Reverted edits by MJL (talk) to last version by Nardog
add policy option
Line 2:
 
-- Set constants
local CONFIG_MODULE = 'Module:Shortcut/config/sandbox'
 
-- Load required modules
Line 25:
cfg = cfg or mw.loadData(CONFIG_MODULE)
local templateMode = yesno(options.template)
local policyHeading = yesno(options.policy)
local isCategorized = yesno(options.category) ~= false
 
Line 91 ⟶ 92:
local nShortcuts = #shortcuts
if nShortcuts > 0 then
if policyHeading then
local headingMsg = options['shortcut-heading'] or cfg['shortcut-heading']
local headingMsg = options['policy-shortcut-heading'] or cfg['policy-shortcut-heading']
else
local headingMsg = options['shortcut-heading'] or cfg['shortcut-heading']
end
shortcutHeading = message(headingMsg, nShortcuts)
shortcutHeading = frame:preprocess(shortcutHeading)