Template:Rfd2: Difference between revisions
Support reason parameter alias |
SilverLocust (talk | contribs) Replace "@subpages" placeholder with working links on all pages, per edit request (and suggestion from 2017) on talk page. |
||
Line 1: | Line 1: | ||
{{{{{|safesubst:}}}#if:{{{multi|}}}||===={{{header|{{{redirect}}}}}}====}}{{{{{|safesubst:}}}if||{{{multi|}}}|| |
{{{{{|safesubst:}}}#if:{{{multi|}}}||===={{{header|{{{redirect}}}}}}====}}{{{{{|safesubst:}}}if||{{{multi|}}}|| |
||
}}*<span {{{{{|safesubst:}}}#ifeq:{{{anchor|}}}|no||id="{{{{{|safesubst:}}}replace|{{{redirect<noinclude>|Examples</noinclude>}}}|"|"}}"}}>{{no redirect|1 = {{{redirect<noinclude>|Examples</noinclude>}}} }}</span> → [[:{{{target<noinclude>|Example</noinclude>}}}]] {{{{{|safesubst:}}}page-multi|t|wlh|h|vlm-sgs|page={{{redirect|Examples}}}|nopage=1|date={{{{{|safesubst:}}}CURRENTTIMESTAMP}}}} <small class="plainlinks"><nowiki>[</nowiki> Closure: '' |
}}*<span {{{{{|safesubst:}}}#ifeq:{{{anchor|}}}|no||id="{{{{{|safesubst:}}}replace|{{{redirect<noinclude>|Examples</noinclude>}}}|"|"}}"}}>{{no redirect|1 = {{{redirect<noinclude>|Examples</noinclude>}}} }}</span> → [[:{{{target<noinclude>|Example</noinclude>}}}]] {{{{{|safesubst:}}}page-multi|t|wlh|h|vlm-sgs|page={{{redirect|Examples}}}|nopage=1|date={{{{{|safesubst:}}}CURRENTTIMESTAMP}}}} <small class="plainlinks"><nowiki>[</nowiki> Closure: ''[{{fullurl:{{{redirect<noinclude>|Examples</noinclude>}}}|action=edit&summary={{Urlencode:[[{{#invoke:TEMPLATENAME|main}}#{{{redirect}}}]] closed as keep}}}} keep]/[{{fullurl:{{{redirect<noinclude>|Examples</noinclude>}}}|action=edit&summary={{Urlencode:[[{{#invoke:TEMPLATENAME|main}}#{{{redirect}}}]] closed as retarget}}}} retarget]<span class="sysop-show">/[{{fullurl:{{{redirect<noinclude>|Examples</noinclude>}}}|action=delete&wpReason={{Urlencode:[[{{#invoke:TEMPLATENAME|main}}#{{{redirect}}}]] closed as delete}}&wpMovetalk=1}} delete]</span>'' ]</small>{{{{{|safesubst:}}}#if:{{{text|{{{reason|}}}}}}| |
||
{{{text|{{{reason}}}}}}|}}<noinclude> |
{{{text|{{{reason}}}}}}|}}<noinclude> |
Latest revision as of 22:18, 5 June 2024
{{{redirect}}}
This template should always be substituted (i.e., use {{subst:Rfd2}} ). |
If you plan to make breaking changes to this template, move it, or nominate it for deletion, please notify Twinkle's users and maintainers at Wikipedia talk:Twinkle as a courtesy, as the standard installation of Twinkle adds and removes this template. Thank you! |
If you plan to make breaking changes to this template, move it, or nominate it for deletion, please notify XFDcloser's users and maintainers at Wikipedia talk:XFDcloser as a courtesy, as this template is used in the standard installation of XFDcloser. Thank you! |
This template uses Lua: |
Usage
This template must be substituted (i.e. subst:
must be used), otherwise an error will appear. When posted correctly, an external link labeled "stats" will be the last item in parentheses, as in the examples below in the examples sections.
Single nomination listing
{{subst:rfd2|redirect=RedirectName|target=TargetArticle|text=The action you would like to occur (deletion, re-targeting, etc.) and the rationale for that action.}} ~~~~
Multiple nomination listing
{{subst:rfd2|redirect=RedirectName1|target=TargetArticle1}}
{{subst:rfd2|multi=yes|redirect=RedirectName2|target=TargetArticle2}}
{{subst:rfd2|multi=yes|redirect=RedirectNameN|target=TargetArticleN|text=The action you would like to occur (deletion, re-targeting, etc.) and the rationale for that action.}} ~~~~
The code above will output a list of three redirects. For two redirects, omit the second line; for more than three redirects, repeat the second line as many times as is necessary.
When combining multiple redirects in this manner, the redirect put in the {{rfd2}} template without |multi=yes
will be the name used for the section header. Therefore, it is advisable to put the most generally named redirect in the first line. If this is not possible, you may use |header=
in the first listing, to set the heading text as desired.
Alternatively, one may use {{subst:rfd2 multi}}
for up to 10 listings.
Custom header
To add a custom header before the first nomination, |header=
can be added to the template to customize the header. Note: if the |multi=
parameter is used, then there will not be a header, even if the |header=
parameter is used.
Single nomination examples
Example 1
{{subst:rfd2|redirect=US|target=United Kingdom}}
appears as:
US
Example 2
{{subst:rfd2|redirect=British SSR|target=United Kingdom}}
appears as:
British SSR
- British SSR → United Kingdom (talk · links · history · stats) [ Closure: keep/retarget/delete ]
Example 3
{{subst:rfd2|header=A redirect example towards [[United Kingdom]]|redirect=UK|target=United Kingdom}}
appears as:
A redirect example towards United Kingdom
Multiple nomination examples
Example 4
{{subst:rfd2|redirect=Greek Republic|target=Greece}}
{{subst:rfd2|multi=yes|redirect=Hellenic Republic|target=Greece}}
{{subst:rfd2|multi=yes|redirect=Greek isles|target=List of islands of Greece|text=These redirects are misleading.}}
appears as:
Greek Republic
- Greek Republic → Greece (talk · links · history · stats) [ Closure: keep/retarget/delete ]
- Hellenic Republic → Greece (talk · links · history · stats) [ Closure: keep/retarget/delete ]
- Greek isles → List of islands of Greece (talk · links · history · stats) [ Closure: keep/retarget/delete ]
These redirects are misleading.
Example 5
{{subst:rfd2|header=Several Greece-related redirects|redirect=Greek Republic|target=Greece}}
{{subst:rfd2|multi=yes|redirect=Hellenic Republic|target=Greece}}
{{subst:rfd2|multi=yes|redirect=Greek isles|target=List of islands of Greece|text=These redirects are misleading.}}
appears as:
Several Greece-related redirects
- Greek Republic → Greece (talk · links · history · stats) [ Closure: keep/retarget/delete ]
- Hellenic Republic → Greece (talk · links · history · stats) [ Closure: keep/retarget/delete ]
- Greek isles → List of islands of Greece (talk · links · history · stats) [ Closure: keep/retarget/delete ]
These redirects are misleading.