打开/关闭搜索
搜索
打开/关闭菜单
83
247
21
3.5K
NebulaeWiki
导航
首页
最近更改
特殊页面
上传文件
速览
成员守则
建设标准
玩家指南
编辑指南
交通
地铁
市域铁路
有轨电车
公交系统
活动
第一届星运会
第二届星运会
N20 · 杭州
关于
关于本站
隐私政策
免责声明
系统信息
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁模块:For”︁的源代码
爱来自星云工艺喵!(づ。◕◡◡◕。)づ
查看
阅读
查看源代码
查看历史
associated-pages
模块
讨论
更多操作
←
模块:For
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
local mArguments --initialize lazily local mHatlist = require('Module:Hatnote list') local mHatnote = require('Module:Hatnote') local yesNo = require('Module:Yesno') local p = {} --Implements {{For}} from the frame --uses capitalized "For" to avoid collision with Lua reserved word "for" function p.For (frame) mArguments = require('Module:Arguments') return p._For(mArguments.getArgs(frame)) end --Implements {{For}} but takes a manual arguments table function p._For (args) local use = args[1] if (not use) then return mHatnote.makeWikitextError( 'no context parameter provided. Use {{other uses}} for "other uses" hatnotes.', 'Template:For#Errors', args.category ) end local pages = {} function two (a, b) return a, b, 1 end --lets us run ipairs from 2 for k, v in two(ipairs(args)) do table.insert(pages, v) end local title = mw.title.getCurrentTitle() local skipCat = title.isTalkPage or title.namespace == 2 --don't categorise talk pages and userspace local oddCat = skipCat and '' or '[[Category:Hatnote templates using unusual parameters]]' local category = yesNo(args.category) return mHatnote._hatnote( mHatlist.forSeeTableToString({{use = use, pages = pages}}), { selfref = args.selfref, icon = 'WikimediaUI-ArticleDisambiguation-ltr.svg' } ) .. ( (use == 'other uses') and ((category == true) or (category == nil)) and oddCat or '' ) end return p
该页面使用的模板:
模块:For/doc
(
查看源代码
)
返回
模块:For
。
我们为您提供服务需要使用Cookie。使用我们的服务即表示您同意我们使用Cookie。
确定