Module:Message box: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
add templatestyles, remove a variable or two as a result |
imported>Ravidreams சி en:Module:Message_box இலிருந்து திருத்தம் இறக்குமதி செய்யப்பட்டன |
||
| (8 பயனர்களால் செய்யப்பட்ட 9 இடைப்பட்ட திருத்தங்கள் காட்டப்படவில்லை.) | |||
வரிசை 1:
require('
local getArgs
local yesno = require('Module:Yesno')
வரிசை 155:
self.typeClass = typeData.class
self.typeImage = typeData.image
self.typeImageNeedsLink = typeData.imageNeedsLink
-- Find if the box has been wrongly substituted.
வரி 187 ⟶ 188:
-- Set text style.
self.textstyle = args.textstyle
-- Set image classes.
self.imageRightClass = args.imagerightclass or args.imageclass
self.imageLeftClass = args.imageleftclass or args.imageclass
-- Find if we are on the template page or not. This functionality is only
வரி 263 ⟶ 268:
local talkText
if self.isSmall then
local talkLink = talkArgIsTalkPage and talk or (talkTitle.prefixedText .. (talk == '#' and '' or '#') .. talk)
talkText = string.format('([[%s|talk]])', talkLink)
else
வரி 276 ⟶ 281:
else
talkText = string.format(
'%s the [[%s' .. (talk == '#' and '' or '#') .. '%s|talk page]].',
talkText,
talkTitle.prefixedText,
வரி 329 ⟶ 334:
and (cfg.imageSmallSize or '30x30px')
or '40x40px'
self.imageLeft = string.format('[[File:%s|%s
or '
end
end
வரி 518 ⟶ 523:
imageLeftCell = imageLeftCell:tag('div'):addClass('mbox-image-div')
end
imageLeftCell
:addClass(self.imageLeftClass)
:wikitext(self.imageLeft or nil)
elseif self.imageEmptyCell then
-- Some message boxes define an empty cell if no image is specified, and
வரி 573 ⟶ 580:
end
imageRightCell
:addClass(self.imageRightClass)
:wikitext(self.imageRight or nil)
end
| |||