יחידה:ParamValidator: הבדלים בין גרסאות בדף

מ תקלדה
בג טפשי
שורה 30: שורה 30:
-- "templatename" is replaced with the actual template name,
-- "templatename" is replaced with the actual template name,
-- "paramname" is replaced by a comma-separated list of parameters offending the rule.
-- "paramname" is replaced by a comma-separated list of parameters offending the rule.
-- "paramnamevalue" is replaced by comma-separated list of "name: value" pairs of parameters and values
-- "paramandvalue" is replaced by comma-separated list of "name: value" pairs of parameters and values


if the value of some keys is null, this error condition will be ignored, and not counted when calculating "any" and "multiple" conditions.
if the value of some keys is null, this error condition will be ignored, and not counted when calculating "any" and "multiple" conditions.
שורה 125: שורה 125:
end
end
if #paramvaluetab then  
if #paramvaluetab then  
s = mw.ustring.gsub( s, 'paramnamevalue', table.concat( paramvaluetab, ', ' ) )
s = mw.ustring.gsub( s, 'paramandvalue', table.concat( paramvaluetab, ', ' ) )
end
end
return s
return s