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

Content deleted Content added
छो quickfix
छो new function "argCount"
ओळ २:
@exports
usagesample( frame )
hasArgs( frame )
args2table( args, onGetKey, forCustom )
paramtable( frame )
Line १२ ⟶ १३:
-------------------- USAGE PART ----------------------
------------------------------------------------------
function p.argCount( frame )
local pargs = ( frame:getParent() or {} ).args or {}
local ac = 0
for i, arg in pairs( pargs ) do
if ('number' == type(i)) then
ac = ac + 1
end
end
return ac
end
 
function p.usagesample( frame )
local pargs = ( frame:getParent() or {} ).args or {}
"https://mr.wikipedia.org/wiki/साचा:TemplateBox" पासून हुडकले