Module:Message box: Difference between revisions
From Mariopedia, a wiki on Mario, Yoshi, Wario, Donkey Kong, Super Smash Bros., and more!
Jump to navigationJump to search
Content added Content deleted
(show link to talk discussion when used in small format, per request) |
m (1 revision imported from meta:Module:Message_box: Import template required for Template:Temporary prevention of automatic archiving) |
||
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') |