Module:High-use: Difference between revisions

m
2 revisions imported from wikipedia:Module:High-use
(Fix Linter errors)
m (2 revisions imported from wikipedia:Module:High-use)
 
(3 intermediate revisions by 2 users not shown)
Line 78:
if systemMessages then
used_on_text = used_on_text .. systemMessages ..
((count and count > 2000) and (",''' and " .. templateCount) or (".'''"))
else
used_on_text = used_on_text .. templateCount .. "'''"
Line 90:
)
if local infoArg = frame.args["info"] ~= "" and frame.args["info"] ~= "" then
if (systemMessages or frame.args[1] == "risk" or (count and count >= 100000) ) then
local info = systemMessages and '.<br/>Changes to it can cause immediate changes to the Wikipedia user interface.' or '.'
if infoArg then
if frame.args["info"] and frame.args["info"] ~= "" then
info = info .. "<br />" .. frame.args["info"]infoArg
end
sandbox_text = info .. '<br /> To avoid major disruption' ..
Line 100 ⟶ 101:
'The tested changes can be added to this page in a single edit. '
else
sandbox_text = '(infoArg and changes('.<br may/>' be.. widelyinfoArg noticed.. Test' changesC') inor the' and c') .. sandbox_text
'hanges may be widely noticed. Test changes in the ' .. sandbox_text
end