![]() | This module is rated as ready for general use. It has reached a mature form and is thought to be relatively 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. |
![]() | This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
![]() | If you plan to make breaking changes to this module, move it, change scope, or nominate it for deletion or deprecation, please notify the Article Alerts project at Wikipedia talk:Article alerts as a courtesy, as this page is used by the AAlertBot bot to detect and report pages. Thank you! |
![]() | Any breaking changes to this template, including moving it or nominating it for deletion, must be communicated in advance to Twinkle's users and maintainers at Wikipedia talk:Twinkle. The standard installation of Twinkle relies on this template. Thank you. |
![]() | This module depends on the following other modules: |
Background
Implements {{Redirect for discussion}}.
Usage
{{#invoke:RfD|function_name}}
local p = {}
-- called if the redirect up for discussion is being transcluded
p['1'] = function(frame)
return frame:getParent():preprocess(mw.title.new(frame.args[1]):getContent())
end
-- called if the redirect up for discussion is being viewed
p[''] = function(frame)
return frame.args[3] .. '\n\n#REDIRECT [[' .. frame.args[1] .. ']]\n' .. frame.args[2]
end
return p