Module:Message box: Difference between revisions
Content added Content deleted
(Reverting) |
(username removed) m (1 revision imported from loginwiki:Module:Message_box: Updating template with latest edits from loginwiki) |
||
Line 6:
local getArgs
local yesno = require('Module:Yesno')
-- Get a language object for formatDate and ucfirst.
Line 13 ⟶ 12:
-- Define constants
local CONFIG_MODULE = 'Module:Message box/configuration'
local DEMOSPACES = {
--------------------------------------------------------------------------------
Line 269 ⟶ 268:
end
if talkTitle and talkTitle.exists then
local talkText
local talkText = 'Relevant discussion may be found on'▼
if self.isSmall then
if talkArgIsTalkPage then▼
local talkLink = talkArgIsTalkPage and talk or (talkTitle.prefixedText .. '#' .. talk)
talkText = string.format(▼
talkText = string.format('([[%s|talk]])', talkLink)
else
talkTitle.prefixedText▼
'%s [[%s|%s]].',
talkText,
talkText = string.format(▼
talk,
'%s the [[%s#%s|talk page]].',▼
)
talkTitle.prefixedText,▼
else
talkText,
talk
)
end
end
self.talk = talkText
end
Line 298 ⟶ 303:
end
if date then
self.date = string.format(" <
end
self.info = args.info
Line 321 ⟶ 326:
self.imageEmptyCell = cfg.imageEmptyCell
if cfg.imageEmptyCellStyle then
self.imageEmptyCellStyle = 'border:none;padding:
end
Line 525 ⟶ 530:
:addClass('mbox-text-span')
:wikitext(self.issue or nil)
if (self.talk or self.fix)
textCellDiv:tag('span')
:addClass('hide-when-compact')
Line 539 ⟶ 544:
end
if self.removalNotice then
textCellDiv:tag('
:addClass('hide-when-compact')
:tag('i')
Line 607 ⟶ 612:
box:setCategories()
return box:export()
end
|