打开/关闭搜索
搜索
打开/关闭菜单
322
1.7K
132
12.6K
星露谷物语扩展百科
导航
首页
最近更改
随机页面
特殊页面
上传文件
站务
交流群
互通站
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁模块:Schedule”︁的源代码
来自星露谷物语扩展百科
查看
阅读
查看源代码
查看历史
associated-pages
模块
讨论
更多操作
←
模块:Schedule
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:已验证邮箱用户
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
local p = {} function p.main(frame) local parent_args = frame:getParent().args local args = {} local max_key = 0 for k, v in pairs(parent_args) do local num_key = tonumber(k) if num_key and num_key > 0 and math.floor(num_key) == num_key then args[num_key] = v if num_key > max_key then max_key = num_key end end end local result = {} table.insert(result, '<table class="wikitable scheduleheader">') table.insert(result, '<tr><th style="width: 15%;">时间</th><th style="width: 85%;">地点</th></tr>') for i = 1, max_key, 2 do local time = args[i] or '' local location = args[i + 1] or '' if time ~= '' then local row = string.format('<tr><td>%s</td><td>%s</td></tr>', time, location) table.insert(result, row) end end table.insert(result, '</table>') return table.concat(result, '\n') end return p
该页面嵌入的页面:
模块:Documentation
(
查看源代码
)
模块:Documentation/styles.css
(
查看源代码
)
模块:ProcessArgs
(
查看源代码
)
模块:STConversion
(
查看源代码
)
模块:Schedule/doc
(
查看源代码
)
模块:Static
(
查看源代码
)
模块:TSLoader
(
查看源代码
)
返回
模块:Schedule
。
查看“︁模块:Schedule”︁的源代码
来自星露谷物语扩展百科