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('[[श्रेणीCategory:%s|%s]]', cat, sort)
else
cat = string.format('[[श्रेणीCategory:%s]]', cat)
end
self.categories[ns] = self.categories[ns] or {}
लाइन 205:
local sect
if args.sect == '' then
sect = 'एहThis ' .. (cfg.sectionDefault or 'पन्नाpage')
elseif type(args.sect) == 'string' then
sect = 'एहThis ' .. args.sect
end
local issue = args.issue
लाइन 249:
end
if talkTitle and talkTitle.exists then
local talkText = 'संबंधितRelevant चर्चाdiscussion may be found on'
if talkArgIsTalkPage then
talkText = string.format(
'%s [[%s|%s]] पर मिल सके ला।.',
talkText,
talk,
लाइन 259:
else
talkText = string.format(
'%s the [[%s#%s|बातचीतtalk पन्नाpage]] पर मिल सके ला।.',
talkText,
talkTitle.prefixedText,
लाइन 343:
local date = args.date
date = type(date) == 'string' and date
local preposition = 'सेfrom'
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', datemainCat, preposition, mainCatdate)
self:addCat(0, catTitle)
catTitle = getTitleObject('श्रेणीCategory:' .. catTitle)
if not catTitle or not catTitle.exists then
self:addCat(0, 'टेम्पलेटArticles मेंwith गलतinvalid तारीखdate पैरामीटरparameter वालाin लेखtemplate')
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', 'विकिपीडियाWikipedia सनेसाmessage बक्साbox पैरामीटरparameter मेंneeds सुधार चाहत बाfixing', allSort)
end
if self.isSubstituted then
self:addCat('all', 'Pages with incorrectly substituted templates')
self:addCat('all', 'पन्ना जिनहन पर गलत तरीका से टेम्पलेट सबस्टिच्यूट कइल बा')
end
end
लाइन 448:
:addClass('error')
:wikitext(string.format(
'टेम्पलेटTemplate <code>%s[[Template:%s|%s]]%s</code> गलत तरीका सेhas सबस्टिच्यूटbeen कइलincorrectly बा।substituted.',
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 textCellSpantextCellDiv = textCell:tag('spandiv')
textCellDiv
textCellSpan
:addClass('mbox-text-span')
:wikitext(self.issue or nil)
if (self.talk or self.fix) and not self.isSmall then
textCellSpantextCellDiv:tag('span')
:addClass('hide-when-compact')
:wikitext(self.talk and (' ' .. self.talk) or nil)
:wikitext(self.fix and (' ' .. self.fix) or nil)
end
textCellSpantextCellDiv:wikitext(self.date and (' ' .. self.date) or nil)
if self.info and not self.isSmall then
textCellDiv
textCellSpan
:tag('span')
:addClass('hide-when-compact')
लाइन 513:
end
if self.removalNotice then
textCellSpantextCellDiv:tag('small')
: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.',
'एह सनेसा बक्सा में "type=%s" के एक ठो अबैध पैरामीटर इस्तेमाल बा आ सुधार के जरूरत बा।',
self.type or ''
))
"https://bh.wikipedia.org/wiki/Module:Message_box" से लिहल गइल