3,679
edits
No edit summary Tag: Reverted |
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 |