440
edits
No edit summary |
m (24 revisions imported from wikipedia:Module:High-use) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 60:
-- Only show the information about how this template gets updated if someone
-- is actually editing the page and maybe trying to update the count.
local bot_text = (frame:preprocess("{{REVISIONID}}") == "") and "\n\n----\n'''Preview message''': Transclusion count updated automatically ([[Template:High-use/doc#Technical details|see documentation]]
if count == nil then count = _fetch(frame) end
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 (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 />" ..
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 =
'hanges may be widely noticed. Test changes in the ' .. sandbox_text
end
|