Module:Message box: Difference between revisions
Content added Content deleted
m (14 revisions imported) |
(show link to talk discussion when used in small format, per request) |
||
Line 268: | Line 268: | ||
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) |
|||
'%s [[%s|%s]].', |
|||
else |
|||
talkText, |
|||
⚫ | |||
talk, |
|||
⚫ | |||
⚫ | |||
⚫ | |||
) |
|||
'%s [[%s|%s]].', |
|||
else |
|||
talkText, |
|||
⚫ | |||
talk, |
|||
⚫ | |||
⚫ | |||
talkText, |
|||
) |
|||
⚫ | |||
else |
|||
talk |
|||
⚫ | |||
) |
|||
⚫ | |||
end |
|||
talkText, |
|||
⚫ | |||
talk |
|||
) |
|||
end |
|||
end |
|||
self.talk = talkText |
self.talk = talkText |
||
end |
end |
||
Line 524: | Line 530: | ||
:addClass('mbox-text-span') |
:addClass('mbox-text-span') |
||
:wikitext(self.issue or nil) |
:wikitext(self.issue or nil) |
||
if (self.talk or self.fix) |
if (self.talk or self.fix) then |
||
textCellDiv:tag('span') |
textCellDiv:tag('span') |
||
:addClass('hide-when-compact') |
:addClass('hide-when-compact') |