Difference between revisions of "Template:Ffd2"

From blackwiki
Jump to navigation Jump to search
imported>Steel1943
(Fix - ensuring that "{{{Reason}}}" doesn't even show up as hidden text if the template is substituted)
imported>Steel1943
(Undid revision 716095758 by Steel1943 (talk) undo)
Line 1: Line 1:
 
<noinclude><!--</noinclude>====[[:File:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}}]]====
 
<noinclude><!--</noinclude>====[[:File:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}}]]====
 
{{<includeonly>safesubst:</includeonly>#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" id="File:{{{1}}}">[[:File:{{<includeonly>safesubst:</includeonly>ucfirst:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}}}}]] ([{{fullurl:File:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}}|action=delete&wpReason={{<includeonly>safesubst:</includeonly>urlencode:[[{{<includeonly>safesubst:</includeonly>FULLPAGENAME}}#File:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}}]]}}}} delete] {{!}} [[File talk:{{<includeonly>subst:</includeonly>ucfirst:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}}}}|talk]] {{!}} [{{fullurl:File:{{<includeonly>safesubst:</includeonly>ucfirst:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}}}}|action=history}} history] {{!}} [[Special:WhatLinksHere/File:{{<includeonly>safesubst:</includeonly>ucfirst:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}}}}|links]] {{!}} [{{fullurl:Special:Log|page={{<includeonly>safesubst:</includeonly>urlencode:File:{{<includeonly>safesubst:</includeonly>ucfirst:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}}}}}}}} logs])</span> – uploaded by {{#if:{{{Uploader|}}}|[[User talk:{{{Uploader}}}#File:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}} listed for deletion|{{{Uploader}}}]] (<span class="plainlinks">[{{fullurl:User talk:{{{Uploader}}}|action=edit&preload=Template:Fdw_preload&editintro=Template:Fdw_editintro&section=new&create=Post+a+comment}} notify]</span> {{!}} [[Special:Contributions/{{{Uploader}}}|contribs]] {{!}} [[Special:ListFiles/{{{Uploader}}}|uploads]] {{!}} [[Special:Log/upload/{{{Uploader}}}|upload log]]).|{{error|Error: No uploader specified}}}}}}
 
{{<includeonly>safesubst:</includeonly>#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" id="File:{{{1}}}">[[:File:{{<includeonly>safesubst:</includeonly>ucfirst:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}}}}]] ([{{fullurl:File:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}}|action=delete&wpReason={{<includeonly>safesubst:</includeonly>urlencode:[[{{<includeonly>safesubst:</includeonly>FULLPAGENAME}}#File:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}}]]}}}} delete] {{!}} [[File talk:{{<includeonly>subst:</includeonly>ucfirst:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}}}}|talk]] {{!}} [{{fullurl:File:{{<includeonly>safesubst:</includeonly>ucfirst:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}}}}|action=history}} history] {{!}} [[Special:WhatLinksHere/File:{{<includeonly>safesubst:</includeonly>ucfirst:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}}}}|links]] {{!}} [{{fullurl:Special:Log|page={{<includeonly>safesubst:</includeonly>urlencode:File:{{<includeonly>safesubst:</includeonly>ucfirst:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}}}}}}}} logs])</span> – uploaded by {{#if:{{{Uploader|}}}|[[User talk:{{{Uploader}}}#File:{{<includeonly>safesubst:</includeonly>BASEPAGENAME:{{{1}}}}} listed for deletion|{{{Uploader}}}]] (<span class="plainlinks">[{{fullurl:User talk:{{{Uploader}}}|action=edit&preload=Template:Fdw_preload&editintro=Template:Fdw_editintro&section=new&create=Post+a+comment}} notify]</span> {{!}} [[Special:Contributions/{{{Uploader}}}|contribs]] {{!}} [[Special:ListFiles/{{{Uploader}}}|uploads]] {{!}} [[Special:Log/upload/{{{Uploader}}}|upload log]]).|{{error|Error: No uploader specified}}}}}}
{{<includeonly>safesubst:</includeonly>{{#if:{{{Reason|}}}|{{{Reason}}}}}}}<noinclude>-->
+
{{#if:{{{Reason|}}}|{{{Reason}}}}}<noinclude>-->
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 21:31, 19 April 2016

Template documentation[view] [edit] [history] [purge]

Template:Substituted

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 | [[File talk:{{subst:ucfirst:Foo bar.jpg}}|talk]] | history | links | logs) – uploaded by Error: No uploader specified
~~~~


Multiple nomination listing

Template:Tlsc

Template:Tlsc

Template:Tlsc ~~~~

File:Foo bar.jpg

File:Foo bar.jpg (delete | [[File talk:{{subst:ucfirst:Foo bar.jpg}}|talk]] | history | links | logs) – uploaded by Error: No uploader specified

File:Foo bar2.jpg

File:Foo bar2.jpg (delete | [[File talk:{{subst:ucfirst:Foo bar2.jpg}}|talk]] | history | links | logs) – uploaded by Error: No uploader specified

File:Foo bar3.jpg

File:Foo bar3.jpg (delete | [[File talk:{{subst:ucfirst:Foo bar3.jpg}}|talk]] | history | links | logs) – uploaded by Error: No uploader specified
~~~~

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