求真百科歡迎當事人提供第一手真實資料,洗刷冤屈,終結網路霸凌。

變更

前往: 導覽搜尋

模块:Error

增加 104 位元組, 6 年前
已保护“模块:Error”:高风险模板([编辑=仅允许自动确认用户](无限期)[移动=仅管理员](无限期))
local function _error(args)
local message = args.message or args[1] or error('没有指定的-{zh-cn:信息; zh-tw:資訊}-', 2)
message = tostring(message)
local tag = mw.ustring.lower(tostring(args.tag))
-- Generate the html.
return tostring(local root = mw.html.create(tag) root
:addClass('error')
:wikitext(tostring(args.message or args[1] or error('no message specified', 2))return tostring(root)
end
function p.error(frame)
local args
if type(frame== mw.argsgetCurrentFrame() == 'table' then
-- We're being called via #invoke. The args are passed through to the module
-- from the template page, so use the args that were passed into the template.
匿名用戶