• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:File category

  • Template
  • Talk
  • Language
  • Watch
  • Edit
icon

This category contains files

To place a file in this category, add the tag {{[[Template:{{{1}}}|{{{1}}}]]}} to the Licensing section of the file's description page. If you are not sure which category a file belongs to, consult "Wikipedia:File copyright tags". If this category is very large, please consider placing your file in a new or existing subcategory.

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

This template inserts a descriptive notice at the top of the categories whose population demands insertion of certain template instead of using the ordinary category syntax.

This template is created to replace {{File template notice}} and {{category game screenshot header}}.

Usage

edit

This category has only one mandatory parameter: the first unnamed parameter. For example:

{{File category|Non-free web screenshot}}

It alerts the reader that the category on which the example line is inserted, is to be populated by inserting {{non-free web screenshot}} in the licensing section of a file. This example is suitable for Category:Screenshots of web pages. It renders as follows:

icon

This category contains files

To place a file in this category, add the tag {{Non-free web screenshot}} to the Licensing section of the file's description page. If you are not sure which category a file belongs to, consult "Wikipedia:File copyright tags". If this category is very large, please consider placing your file in a new or existing subcategory.

Sometimes, however, a template alone does not populate the category. For example, populating Category:Screenshots of Atari games is populated by passing a specific parameter ("Atari" in this case) to the {{Non-free video game screenshot}} template. This line changes the notification using the second unnamed parameter:

{{File category|Non-free video game screenshot|Atari}}

It generates:

icon

This category contains files

To place a file in this category, add the tag {{Non-free video game screenshot|Atari}} to the Licensing section of the file's description page. If you are not sure which category a file belongs to, consult "Wikipedia:File copyright tags". If this category is very large, please consider placing your file in a new or existing subcategory.

This template has two additional parameters: |insert in= and |unsure action=. The first is to tell the reader to insert the code somewhere other than the Licensing section of the file description page. The second is to tell the reader what to do in case uncertainty. For example:

{{File category|Non-free software screenshot|Screenshots of Nokia mobile devices}}

...generates:

icon

This category contains files

To place a file in this category, add the tag {{Non-free software screenshot|Screenshots of Nokia mobile devices}} to the file infobox of the file's description page. If you are not sure which category a file belongs to, request assistance in Wikipedia talk:WikiProject Software. If this category is very large, please consider placing your file in a new or existing subcategory.

Other category-header templates

edit
  • v
  • t
  • e
Category-heading templates
Templates meant to appear at or near the top of category pages
By namespace
Category
  • {{Category explanation}}
  • {{Parent-only stub category}}
  • {{Regional stub category}}
  • {{Set category}}
  • {{Stub category}}
  • {{Topic category}}
File
  • {{Category game screenshot header}}
  • {{File category}}
  • {{File template notice}}
  • {{Media template notice}}
Other
  • {{Help category}}
  • {{Maintenance category}}
  • {{Portal category}}
  • {{Sockpuppet category}}
  • {{Template category}}
  • {{User category}}
Maintenance
  • {{All included}}
  • {{Category diffuse}}
  • {{Category header}}
  • {{Container category}}
  • {{Diffusing subcategory}}
  • {{Geography parent category}}
  • {{Hidden category}}
  • {{Non-diffusing parent category}}
  • {{Non-diffusing subcategory}}
  • {{Overpopulated category}}
  • {{Possibly empty category}}
  • {{Redirect category}}
  • {{Tracking category}}
  • See also: Category hatnote templates
The above documentation is transcluded from Template:File category/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:File_category&oldid=1323432592"