Changes
use messages for the err function instead of hard-coded values
local function err(msg)
return string.format(
'<strong class="error">[[Module:Documentation]] error: %s %s</strong>%s', message('errorPrefix', 'string'),
msg,
makeCategoryLink(message('Documentation template invocations with errorserrorCategory', 'string'))
)
end