Module:Documentation:修订间差异
删除的内容 添加的内容
吸收用户版本改进:escapeBrackets / EXPECTUNUSED / isPreviewing / small / env.printTitle / endBox顺序 |
去掉 message() 中多余的 preprocess 调用(config 已无 -{}-) |
||
| (未显示同一用户的6个中间版本) | |||
第20行:
--[[
-- Gets a message from the cfg table and formats it if appropriate.
--
--]]
local msg = cfg[cfgKey]
第79行:
end
for i = 1, lim do
if v then
ret[#ret + 1] = v
end▼
end
if #ret == 0 then return nil end
return format(
'<span class="%s">(%s)</span>',
第89行 ⟶ 第93行:
p.makeToolbar = makeToolbar
▲end
----------------------------------------------------------------------------
第458行 ⟶ 第453行:
function p.renderStartBoxLinks(data)
local docTitle = data.docTitle
local purgeLink = makeWikilink("Special:Purge/" .. data.title.prefixedText, data.purgeLinkDisplay)
if docTitle.exists then
local viewLink = makeWikilink(docTitle.prefixedText, data.viewLinkDisplay)
local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, data.editLinkDisplay)
local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, data.historyLinkDisplay)
viewLink, editLink, historyLink, purgeLink)
else
local createLink = makeUrlLink(docTitle:canonicalUrl{action = 'edit', preload = data.preload}, data.createLinkDisplay)
end
end
第506行 ⟶ 第499行:
if links then
data.linksClass = message('start-box-link-classes')
data.linksId = message('start-box-link-id')
data.links = links
end
| |||