Module:Shortcut: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Implement merger code by Pppery
(redo templatestyles)
(Implement merger code by Pppery)
Line 37:
local listItems = {}
for i, shortcut in ipairs(shortcuts) do
if yesno(options['target']) then
listItems[i] = frame:expandTemplate{
listItems[i] = string.format("[[%s]]",shortcut)
title = 'No redirect',
else
args = {shortcut}
listItems[i] = frame:expandTemplate{
}
title = 'No redirect',
args = {shortcut}
}
end
end
table.insert(listItems, options.msg)
Line 70 ⟶ 74:
local nShortcuts = #shortcuts
if nShortcuts > 0 then
shortcutHeadinglocal headingMsg = message(cfgoptions['shortcut-heading'], nShortcuts)or cfg['shortcut-heading']
shortcutHeading = message(headingMsg, nShortcuts)
shortcutHeading = frame:preprocess(shortcutHeading)
end
Line 94 ⟶ 99:
 
function p.main(frame)
local args = require('Module:Arguments').getArgs(frame, {)
wrappers = 'Template:Shortcut'
})
 
-- Separate shortcuts from options
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu