Jump to content

Module:Documentation: Difference between revisions

use messages for the err function instead of hard-coded values
m>Mr. Stradivarius
(add a categories blurb function)
m>Mr. Stradivarius
(use messages for the err function instead of hard-coded values)
Line 89: Line 89:
local function err(msg)
local function err(msg)
return string.format(
return string.format(
'<strong class="error">[[Module:Documentation]] error: %s</strong>%s',
'<strong class="error">%s %s</strong>%s',
message('errorPrefix', 'string'),
msg,
msg,
makeCategoryLink('Documentation template invocations with errors')
makeCategoryLink(message('errorCategory', 'string'))
)
)
end
end
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.