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"> | '<strong class="error">%s %s</strong>%s', | ||
message('errorPrefix', 'string'), | |||
msg, | msg, | ||
makeCategoryLink(' | makeCategoryLink(message('errorCategory', 'string')) | ||
) | ) | ||
end | end |