Module:Hatnote: Difference between revisions

122 bytes added ,  10 years ago
add a help link for the hatnote and formatLink functions
(add helpLink parameter to makeWikitextError)
(add a help link for the hatnote and formatLink functions)
Line 125:
local display = args[2]
if not link then
return p.makeWikitextError('no link specified')
'no link specified',
'Template:Format hatnote link#Errors',
args.category
)
end
return p._formatLink(link, display)
Line 172 ⟶ 176:
local options = {}
if not s then
return p.makeWikitextError('no text specified')
'no text specified',
'Template:Hatnote#Errors',
args.category
)
end
options.extraclasses = args.extraclasses
Anonymous user