開啟主選單

求真百科

變更

模块:Lua banner

增加 110 位元組, 4 年前
导入1个版本
-- This module implements the {{lua}} template.[=[ 这个模块由[[Template:Lua]]调用暂无模块调用/****************************/這個模組由[[Template:Lua]]調用暫無模組調用]=]--
local yesno = require('Module:Yesno')
local mList = require('Module:List')
local boxArgs = {}
if #modules < 1 then
boxArgs.text = '<strong class="error">Error错误:没有指定-{zh-hans: no modules specified模块; zh-hant:模組;}-</strong>'
else
local moduleLinks = {}
end
local moduleList = mList.makeList('bulleted', moduleLinks)
boxArgs.text = 'This ' .. (mw.title.getCurrentTitle():inNamespaces(828,829) and 'module-{zh-hans:模块; zh-hant:模組;}-' or 'template模板') .. ' uses 使用[[Wikipedia:Lua|Lua语言]]:\n' .. moduleList
end
boxArgs.type = 'notice'
local cats = {}
-- Error category错误分类
if #modules < 1 then
cats[#cats + 1] = 'Lua templates with errors有错误的Lua模板'
end
if not category then
local categories = {
['Module:String'] = 'Lua String-based templates使用LuaString的模板', ['Module:Math'] = 'Templates based on the Math Lua module使用LuaMath的模板', ['Module:BaseConvert'] = 'Templates based on the BaseConvert Lua module使用LuaBaseConvert的模板', ['Module:Citation'] = 'Lua-based citation templates使用LuaCitation的模板'
}
categories['Module:Citation/CS1'] = categories['Module:Citation']
category = modules[1] and categories[modules[1]]
category = category or 'Lua-based templates模板'
end
cats[#cats + 1] = category
if moduleProt == nil then moduleProt = 0 else moduleProt = protLevels[moduleProt] end
if moduleProt < currentProt then
cats[#cats + 1] = "Templates using under-protected Lua modules使用受保护Lua模块的模板"
break
end
行政員使用者查核員拒收員巡檢員管理員、water、waterc、waterh、waterm、waterp、waters、watert、waterv、waterw、waterz
10,317
次編輯