Jump to content

Module:High-use: Difference between revisions

Stripped some of the formality and unnecessary verbiage that only takes space, decreasing the likelihood banners will actually be read
m (Protected "Module:High-use": High-risk template or module (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite)))
(Stripped some of the formality and unnecessary verbiage that only takes space, decreasing the likelihood banners will actually be read)
Line 36: Line 36:
if frame.args["all-pages"] and frame.args["all-pages"] ~= "" then
if frame.args["all-pages"] and frame.args["all-pages"] ~= "" then
local percent = math.floor( ( (count/frame:callParserFunction('NUMBEROFPAGES', 'R') ) * 100) + 0.5)
local percent = math.floor( ( (count/frame:callParserFunction('NUMBEROFPAGES', 'R') ) * 100) + 0.5)
return_value = string.format("%s pages, which is ≈%s%% of all", return_value, percent)
return_value = string.format("%s pages, roughly %s%% of all", return_value, percent)
end
end
end
end
Line 82: Line 82:
info = "<br />" .. frame.args["info"]
info = "<br />" .. frame.args["info"]
end
end
sandbox_text = string.format(".%s<br /> To avoid large-scale disruption and unnecessary server load, any changes to it should first be tested in the %sThe tested changes can then be added to this page in a single edit.&#x20;",
sandbox_text = string.format(".%s<br /> To avoid major disruption and server load, any changes should be tested in the %sThe tested changes can be added to this page in a single edit.&#x20;",
info, sandbox_text
info, sandbox_text
)
)
else
else
sandbox_text = string.format(", so changes to it will be widely noticed. Please test any changes in the %s",
sandbox_text = string.format("and changes may be widely noticed. Test changes in the %s",
sandbox_text
sandbox_text
)
)
end
end
local discussion_text = "Please consider discussing changes "
local discussion_text = "Please discuss changes "
if frame.args["2"] and frame.args["2"] ~= "" and frame.args["2"] ~= "yes" then
if frame.args["2"] and frame.args["2"] ~= "" and frame.args["2"] ~= "yes" then
discussion_text = string.format("%sat [[%s]]", discussion_text, frame.args["2"])
discussion_text = string.format("%sat [[%s]]", discussion_text, frame.args["2"])
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.