Difference between revisions of "Template:Featured picture"

From blackwiki
Jump to navigation Jump to search
imported>Evad37
(restrict top icon to file namespace)
imported>Wugapodes
(Implementing talk page edit requested by User:Coffeeandcrumbs – auto-categorize FPs that have not been POTD)
Line 5: Line 5:
 
}}{{file other|[[Category:Featured pictures|{{PAGENAME}}]]<!--
 
}}{{file other|[[Category:Featured pictures|{{PAGENAME}}]]<!--
 
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
 
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
-->{{#ifeq: {{#titleparts:{{{1|foo}}}|1|1}}|Delist|[[Category:Featured pictures promoted through delist]]}}|}}<noinclude>
+
-->{{#ifeq: {{#titleparts:{{{1|foo}}}|1|1}}|Delist|[[Category:Featured pictures promoted through delist]]}}|}}<!--
 +
-->{{if in page|%{%{%s*[Pp]icture ?of ?the ?day%s*{{!}}||[[Category:Featured pictures that have not appeared on the main page|{{#time:Y-m|{{if in page|%[%[Category:Featured picture nominations/(%P+)|%1||page=Wikipedia:Featured picture candidates/{{{1|{{FULLPAGENAME}}}}}|sub=yes}}}}]]}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 
</noinclude>
 
</noinclude>

Revision as of 23:26, 13 July 2019

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

This template is transcluded on the file description pages of featured pictures.

Usage

Basic usage

{{featured picture|FPC subpage}}

All parameters

{{featured picture|FPC subpage|type=filetype|category=category}}

Parameters

Categories

This template adds pages to Category:Featured pictures by default. An additional category can be added by using the |category= parameter as documented above. It also adds pages to Category:Featured pictures promoted through delist if the subpage parameter begins with "delist".

Examples

  • {{featured picture}}
  • {{featured picture|Tower of Hanoi}}

See also