Anonymous user
Module:Hatnote: Difference between revisions
move formatLink back to the underscore - that one is necessary
(make makeWikitextError use Module:Yesno to parse the demo parameter, and remove underscores from all the function names, as that's normally done for private functions, whereas these are public) |
(move formatLink back to the underscore - that one is necessary) |
||
Line 113:
return p.makeWikitextError('no link specified')
end
return p.
end
function p.
-- Find whether we need to use the colon trick or not. We need to use the
-- colon trick for categories and files, as otherwise category links
-- categorise the page and file links display the file.
checkType('
checkType('
link = removeInitialColon(link)
local namespace = p.findNamespaceId(link, false)
|