Module:Message box: Difference between revisions
Content added Content deleted
Sakura emad (talk | contribs) m (1 revision imported from wikipedia:Module:Message_box) |
(Testing) |
||
Line 6:
local getArgs
local yesno = require('Module:Yesno')
local templatestyles = 'Module:Message box/styles.css'
styles = 'Module:Message box/styles.css'
-- Get a language object for formatDate and ucfirst.
Line 12 ⟶ 14:
-- 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 ⟶ 270:
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 ⟶ 299:
end
if date then
self.date = string.format(" <
end
self.info = args.info
Line 326 ⟶ 322:
self.imageEmptyCell = cfg.imageEmptyCell
if cfg.imageEmptyCellStyle then
self.imageEmptyCellStyle = 'border:none;padding:
end
Line 530 ⟶ 526:
: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 ⟶ 540:
end
if self.removalNotice then
textCellDiv:tag('
:addClass('hide-when-compact')
:tag('i')
Line 612 ⟶ 608:
box:setCategories()
return box:export()
end
local function templatestyles(frame, src)
return mw.getCurrentFrame():extensionTag{ name = 'templatestyles', args = { src = templatestyles} }
.. 'CONFIG_MODULE'
end
|