Modul:Transclusion count: Unterschied zwischen den Versionen
Modul:Transclusion count (Quelltext anzeigen)
Version vom 30. September 2020, 01:41 Uhr
, vor 5 Jahrenadd a truthy check too
(ignore blank strings) |
(add a truthy check too) |
||
| Zeile 29: | Zeile 29: | ||
if return_value == nil and frame.args[1] ~= nil then | if return_value == nil and frame.args[1] ~= nil then | ||
local arg1=mw.ustring.match(frame.args[1], '[%d,]+') | local arg1=mw.ustring.match(frame.args[1], '[%d,]+') | ||
if arg1 ~= '' then | if arg1 and arg1 ~= '' then | ||
return_value = tonumber(frame:callParserFunction('formatnum', arg1, 'R')) | return_value = tonumber(frame:callParserFunction('formatnum', arg1, 'R')) | ||
end | end | ||