Anonymous user
Module:Shortcut: Difference between revisions
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
shortcutHeading = message(headingMsg, nShortcuts)
shortcutHeading = frame:preprocess(shortcutHeading)
end
Line 94 ⟶ 99:
function p.main(frame)
local args = require('Module:Arguments').getArgs(frame
-- Separate shortcuts from options
|