Modul:Hatnote: Unterschied zwischen den Versionen
prefix all links with colons to allow interwiki links to work.
K (Minor comment change) |
(prefix all links with colons to allow interwiki links to work.) |
||
Zeile 142: | Zeile 142: | ||
link = removeInitialColon(link) | link = removeInitialColon(link) | ||
local namespace = p.findNamespaceId(link, false) | local namespace = p.findNamespaceId(link, false) | ||
local colon | local colon = ':' | ||
if namespace == 6 or namespace == 14 then | -- The following lines were commented out to allow interwiki links to work, | ||
-- as there is no harm in prefixing all links with colons. | |||
else | -- if namespace == 6 or namespace == 14 then | ||
-- colon = ':' | |||
end | -- else | ||
-- colon = '' | |||
-- end | |||
-- Find whether a faux display value has been added with the {{!}} magic | -- Find whether a faux display value has been added with the {{!}} magic |