Changes
update the makeWikitextError function - don't use Module:Category handler, and use an addTrackingCategory parameter instead of a demo parameter, to make it easy for daughter modules to add a category=no parameter
local mArguments -- lazily initialise [[Module:Arguments]]
local yesno -- lazily initialise [[Module:Yesno]]
local p = {}
end
function p.makeWikitextError(msg, demoaddTrackingCategory) -- Formats an error message to be returned to wikitext. If demo -- addTrackingCategory is not nilfalse after being returned from -- or false[[Module:Yesno]], and if we are not on a talk page, no error a tracking category -- is added.
checkType('makeWikitextError', 1, msg, 'string')
yesno = require('Module:Yesno')
return string.format(
'<strong class="error">Error: %s.</strong>%s',
msg,
)
end