打开/关闭搜索
搜索
打开/关闭菜单
65
32
5
2690
导航
首页
总览
沙盒页
备忘页
最近更改
随机页面
上传文件
打开/关闭外观设置菜单
无法加载偏好设置。请检查您的网络连接并重试。
重试
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
登录
查看“︁模块:Astrology”︁的源代码
来自 LNN的:not(博客)?
查看
阅读
查看源代码
查看历史
associated-pages
模块
讨论
更多操作
←
模块:Astrology
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于这些用户组的用户执行:
用户
、导入者
您可以查看和复制此页面的源代码。
--[[ 来源:https://mzh.moegirl.org.cn/%E6%A8%A1%E5%9D%97%3AAstrology 引自萌娘百科(https://mzh.moegirl.org.cn ),文字内容默认使用《知识共享 署名-非商业性使用-相同方式共享 3.0 中国大陆》协议。 ]] local p = {} local getArgs = require('Module:Arguments').getArgs function p._convert(args) local month = tonumber(args[1]) local day = tonumber(args[2]) if month == nil or day == nil then error('调用模板或模块的参数错误') end local combined = string.format('%02d%02d', month, day) if combined < '0121' then return '摩羯座' elseif combined < '0220' then return '水瓶座' elseif combined < '0321' then return '双鱼座' elseif combined < '0421' then return '白羊座' elseif combined < '0522' then return '金牛座' elseif combined < '0622' then return '双子座' elseif combined < '0723' then return '巨蟹座' elseif combined < '0823' then return '狮子座' elseif combined < '0923' then return '处女座' elseif combined < '1024' then return '天秤座' elseif combined < '1123' then return '天蝎座' elseif combined < '1222' then return '射手座' else return '摩羯座' end end function p.convert(frame) local args = getArgs(frame, {wrappers='Template:Astrology'}) local success, value = pcall(p._convert, args) return success and value or "" end return p
此页面嵌入的页面:
模块:Astrology/doc
(
查看源代码
)
返回
模块:Astrology
。
查看“︁模块:Astrology”︁的源代码
来自 LNN的:not(博客)?