Module:Documentation:修订间差异

删除的内容 添加的内容
renderStartBoxLinks: format + [] 实体实现可见方括号
去掉 message() 中多余的 preprocess 调用(config 已无 -{}-)
 
(未显示同一用户的4个中间版本)
第20行:
--[[
-- Gets a message from the cfg table and formats it if appropriate.
-- SupportsConfig is plain -{zh-hans:...;, no zh-hant:...;{}- syntax viaprocessing frame:preprocess()needed.
--]]
local msg = cfg[cfgKey]
第93行:
 
p.makeToolbar = makeToolbar
 
local function escapeBrackets(s)
-- 将方括号转为 HTML 实体,防止被 wikitext 解析为外部链接
s = s:gsub('%[', '[')
s = s:gsub('%]', ']')
return s
end
 
p.escapeBrackets = escapeBrackets
 
----------------------------------------------------------------------------
第354行 ⟶ 第345行:
omargs.image = message('sandbox-notice-image')
 
local text = '__EXPECTUNUSEDTEMPLATE__\\n'
local pagetype, pagetypee, sandboxCat
if subjectSpace == 10 then
第508行 ⟶ 第499行:
if links then
data.linksClass = message('start-box-link-classes')
data.linksId = message('start-box-link-id')
data.links = links
end