Module:High-use: Difference between revisions
Content deleted Content added
m Localise imported template guidance and policy links; preserve index layout and licence information |
Add local editing help and repair template-index policy and help links; retain index layout |
||
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
| |||