Module:Hatnote: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (Minor comment change)
(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 = ':'
-- The following lines were commented out to allow interwiki links to work,
if namespace == 6 or namespace == 14 then
-- as there is no harm in prefixing all links with colons.
colon = ':'
-- if namespace == 6 or namespace == 14 then
else
colon = ''
-- colon = ':'
-- else
end
-- 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