Module:Documentation: Difference between revisions

Jump to navigation Jump to search
m>Mr. Stradivarius
allow documentation passed with the |content= parameter to show even if we get errors from the env table
m>Mr. Stradivarius
remove the err function, as it's not being used any more
Line 86: Line 86:


p.makeToolbar = makeToolbar
p.makeToolbar = makeToolbar
local function err(msg)
return string.format(
'<strong class="error">%s %s</strong>%s',
message('errorPrefix', 'string'),
msg,
makeCategoryLink(message('errorCategory', 'string'))
)
end
p.err = err


----------------------------------------------------------------------------
----------------------------------------------------------------------------