求真百科歡迎當事人提供第一手真實資料,洗刷冤屈,終結網路霸凌。

變更

前往: 導覽搜尋

模块:Hatnote

增加 27 位元組, 6 年前
per 编辑请求
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,
checkType('_formatLink', 1, link, 'string')
checkType('_formatLink', 2, display, 'string', true)
 
-- Don't change anything for interlanguage links.
if link:match('<span class="ilh-') then
return link
end
 
-- Remove the initial colon for links where it was specified manually.
link = removeInitialColon(link)
if not s then
return p.makeWikitextError(
'no text specified没有输入文字', 'Template:Hatnote#Errors错误',
args.category
)
checkType('_hatnote', 2, options, 'table', true)
options = options or {}
local classes = {'hatnote', 'navigation-not-searchable'}
local extraclasses = options.extraclasses
local selfref = options.selfref
匿名用戶