Module:Transclusion count: Difference between revisions

Jump to navigation Jump to search
add a truthy check too
(ignore blank strings)
(add a truthy check too)
Line 29:
if return_value == nil and frame.args[1] ~= nil then
local arg1=mw.ustring.match(frame.args[1], '[%d,]+')
if arg1 and arg1 ~= '' then
return_value = tonumber(frame:callParserFunction('formatnum', arg1, 'R'))
end
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu