Module:High-use: Difference between revisions
Content deleted Content added
per edit request on talk page - update preview text |
Add local editing help and repair template-index policy and help links; retain index layout |
||
| (One intermediate revision by the same user not shown) | |||
Line 11:
local approx_num_total_pages = 66000000
local user_subpage_info_page = '
local sandbox_module_page = 'Module:Sandbox'
local system_messages_cat = 'Pages used in system messages needing protection'
Line 156:
title:fullUrl():gsub('//(.-)/.*', '%1'),
mw.uri.encode(title.fullText), p._num(args))
if args.demo == 'index' then templateCount = 'on ' .. p._num(args) .. ' pages' end
local used_on_text = "'''This " .. (title:inNamespace('Module') and 'Lua module' or 'template') .. ' is used '
if systemMessages then
Line 170 ⟶ 171:
title:inNamespace('Module') and (sandbox_module_page .. '|module sandbox') or (user_subpage_info_page .. '|user subpage')
)
if args.demo == 'index' then
sandbox_text = "template's sandbox or test-cases subpages, or in your own [[Project:Template index/User namespace|user subpage]]. See [[Project:Template documentation|template testing guidance]]. "
end
local infoArg = args['info'] ~= '' and args['info']
Line 196 ⟶ 201:
end
if args.demo == 'index' then discussion_text = 'Discuss changes with other editors' end
return used_on_text .. sandbox_text .. discussion_text .. ' before implementing them.' .. bot_text
end
| |||