Module:Message box: திருத்தங்களுக்கு இடையிலான வேறுபாடு

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
bug fix: isSmall --> self.isSmall
change the smalltext logic to work with collapsible text fields
வரிசை 216:
 
-- Get the self.issue value.
localif sectself.isSmall =and args.sectsmalltext then
self.textissue = args.smalltext or args.text
if presentButBlank(sect) then
sect = 'This ' .. (cfg.sectionDefault or 'page')
elseif type(sect) == 'string' then
sect = 'This ' .. sect
else
local sect = nilargs.sect
if presentButBlank(sect) then
sect = 'This ' .. (cfg.sectionDefault or 'page')
elseif type(sect) == 'string' then
sect = 'This ' .. sect
else
sect = nil
end
local issue = args.issue
issue = type(issue) == 'string' and issue or nil
local text = args.text
text = type(text) == 'string' and text or nil
local issues = {}
tinsert(issues, sect)
tinsert(issues, issue)
tinsert(issues, text)
self.issue = tconcat(issues, ' ')
end
local issue = args.issue
issue = type(issue) == 'string' and issue or nil
local text = args.text
text = type(text) == 'string' and text or nil
local issues = {}
tinsert(issues, sect)
tinsert(issues, issue)
tinsert(issues, text)
self.issue = tconcat(issues, ' ')
 
-- Get the self.talk value.
வரி 274 ⟶ 278:
-- and also by ambox when small=yes.
if self.isSmall then
self.text = args.smalltext or selfargs.issuetext
if self.useCollapsibleTextFields then
self.text = args.smalltext or self.issue
else
self.text = args.smalltext or args.text
end
else
self.text = args.text
"https://tamilar.wiki/w/Module:Message_box" இலிருந்து மீள்விக்கப்பட்டது