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

變更

前往: 導覽搜尋

模块:Error

移除 104 位元組, 5 年前
导入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.
local root = return tostring(mw.html.create(tag) root
:addClass('error')
:wikitext(tostring(args.messageor args[1] or error('no message specified', 2))return tostring(root)
end
function p.error(frame)
local args
if type(frame .args) == mw.getCurrentFrame() '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
次編輯