Module:Lua banner:修订间差异
删除的内容 添加的内容
恢复到原始版本 |
renderBox:文案「前缀基于以下Lua语言模块编写:」,内联、链接不带前缀 |
||
第72行:
local moduleLinks = {}
for i, module in ipairs(modules) do
moduleLinks[i] = '[[:Module:' .. moduleName .. '|' .. moduleName .. ']]'
local maybeSandbox = mw.title.new(module .. '/sandbox')
if maybeSandbox and maybeSandbox.exists then
第78行 ⟶ 第79行:
end
end
local title = mw.title.getCurrentTitle()
if title.subpageText == 'doc' then
title = title.basePageTitle
end
local prefix
if title:inNamespaces(828, 829) then
elseif title.namespace == 10 then
prefix = '此模板'
else
prefix = '此页面'
boxArgs.text = '此模板使用[[Wikipedia:Lua|Lua语言]]:\n' .. moduleList▼
end
▲
end
boxArgs.type = 'notice'
| |||