View source for Module:Error
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
-- This module implements {{error}}.
local p = {}
local function _error(args)
local tag = mw.ustring.lower(tostring(args.tag))
-- Work out what html tag we should use.
if not (tag == 'p' or tag == 'span' or tag == 'div') then
tag = 'strong'
end
-- Generate the html.
return tostring(mw.html.create(tag)
:addClass('error')
:wikitext(tostring(args.message or args[1] or error('no message specified', 2)))
)
end
function p.error(frame)
local args
000
1:0
Templates used on this page:
- Template:High-use (view source)
- Template:High-use/num (view source)
- Template:High-use/risk (view source)
- Template:Module other (view source)
- Template:Module rating (view source)
- Template:Ombox (view source)
- Template:Order of magnitude (view source)
- Template:Rnd (view source)
- Template:Sandbox other (view source)
- Template:Sigfig (view source)
- Template:Significant figures (view source)
- Template:Significant figures/rnd (view source)
- Template:Str endswith (view source)
- Template:Tl (view source)
- Module:Arguments (view source) (protected)
- Module:Effective protection level (view source) (protected)
- Module:Error/doc (view source)
- Module:Math (view source) (protected)
- Module:Message box (view source) (protected)
- Module:Message box/configuration (view source) (protected)
- Module:No globals (view source) (protected)
- Module:Str endswith (view source) (protected)
- Module:String (view source) (protected)
- Module:Yesno (view source) (protected)
Return to Module:Error.