Module:High-use: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (1 revision imported)
(Fix missing full stops and support the info parameter regardless of how many pages there are.)
Line 90: Line 90:
)
)
local infoArg = frame.args["info"] ~= "" and frame.args["info"]
if (systemMessages or frame.args[1] == "risk" or (count and count >= 100000) ) 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 ''
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"]
info = info .. "<br />" .. infoArg
end
end
sandbox_text = info .. '<br /> To avoid major disruption' ..
sandbox_text = info .. '<br /> To avoid major disruption' ..
Line 100: Line 101:
'The tested changes can be added to this page in a single edit. '
'The tested changes can be added to this page in a single edit. '
else
else
sandbox_text = ' and changes may be widely noticed. Test changes in the ' .. sandbox_text
sandbox_text = (infoArg and ('.<br />' .. infoArg .. ' C') or ' and c') ..
'hanges may be widely noticed. Test changes in the ' .. sandbox_text
end
end