變更
local helpText
if helpLink then
helpText = ' ([[' .. helpLink .. '|help帮助]])'
else
helpText = ''
local category
if not title.isTalkPage and yesno(addTrackingCategory) ~= false then
category = 'Hatnote templates with errors有错误的顶注模板'
category = string.format(
'[[%s:%s]]',
end
return string.format(
'<strong class="error">错误:%s%s.。</strong>%s',
msg,
helpText,
if not s then
return p.makeWikitextError(
'no text specified没有输入文字', 'Template:Hatnote#Errors错误',
args.category
)