View source for Module:Error
From Funkinchan
Jump to navigationJump to search
You do not have permission to edit this page, for the following reason:
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)
000
1:0
Templates used on this page:
- Template:High-use (view source)
- Template:Module other (view source)
- Template:Module rating (view source)
- Template:Sandbox other (view source)
- Template:Template link (view source)
- Template:Tl (view source)
- Module:Error/doc (view source)
- Module:High-use (view source)
- Module:Message box (view source)
- Module:Message box/configuration (view source)
- Module:Message box/ombox.css (view source)
- Module:String (view source)
- Module:Transclusion count (view source)
- Module:Transclusion count/data/E (view source)
- Module:Yesno (view source)
Return to Module:Error.