Module:Transclusion count: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Split main into num and risk) |
(make local) |
||
Line 10: | Line 10: | ||
-- If database value doesn't exist, use value passed to template |
-- If database value doesn't exist, use value passed to template |
||
return_value = tonumber(data[mw.ustring.gsub(template, " ", "_")]) |
local return_value = tonumber(data[mw.ustring.gsub(template, " ", "_")]) |
||
if return_value == nil then |
if return_value == nil then |
||
Line 21: | Line 21: | ||
function p.num(frame) |
function p.num(frame) |
||
count = _fetch(frame) |
local count = _fetch(frame) |
||
-- Build output string |
-- Build output string |