Module:Hatnote: Difference between revisions

prefix all links with colons to allow interwiki links to work.
m>Codename Lisa
m (Minor comment change)
m>Ahecht
(prefix all links with colons to allow interwiki links to work.)
Line 142: Line 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,
colon = ':'
-- as there is no harm in prefixing all links with colons.
else
-- if namespace == 6 or namespace == 14 then
colon = ''
-- 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
Anonymous user