Module:High-use: Difference between revisions
en>Jonesey95 Fix Linter errors |
en>GKFX 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 | if infoArg then | ||
info = info .. "<br />" .. | 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 | sandbox_text = (infoArg and ('.<br />' .. infoArg .. ' C') or ' and c') .. | ||
'hanges may be widely noticed. Test changes in the ' .. sandbox_text | |||
end | end | ||