Module:Message box: रिवीजन सभ के बीचा में अंतर
Content deleted Content added
Dated category format में बदलाव |
change span to div to reduce lint errors |
||
लाइन 118:
end
if sort then
cat = string.format('[[
else
cat = string.format('[[
end
self.categories[ns] = self.categories[ns] or {}
लाइन 205:
local sect
if args.sect == '' then
sect = '
elseif type(args.sect) == 'string' then
sect = '
end
local issue = args.issue
लाइन 249:
end
if talkTitle and talkTitle.exists then
local talkText = '
if talkArgIsTalkPage then
talkText = string.format(
'%s [[%s|%s]]
talkText,
talk,
लाइन 259:
else
talkText = string.format(
'%s the [[%s#%s|
talkText,
talkTitle.prefixedText,
लाइन 343:
local date = args.date
date = type(date) == 'string' and date
local preposition = '
for _, num in ipairs(nums) do
local mainCat = args['cat' .. tostring(num)]
लाइन 351:
allCat = type(allCat) == 'string' and allCat
if mainCat and date and date ~= '' then
local catTitle = string.format('%s %s %s',
self:addCat(0, catTitle)
catTitle = getTitleObject('
if not catTitle or not catTitle.exists then
self:addCat(0, '
end
elseif mainCat and (not date or date == '') then
लाइन 412:
if self.invalidTypeError then
local allSort = (self.title.namespace == 0 and 'Main:' or '') .. self.title.prefixedText
self:addCat('all', '
end
if self.isSubstituted then
self:addCat('all', 'Pages with incorrectly substituted templates')
end
end
लाइन 448:
:addClass('error')
:wikitext(string.format(
'
mw.text.nowiki('{{'), self.name, self.name, mw.text.nowiki('}}')
))
लाइन 495:
-- collapsible. At the moment, only ambox uses this.
textCell:cssText(self.textstyle or nil)
local
textCellDiv
:addClass('mbox-text-span')
:wikitext(self.issue or nil)
if (self.talk or self.fix) and not self.isSmall then
:addClass('hide-when-compact')
:wikitext(self.talk and (' ' .. self.talk) or nil)
:wikitext(self.fix and (' ' .. self.fix) or nil)
end
if self.info and not self.isSmall then
textCellDiv
:tag('span')
:addClass('hide-when-compact')
लाइन 513:
end
if self.removalNotice then
:addClass('hide-when-compact')
:tag('i')
लाइन 552:
:css('text-align', 'center')
:wikitext(string.format(
'This message box is using an invalid "type=%s" parameter and needs fixing.',
self.type or ''
))
|