Changes
Jump to navigation
Jump to search
Line 190:
Line 190:
− self.lang = args.lang
− self.dir = args.dir or (args.lang and 'auto' or nil)
Line 270:
Line 268:
− local talkText = 'Relevant discussion may be found on'+
− if talkArgIsTalkPage then+
− talkText = string.format(+
− '%s [[%s|%s]].',+
− talkText,+
− talk,+
− talkTitle.prefixedText+
− )+
− else+
− talkText = string.format(+
− '%s the [[%s#%s|talk page]].',+
− talkText,+
− talkTitle.prefixedText,+
− talk+
− )+
− end+
+
+
+
+
+
+
Line 299:
Line 303:
− +
Line 322:
Line 326:
− +
Line 490:
Line 494:
− if self.lang then
− boxTable:attr('lang', self.lang)
− end
− if self.dir then
− boxTable:attr('dir', self.dir)
− end
Line 532:
Line 530:
− +
Line 546:
Line 544:
− +
per tper
self:addClass(args.class)
self:addClass(args.class)
self.style = args.style
self.style = args.style
self.attrs = args.attrs
self.attrs = args.attrs
end
end
if talkTitle and talkTitle.exists then
if talkTitle and talkTitle.exists then
local talkText
if self.isSmall then
local talkLink = talkArgIsTalkPage and talk or (talkTitle.prefixedText .. '#' .. talk)
talkText = string.format('([[%s|talk]])', talkLink)
else
talkText = 'Relevant discussion may be found on'
if talkArgIsTalkPage then
talkText = string.format(
'%s [[%s|%s]].',
talkText,
talk,
talkTitle.prefixedText
)
else
talkText = string.format(
'%s the [[%s#%s|talk page]].',
talkText,
talkTitle.prefixedText,
talk
)
end
end
self.talk = talkText
self.talk = talkText
end
end
end
end
if date then
if date then
self.date = string.format(" <small class='date-container'>''(<span class='date'>%s</span>)''</small>", date)
self.date = string.format(" <span class='date-container'>''(<span class='date'>%s</span>)''</span>", date)
end
end
self.info = args.info
self.info = args.info
self.imageEmptyCell = cfg.imageEmptyCell
self.imageEmptyCell = cfg.imageEmptyCell
if cfg.imageEmptyCellStyle then
if cfg.imageEmptyCellStyle then
self.imageEmptyCellStyle = 'border:none;padding:0px;width:1px'
self.imageEmptyCellStyle = 'border:none;padding:0;width:1px'
end
end
:attr('role', 'presentation')
:attr('role', 'presentation')
if self.attrs then
if self.attrs then
boxTable:attr(self.attrs)
boxTable:attr(self.attrs)
:addClass('mbox-text-span')
:addClass('mbox-text-span')
:wikitext(self.issue or nil)
:wikitext(self.issue or nil)
if (self.talk or self.fix) and not self.isSmall then
if (self.talk or self.fix) then
textCellDiv:tag('span')
textCellDiv:tag('span')
:addClass('hide-when-compact')
:addClass('hide-when-compact')
end
end
if self.removalNotice then
if self.removalNotice then
textCellDiv:tag('small')
textCellDiv:tag('span')
:addClass('hide-when-compact')
:addClass('hide-when-compact')
:tag('i')
:tag('i')