Module:High-use: Difference between revisions

added bot comment sandbox changes based on talk page discussion
m (9 revisions imported: Importing Template:Tmbox, with templates.)
(added bot comment sandbox changes based on talk page discussion)
Line 55:
 
function p.text(frame, count)
local bot_text = "\n\n----\nTransclusion count updated by [[User:Ahechtbot|Ahechtbot]]."
if frame.args["nobot"] == true then
bot_text = ""
end
if count == nil then count = _fetch(frame) end
local return_value = {}
Line 63 ⟶ 68:
end
local templatecount = string.format("https://toolstemplatecount.wmflabstoolforge.org/templatecount/index.php?lang=en&namespace=%s&name=%s",mw.title.getCurrentTitle().namespace,mw.uri.encode(title.text))
local used_on_text = string.format("'''This %s is used on [%s %s pages]'''",
Line 98 ⟶ 103:
end
return table.concat({used_on_text, sandbox_text, discussion_text, " before implementing them.", bot_text})
end
 
Anonymous user