跳至內容
Reko Wiki
通知
user-interface-preferences
個人工具
建立帳號
登入
搜尋
開啟主選單
4776
篇文章
Reko Wiki
導覽
首頁
隨機頁面
MediaWiki說明
可用模板
使用須知
暗色模式
常用分類
成句
動畫
漫畫
遊戲
角色
聲優
TCG
所有頁面
所有頁面
近期變更
所有變更
Sidebar
外部連結
Facebook專頁
Camiko
檢視 模組:For 的原始碼
出自Reko Wiki
←
模組: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( 'context參數缺失。請使用{{other uses}}作爲「其他情況」的頂注。', 'Template:For#錯誤', 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 image = '[[File:Disambig_gray.svg|25px|link=Wikipedia:消歧義]]' return mHatnote._hatnote( image .. ' ' .. mHatlist.forSeeTableToString({{use = use, pages = pages}}), {selfref = args.selfref} ) .. ( (use == 'other uses') and yesNo(args.category) and '[[Category:使用不尋常參數的頂注模板]]' or '' ) end return p
此頁面使用了以下模板:
模組:For/doc
(
檢視原始碼
)
返回到「
模組:For
」。