Jump to content

Module:Transclusion count: Difference between revisions

make local
(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
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.