「模組:Shortcut」:修訂間差異
建立內容為「-- This module implements {{shortcut}}. -- Set constants local CONFIG_MODULE = 'Module:Shortcut/config' -- Load required modules local checkType = require('libraryUtil').checkType local yesno = require('Module:Yesno') local p = {} function p._getshortname(frame) return frame:expandTemplate{title = "Lan",args = {["zh-hans"]="快捷方式",["zh-hant"]="捷徑"}} end function p.getshortlink(frame) return "[[Wikipedia:捷徑|" .. p._getshortname(frame) .…」的新頁面 |
無編輯摘要 |
||
| (未顯示同一使用者於中間所作的 2 次修訂) | |||
| 第12行: | 第12行: | ||
function p._getshortname(frame) | function p._getshortname(frame) | ||
return | return "捷徑" | ||
end | end | ||
function p.getshortlink(frame) | function p.getshortlink(frame) | ||
return "[[ | return "[[微國家百科:捷徑|" .. p._getshortname(frame) .. "]]" | ||
end | end | ||
function p.getshortlink_policy(frame) | function p.getshortlink_policy(frame) | ||
return "[[ | return "[[微國家百科:捷徑|方針" .. p._getshortname(frame) .. "]]" | ||
end | end | ||