未登录
中文(简体)
创建账号
登录
搜索
查看“模块:Effective protection expiry”的源代码
来自东方Project线下活动维基
命名空间
模块
讨论
更多
更多
页面操作
阅读
查看源代码
历史
←
模块:Effective protection expiry
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
local p = {} -- Returns the expiry of a restriction of an action on a given title, or unknown if it cannot be known. -- If no title is specified, the title of the page being displayed is used. function p._main(action, pagename) local title if type(pagename) == 'table' and pagename.prefixedText then title = pagename elseif pagename then title = mw.title.new(pagename) else title = mw.title.getCurrentTitle() end pagename = title.prefixedText if action == 'autoreview' then return 'unknown' elseif action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' then error( 'First parameter must be one of edit, move, create, upload, autoreview', 2 ) end local rawExpiry = mw.getCurrentFrame():callParserFunction('PROTECTIONEXPIRY', action, pagename) if rawExpiry == 'infinity' then return 'infinity' elseif rawExpiry == '' then return 'unknown' else local year = mw.ustring.sub( rawExpiry, 1, 4 ) local month = mw.ustring.sub( rawExpiry, 5, 6 ) local day = mw.ustring.sub( rawExpiry, 7, 8 ) return year .. '-' .. month .. '-' .. day end end setmetatable(p, { __index = function(t, k) return function(frame) return t._main(k, frame.args[1]) end end }) return p
本页使用的模板:
模块:Effective protection expiry/doc
(
查看源代码
)
返回
模块:Effective protection expiry
。
导航
导航
首页
最近更改
文件列表
所有页面
留言板
活动日程
活动日历
线下活动速查表
分类索引
活动QQ群组一览
活动分布地图
地区词条索引
帮助
沙盒
规划
编辑规范
创建页面
快速创建活动页面
快速创建活动子页面
使用方法与帮助
Wiki页面
相关站点
THBWiki
东方市场
莉莉云下载站
绯想天则指南
上海爱丽丝幻乐团
wiki工具
wiki工具
特殊页面
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志