Difference between revisions of "Template:Featured picture"

From blackwiki
Jump to navigation Jump to search
imported>Wugapodes
(Implementing talk page edit requested by User:Coffeeandcrumbs – auto-categorize FPs that have not been POTD)
imported>Timrollpickering
m (→‎top: per WP:CFDS, replaced: Featured pictures that have not appeared on the main page → Featured pictures that have not appeared on the Main Page)
 
Line 6: Line 6:
 
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
 
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
 
-->{{#ifeq: {{#titleparts:{{{1|foo}}}|1|1}}|Delist|[[Category:Featured pictures promoted through delist]]}}|}}<!--
 
-->{{#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>
+
-->{{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>

Latest revision as of 19:52, 19 August 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