Anonymous user
Module:Message box: Difference between revisions
show link to talk discussion when used in small format, per request
m (14 revisions imported) |
(show link to talk discussion when used in small format, per request) |
||
Line 268:
end
if talkTitle and talkTitle.exists then
local talkText
local talkText = 'Relevant discussion may be found on'▼
if self.isSmall then
if talkArgIsTalkPage then▼
local talkLink = talkArgIsTalkPage and talk or (talkTitle.prefixedText .. '#' .. talk)
talkText = string.format(▼
talkText = string.format('([[%s|talk]])', talkLink)
else
talkTitle.prefixedText▼
'%s [[%s|%s]].',
talkText,
talkText = string.format(▼
talk,
'%s the [[%s#%s|talk page]].',▼
)
talkTitle.prefixedText,▼
else
talkText,
talk
)
end
end
self.talk = talkText
end
Line 524 ⟶ 530:
:addClass('mbox-text-span')
:wikitext(self.issue or nil)
if (self.talk or self.fix)
textCellDiv:tag('span')
:addClass('hide-when-compact')
|