Module:Message box: Difference between revisions
m
1 revision imported from wikipedia:Module:Message_box
(per tper) |
m (1 revision imported from wikipedia:Module:Message_box) |
||
(One intermediate revision by the same user not shown) | |||
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 303 ⟶ 297:
end
if date then
self.date = string.format(" <
end
self.info = args.info
Line 326 ⟶ 320:
self.imageEmptyCell = cfg.imageEmptyCell
if cfg.imageEmptyCellStyle then
self.imageEmptyCellStyle = 'border:none;padding:
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')
Line 544 ⟶ 538:
end
if self.removalNotice then
textCellDiv:tag('
:addClass('hide-when-compact')
:tag('i')
|