Module:Shortcut: Difference between revisions
Content added Content deleted
Enwikipedia>Mr. Stradivarius (allow output if no shortcuts are set but msg is present) |
Enwikipedia>Mr. Stradivarius (use wikilinks rather than URLs, as it would change the redlink behaviour, and that's better done after it is discussed) |
||
Line 73: | Line 73: | ||
:tag('ul') |
:tag('ul') |
||
for i, shortcut in ipairs(shortcuts) do |
for i, shortcut in ipairs(shortcuts) do |
||
⚫ | |||
local url = mw.uri.fullUrl(shortcut, {redirect = 'no'}) |
|||
'[[%s]]', |
|||
url = tostring(url) |
|||
shortcut |
|||
local link = string.format('[%s %s]', url, shortcut) |
|||
)) |
|||
⚫ | |||
end |
end |
||
if options.msg then |
if options.msg then |