Module:High-use: Difference between revisions

No change in size ,  3 years ago
couple of mistakes
(Copy from sandbox as discussed on talk page)
(couple of mistakes)
Line 75: Line 75:
local used_on_text = "'''This " .. (mw.title.getCurrentTitle().namespace == 828 and "Lua module" or "template") .. ' is used ';
local used_on_text = "'''This " .. (mw.title.getCurrentTitle().namespace == 828 and "Lua module" or "template") .. ' is used ';
if systemMessages then
if systemMessages then
used_on_text = used_on_text .. ' in ' .. systemMessages ..
used_on_text = used_on_text .. systemMessages ..
((count > 2000) and (",''' and " .. templateCount) or (".'''"))
((count and count > 2000) and (",''' and " .. templateCount) or (".'''"))
else
else
used_on_text = used_on_text .. templateCount .. "'''"
used_on_text = used_on_text .. templateCount .. "'''"
Anonymous user