Zum Inhalt springen

Modul:Message box: Unterschied zwischen den Versionen

control for blank values of issue, fix, and subst
(switch indentation to tabs)
(control for blank values of issue, fix, and subst)
Zeile 176: Zeile 176:
-- Find whether we are using a small message box.
-- Find whether we are using a small message box.
if cfg.allowSmall and (
if cfg.allowSmall and (
cfg.smallParam and args.small == cfg.smallParam
cfg.smallParam and args.small == cfg.smallParam
or not cfg.smallParam and yesno(args.small)
or not cfg.smallParam and yesno(args.small)
)
)
then
then
self.isSmall = true
self.isSmall = true
Zeile 221: Zeile 221:
end
end
local issue = args.issue
local issue = args.issue
issue = type(issue) == 'string' and issue or nil
issue = type(issue) == 'string' and issue ~= '' and issue or nil
local text = args.text
local text = args.text
text = type(text) == 'string' and text or nil
text = type(text) == 'string' and text or nil
Zeile 259: Zeile 259:


-- Get other values.
-- Get other values.
self.fix = args.fix
self.fix = args.fix ~= '' and args.fix or nil
local date
local date
if args.date and args.date ~= '' then
if args.date and args.date ~= '' then