Open main menu

Changes

Module:Hatnote

113 bytes added, 16:03, 29 April 2014
add a demo parameter to makeWikitextError
end
function p._makeWikitextError(msg, demo) -- Formats an error message to be returned to wikitext. If demo is not nil -- or false, no error category is added.
checkType('_makeWikitextError', 1, msg, 'string')
local errorCategory = 'Hatnote templates with errors'
local errorCategoryLink = errorCategory if not demo then and errorCategoryLink = string.format(
'[[%s:%s]]',
mw.site.namespaces[14].name,
errorCategory
)
else or errorCategoryLink = '' end
return string.format(
'<strong class="error">Error: %s.</strong>%s',
Anonymous user