Anonymous user
Module:Hatnote: Difference between revisions
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',
'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',
'Template:Hatnote#Errors',
args.category
)
end
options.extraclasses = args.extraclasses
|