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