1,507
个编辑
RavenclawOIer(讨论 | 贡献) 小 (导入39个版本:cquote) |
小 (Simplified) |
||
| 第246行: | 第246行: | ||
local sect | local sect | ||
if args.sect == '' then | if args.sect == '' then | ||
sect = '此' .. (cfg.sectionDefault or ' | sect = '此' .. (cfg.sectionDefault or '页面') | ||
elseif type(args.sect) == 'string' then | elseif type(args.sect) == 'string' then | ||
sect = '此' .. args.sect | sect = '此' .. args.sect | ||
| 第281行: | 第281行: | ||
end | end | ||
if talkTitle and talkTitle.exists then | if talkTitle and talkTitle.exists then | ||
local talkText = ' | local talkText = '相关讨论可见于' | ||
if talkArgIsTalkPage then | if talkArgIsTalkPage then | ||
talkText = format('%s[[%s|%s]].', talkText, talk, talkTitle.prefixedText) | talkText = format('%s[[%s|%s]].', talkText, talk, talkTitle.prefixedText) | ||
else | else | ||
talkText = format('%s[[%s#%s| | talkText = format('%s[[%s#%s|讨论页]].', talkText, talkTitle.prefixedText, talk) | ||
end | end | ||
self.talk = talkText | self.talk = talkText | ||
| 第487行: | 第487行: | ||
end | end | ||
if self.isSubstituted then | if self.isSubstituted then | ||
self:addCat('all', ' | self:addCat('all', '错误使用替换引用的页面') | ||
end | end | ||
| 第510行: | 第510行: | ||
:addClass('error') | :addClass('error') | ||
:wikitext(format( | :wikitext(format( | ||
'模板<code>%s[[Template:%s|%s]]%s</code> | '模板<code>%s[[Template:%s|%s]]%s</code>被错误地替代。', | ||
mw.text.nowiki('{{'), self.name, self.name, mw.text.nowiki('}}') | mw.text.nowiki('{{'), self.name, self.name, mw.text.nowiki('}}') | ||
)) | )) | ||
| 第612行: | 第612行: | ||
:tag('div') | :tag('div') | ||
:css('text-align', 'center') | :css('text-align', 'center') | ||
:wikitext(format(' | :wikitext(format('此消息框使用无效的「type=%s」参数,需要修复。', self.type or '')) | ||
end | end | ||