開啟主選單

求真百科

變更

模块:Error

增加 104 位元組, 4 年前
导入1个版本
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.
行政員使用者查核員拒收員巡檢員管理員、water、waterc、waterh、waterm、waterp、waters、watert、waterv、waterw、waterz
10,317
次編輯