Anonymous user
Module:Message box: Difference between revisions
m
66 revisions imported from wikipedia:Module:Message_box
(show link to talk discussion when used in small format, per request) |
m (66 revisions imported from wikipedia:Module:Message_box) |
||
Line 12:
-- Define constants
local CONFIG_MODULE = 'Module:Message box/configuration'
local DEMOSPACES = {user = 'tmbox', talk = 'tmbox', image = 'imbox', file = 'imbox', category = 'cmbox', article = 'ambox', main = 'ambox'}
--------------------------------------------------------------------------------
Line 268:
end
if talkTitle and talkTitle.exists then
'%s [[%s|%s]].',
talkText,
talk,
▲ talkText = 'Relevant discussion may be found on'
▲ if talkArgIsTalkPage then
)
▲ talkText = string.format(
else
talkText,
▲ talkTitle.prefixedText
talk
)
▲ talkText = string.format(
end
▲ '%s the [[%s#%s|talk page]].',
▲ talkTitle.prefixedText,
self.talk = talkText
end
Line 530 ⟶ 524:
:addClass('mbox-text-span')
:wikitext(self.issue or nil)
if (self.talk or self.fix) and not self.isSmall then
textCellDiv:tag('span')
:addClass('hide-when-compact')
|