Module:High-use: Difference between revisions
From Roses, Tulips, & Liberty
Content added Content deleted
(Fix Linter errors) |
(Fix missing full stops and support the info parameter regardless of how many pages there are.) |
||
Line 90: | Line 90: | ||
) |
) |
||
⚫ | |||
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 |
|||
⚫ | |||
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 = |
sandbox_text = (infoArg and ('.<br />' .. infoArg .. ' C') or ' and c') .. |
||
'hanges may be widely noticed. Test changes in the ' .. sandbox_text |
|||
end |
end |
||