Bearbeiten von „Modul:Message box“
Die Bearbeitung kann rückgängig gemacht werden. Bitte prüfe den Vergleich unten, um sicherzustellen, dass du dies tun möchtest, und veröffentliche dann unten deine Änderungen, um die Bearbeitung rückgängig zu machen.
Aktuelle Version | Dein Text | ||
Zeile 10: | Zeile 10: | ||
-- Get a language object for formatDate and ucfirst. | -- Get a language object for formatDate and ucfirst. | ||
local lang = mw.language.getContentLanguage() | local lang = mw.language.getContentLanguage() | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
Zeile 281: | Zeile 278: | ||
end | end | ||
self.info = args.info | self.info = args.info | ||
end | end | ||
Zeile 499: | Zeile 493: | ||
:addClass('mbox-text-span') | :addClass('mbox-text-span') | ||
:wikitext(self.issue or nil) | :wikitext(self.issue or nil) | ||
if | if not self.isSmall then | ||
textCellSpan:tag('span') | textCellSpan:tag('span') | ||
:addClass('hide-when-compact') | :addClass('hide-when-compact') | ||
Zeile 506: | Zeile 500: | ||
end | end | ||
textCellSpan:wikitext(self.date and (' ' .. self.date) or nil) | textCellSpan:wikitext(self.date and (' ' .. self.date) or nil) | ||
if | if not self.isSmall then | ||
textCellSpan | textCellSpan | ||
:tag('span') | :tag('span') | ||
:addClass('hide-when-compact') | :addClass('hide-when-compact') | ||
:wikitext(self.info and (' ' .. self.info) or nil) | :wikitext(self.info and (' ' .. self.info) or nil) | ||
end | end | ||
else | else | ||
Zeile 577: | Zeile 565: | ||
function p.main(boxType, args, cfgTables) | function p.main(boxType, args, cfgTables) | ||
local box = MessageBox.new(boxType, args, cfgTables or mw.loadData( | local box = MessageBox.new(boxType, args, cfgTables or mw.loadData('Module:Message box/configuration')) | ||
box:setParameters() | box:setParameters() | ||
box:setCategories() | box:setCategories() |