| This module is rated as ready for general use. It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
Usage
generates links for {{Editnotices/Page/Module:Asbox}}
function link(name, preload)
return ('[%s <span style="color:#ba0000">%s</span>]'):format(mw.title.new(name):fullUrl{action = 'edit', preload = preload}, name)
end
return {
article = function() return link('Asbox article test', 'Template:Asbox') end,
template = function() return link('Template:Asbox test', 'Template:Asbox') end,
subpage = function() return link('Template:Asbox/subpage test', 'Template:Asbox') end,
user = function() return link('User:Østfold test', 'Template:Østfold-geo-stub') end,
sync = function() return link('Module:Asbox/sandbox', 'Module:Asbox') end,
special = function(frame) return ('[%s %s]'):format(mw.title.new('Special:TemplateSandbox'):fullUrl{prefix = 'Module:Asbox/sandbox', page = (frame.args[1] or 'User:Codehydro/Asbox userspace testcase'):match'^%s*(.-)%s*$'}, frame.args[2] or 'click here') end
}
