Module:Documentation:修订间差异
删除的内容 添加的内容
修复3项: renderStartBoxLinks链接 / makeToolbar nil过滤 / EXPECTUNUSED分隔符 |
去掉 message() 中多余的 preprocess 调用(config 已无 -{}-) |
||
| (未显示同一用户的5个中间版本) | |||
第20行:
--[[
-- Gets a message from the cfg table and formats it if appropriate.
--
--]]
local msg = cfg[cfgKey]
第93行:
p.makeToolbar = makeToolbar
----------------------------------------------------------------------------
第354行 ⟶ 第345行:
omargs.image = message('sandbox-notice-image')
local text = '__EXPECTUNUSEDTEMPLATE__
local pagetype, pagetypee, sandboxCat
if subjectSpace == 10 then
第462行 ⟶ 第453行:
function p.renderStartBoxLinks(data)
local docTitle = data.docTitle
local purgeLink = makeWikilink("Special:Purge/" .. data.title.prefixedText, data.purgeLinkDisplay)
第469行 ⟶ 第459行:
local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, data.editLinkDisplay)
local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, data.historyLinkDisplay)
return format('[%s] [%s] [%s] [%s]',
else
local createLink = makeUrlLink(docTitle:canonicalUrl{action = 'edit', preload = data.preload}, data.createLinkDisplay)
return
end
end
第508行 ⟶ 第499行:
if links then
data.linksClass = message('start-box-link-classes')
data.linksId = message('start-box-link-id')
data.links = links
end
| |||