Zum Inhalt springen

Modul:Hatnote: Unterschied zwischen den Versionen

add type check for makeWikitextError
(add a demo parameter to makeWikitextError)
(add type check for makeWikitextError)
Zeile 78: Zeile 78:
-- or false, no error category is added.
-- or false, no error category is added.
checkType('_makeWikitextError', 1, msg, 'string')
checkType('_makeWikitextError', 1, msg, 'string')
checkType('_makeWikitextError', 2, demo, 'boolean', true)
local errorCategory = 'Hatnote templates with errors'
local errorCategory = 'Hatnote templates with errors'
local errorCategoryLink
local errorCategoryLink
if not demo then
if demo then
errorCategoryLink = string.format(
errorCategoryLink = string.format(
'[[%s:%s]]',
'[[%s:%s]]',
Anonymer Benutzer