Difference between revisions of "Template:Featured picture/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mr. Stradivarius
(→‎Parameters: give an example of the category parameter syntax)
imported>Mr. Stradivarius
(add category details)
Line 21: Line 21:
 
* '''1''' - the subpage of [[Wikipedia:Featured picture candidates]] for the image. This parameter is optional.
 
* '''1''' - the subpage of [[Wikipedia:Featured picture candidates]] for the image. This parameter is optional.
 
* '''type''' - the filetype. Can be "picture", "video", or "animation" (the default is "picture").
 
* '''type''' - the filetype. Can be "picture", "video", or "animation" (the default is "picture").
* '''category''' - a custom category to use instead of [[:Category:Featured pictures]]. This category can be suppressed by specifying this parameter with no text, i.e. <code><nowiki>{{featured picture|category=}}</nowiki></code>.
+
* '''category''' - a custom category to use instead of [[:Category:Featured pictures]]. Categories can be suppressed by using {{para|category|no}} or by specifying this parameter with no text, i.e. <code><nowiki>{{featured picture|category=}}</nowiki></code>.
 +
 
 +
== Categories ==
 +
 
 +
This template adds pages to [[:Category:Featured pictures]] by default. This category can be overridden by using the {{para|category}} parameter as documented above. It also adds pages to [[:Category:Featured pictures promoted through delist]] if the subpage parameter begins with "delist". Both categories can be suppressed by using {{para|category}} or {{para|category=no}}.
  
 
== Examples ==
 
== Examples ==

Revision as of 14:59, 24 June 2014

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

  • 1 - the subpage of Wikipedia:Featured picture candidates for the image. This parameter is optional.
  • type - the filetype. Can be "picture", "video", or "animation" (the default is "picture").
  • category - a custom category to use instead of Category:Featured pictures. Categories can be suppressed by using |category=no or by specifying this parameter with no text, i.e. {{featured picture|category=}}.

Categories

This template adds pages to Category:Featured pictures by default. This category can be overridden 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". Both categories can be suppressed by using |category= or |.

Examples

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

See also