查看“模块:切换显示”的源代码
因为以下原因,您没有权限编辑本页:
您可以查看与复制此页面的源代码。
local module = {}
local getArgs = require('Module:Arguments').getArgs
local sortedArgs = require('Module:SortArgs').sortedArgs
local initSpan = function(className, templateName, frame)
local args = getArgs(frame, { wrappers = 'Template:' .. templateName })
local span = mw.html.create('span')
span:attr('class', className)
if className == 'textToggleDisplayButtons' then -- 自Template:切换显示调用。
local operators = {} -- 操作参数。
local contentlist = {} --[[内容表列。结构为:
{
strcode = 字符串代号,
on = @on后缀的内容,
off = @off后缀的内容,
default = 没有@on或@off后缀的内容,
}
]]
000
1:0
该页面使用的模板:
返回至模块:切换显示。