檢視 模組:About 的原始碼
←
模組:About
跳至導覽
跳至搜尋
由於以下原因,您無權編輯此頁面:
您請求的操作只有這個群組的使用者能使用:
使用者
在編輯此頁之前您必須確認您的電子郵件地址。 請透過
偏好設定
設定並驗證您的電子郵件地址。
您可以檢視並複製此頁面的原始碼。
local mArguments --initialize lazily local mHatnote = require('Module:Hatnote') local mHatList = require('Module:Hatnote list') local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local p = {} function p.about (frame) -- A passthrough that gets args from the frame and all mArguments = require('Module:Arguments') args = mArguments.getArgs(frame) return p._about(args) end function p._about (args, options) -- Produces "about" hatnote. -- Type checks and defaults checkType('_about', 1, args, 'table', true) args = args or {} checkType('_about', 2, options, 'table', true) options = options or {} local defaultOptions = { aboutForm = '此%s介紹的是%s。', PageType = require('Module:Pagetype').main(), namespace = mw.title.getCurrentTitle().namespace, otherText = nil, --included for complete list sectionString = '章節' } for k, v in pairs(defaultOptions) do if options[k] == nil then options[k] = v end end -- Set initial "about" string local pageType = (args.section and options.sectionString) or options.PageType local about = '' if args[1] then about = string.format(options.aboutForm, pageType, args[1]) end --Allow passing through certain options local fsOptions = { otherText = options.otherText, extratext = args.text } local hnOptions = { selfref = args.selfref } -- Set for-see list local forSee = mHatList._forSee(args, 2, fsOptions) local image = '[[File:Disambig_gray.svg|25px|link=Wikipedia:消歧義]]' -- Concatenate and return return mHatnote._hatnote(image .. ' ' .. about .. forSee, hnOptions) end return p
除錯主控台
* 該模組的匯出資訊可透過變數 "p" 來取得,包含尚未儲存的修改。 * 在行的前面加上 "=" 可將該行作為運算式來評估執行,或使用 print()。表格請使用 mw.logObject()。 * 在模組程式碼中使用 mw.log() 與 mw.logObject() 以傳送訊息至主控台。
此頁面使用了以下模板:
模組:About/doc
(
檢視原始碼
)
返回到「
模組:About
」。
導覽選單
個人工具
建立帳號
登入
命名空間
模組
討論
English
視圖
閱讀
檢視原始碼
檢視歷史
更多
搜尋
導覽
首頁
隨機頁面
MediaWiki說明
可用模板
使用須知
暗色模式
常用分類
成句
動畫
漫畫
遊戲
角色
聲優
TCG
所有頁面
所有頁面
近期變更
所有變更
Sidebar
工具
連結至此的頁面
相關變更
特殊頁面
頁面資訊
外部連結
Facebook專頁
Camiko