Module:Shortcut: Difference between revisions

Jump to navigation Jump to search
Undo revision 2260 by Sirdog (talk)
No edit summary
Tag: Reverted
(Undo revision 2260 by Sirdog (talk))
Tag: Undo
Line 54: Line 54:
and string.format("{{%s[[%s|%s]]}}", prefix, templatePath, shortcut)
and string.format("{{%s[[%s|%s]]}}", prefix, templatePath, shortcut)
or string.format("[[%s]]", shortcut)
or string.format("[[%s]]", shortcut)
else
listItems[i] = frame:expandTemplate{
title = 'No redirect',
args = templateMode and {templatePath, shortcut} or {shortcut, shortcut}
}
if templateMode then
listItems[i] = string.format("{{%s%s}}", prefix, listItems[i])
end
end
end
end
end

Navigation menu