Module:Shortcut: Difference between revisions

prevent links linking back to the current page, see Template_talk:Shortcut#Direct_link
(remove the first parameter error category per Template talk:Shortcut#The cleanup category should be removed)
(prevent links linking back to the current page, see Template_talk:Shortcut#Direct_link)
Line 37: Line 37:
local listItems = {}
local listItems = {}
for i, shortcut in ipairs(shortcuts) do
for i, shortcut in ipairs(shortcuts) do
listItems[i] = string.format('[[%s]]', shortcut)
listItems[i] = frame:expandTemplate{
title = 'No redirect',
args = {shortcut}
}
end
end
table.insert(listItems, options.msg)
table.insert(listItems, options.msg)
Anonymous user