Difference between revisions of "Template:Ffd2"
imported>George Ho |
imported>JJMC89 (simplify) |
||
| Line 1: | Line 1: | ||
| − | < | + | <includeonly>{{SAFESUBST:<noinclude />#if:{{{multi|}}}||===={{SAFESUBST:<noinclude />#if:{{{header|}}}|{{{header}}}|[[:File:{{SAFESUBST:<noinclude />BASEPAGENAME:{{{1}}}}}]]}}====}} |
| − | {{ | + | {{SAFESUBST:<noinclude />#ifeq:{{{1}}}|File_name.ext|{{error|Error: You must replace ''File_name.ext'' with the actual name of the file you are nominating for deletion when using {{subst|ffd2}}.}}|:<span class="plainlinks nourlexpansion lx ffd-file" id="File:{{SAFESUBST:<noinclude />BASEPAGENAME:{{{1}}}}}">[[:File:{{SAFESUBST:<noinclude />ucfirst:{{SAFESUBST:<noinclude />BASEPAGENAME:{{{1}}}}}}}]] ([{{fullurl:File:{{SAFESUBST:<noinclude />BASEPAGENAME:{{{1}}}}}|action=delete&wpReason={{SAFESUBST:<noinclude />urlencode:[[{{SAFESUBST:<noinclude />FULLPAGENAME}}#File:{{SAFESUBST:<noinclude />BASEPAGENAME:{{{1}}}}}]]}}}} delete] {{!}} [[File talk:{{SAFESUBST:<noinclude />ucfirst:{{SAFESUBST:<noinclude />BASEPAGENAME:{{{1}}}}}}}|talk]] {{!}} [{{fullurl:File:{{SAFESUBST:<noinclude />ucfirst:{{SAFESUBST:<noinclude />BASEPAGENAME:{{{1}}}}}}}|action=history}} history] {{!}} [[Special:WhatLinksHere/File:{{SAFESUBST:<noinclude />ucfirst:{{SAFESUBST:<noinclude />BASEPAGENAME:{{{1}}}}}}}|links]] {{!}} [{{fullurl:Special:Log|page={{SAFESUBST:<noinclude />urlencode:File:{{SAFESUBST:<noinclude />ucfirst:{{SAFESUBST:<noinclude />BASEPAGENAME:{{{1}}}}}}}}}}} logs])</span>{{SAFESUBST:<noinclude />#if:{{{uploader|{{{Uploader|}}}}}}| – uploaded by [[User talk:{{{uploader|{{{Uploader}}}}}}#File:{{SAFESUBST:<noinclude />BASEPAGENAME:{{{1}}}}} listed for discussion|{{{uploader|{{{Uploader}}}}}}]] (<span class="plainlinks">[{{fullurl:User talk:{{{uploader|{{{Uploader}}}}}}|action=edit&preload=Template:Fdw_preload&preloadparams%5B%5D={{SAFESUBST:<noinclude />urlencode:File:{{SAFESUBST:<noinclude />BASEPAGENAME:{{{1}}}}}}}&editintro=Template:Fdw_editintro§ion=new&create=Post+a+comment}} notify]</span> {{!}} [[Special:Contributions/{{{uploader|{{{Uploader}}}}}}|contribs]] {{!}} [[Special:ListFiles/{{{uploader|{{{Uploader}}}}}}|uploads]] {{!}} [[Special:Log/upload/{{{uploader|{{{Uploader}}}}}}|upload log]]).}}}}{{SAFESUBST:<noinclude />#if:{{{reason|{{{Reason|}}}}}}| |
| − | {{{ | + | {{{reason|{{{Reason}}}}}}}}</includeonly><noinclude> |
| − | |||
| − | |||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 19:57, 3 December 2017
| 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 this template is used in the standard installation of Twinkle. Thank you! |
Contents
Usage
Please nominate images for discussion under the current day of Wikipedia:Files for discussion.
Single nomination listing
Template:Tlsc ~~~~
File:Foo bar.jpg
- File:Foo bar.jpg (delete | talk | history | links | logs) – uploaded by Example User (notify | contribs | uploads | upload log).
Orphaned, unencyclopedic. ~~~~
Multiple nomination listing
Template:Tlsc ~~~~
Several foo bar files
- File:Foo bar.jpg (delete | talk | history | links | logs) – uploaded by Example User (notify | contribs | uploads | upload log).
- File:Foo bar2.jpg (delete | talk | history | links | logs) – uploaded by Example User (notify | contribs | uploads | upload log).
- File:Foo bar3.jpg (delete | talk | history | links | logs) – uploaded by Example User (notify | contribs | uploads | upload log).
Orphaned, unencyclopedic. ~~~~
The code above will output a list of three files. For two files, omit the second line; for more than three files, repeat the second line as many times as is necessary.
When combining multiple files in this manner, the value put into the |header= parameter in the {{Ffd2}} template will be the name used for the section header. If this is not possible, you must go back and change the section header after saving the page.
- (Note: The
|header=parameter has to always be used for the first entry in grouped nominations, as well as the value in|header=not be the same as first file's name in the nomination: This is a technical requirement due to how AnomieBOT handles closing discussions.)
The purpose of the |multi= parameter is to hide the section header from all entries after the first entry in a grouped nomination. The |reason= should only be used in the final listed nomination's {{Ffd2}} template to display the rationale under the final listed entry.
See Also
- toolforge:ftools/enwp/ffd2a.html: a tool for quickly filling out Ffd2/Ffd2a listings
| The above documentation is transcluded from Template:Ffd2/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |