Modul:Hatnote: Unterschied zwischen den Versionen

122 Bytes hinzugefügt ,  vor 11 Jahren
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)
Zeile 125: Zeile 125:
local display = args[2]
local display = args[2]
if not link then
if not link then
return p.makeWikitextError('no link specified')
return p.makeWikitextError(
'no link specified',
'Template:Format hatnote link#Errors',
args.category
)
end
end
return p._formatLink(link, display)
return p._formatLink(link, display)
Zeile 172: Zeile 176:
local options = {}
local options = {}
if not s then
if not s then
return p.makeWikitextError('no text specified')
return p.makeWikitextError(
'no text specified',
'Template:Hatnote#Errors',
args.category
)
end
end
options.extraclasses = args.extraclasses
options.extraclasses = args.extraclasses
Anonymer Benutzer