"साचा:TemplateBox" च्या विविध आवृत्यांमधील फरक

Content deleted Content added
छो set multiline if infobox encountered
छो improved detection of params not to be shown in usage sample
ओळ २५३:
local maxArgLen, eachArg = 0
sep = sep .. sepStart
local comapareLegacyVal = function(val)
return val == 'optional-' or val == 'deprecated'
end
local shouldShow = function(i)
if comapareLegacyVal(pargs[i .. 'stat']) or
comapareLegacyVal(pargs[i .. 'stat-td']) or
pargs[i .. 'deprecated'] == true then
return false
end
return true
end
eachArg = function(cb)
Line २६१ ⟶ २७३:
argName = tostring(i)
end
if pargs[i .. 'stat'] ~= 'optional-' then
if shouldShow(i) then
cb(argName)
end
"https://mr.wikipedia.org/wiki/साचा:TemplateBox" पासून हुडकले