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

Template:File template notice/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:File template notice
To place a file in this category, add the tag {{[[Template:{{{1}}}|{{{1}}}]]}} to the bottom of the file's description page. If you are not sure which category a file belongs to, consult the file copyright tag page. If this category is very large, please consider placing your file in a new or existing subcategory. Free files can be moved to the Wikimedia Commons.
This is the template sandbox page for Template:File template notice (diff).
Template documentation[view] [edit] [history] [purge]

This template is placed on a category page to inform editors of how to add files to that category using a template.

Syntax

edit

{{File template notice|Template name|parameter (optional)}}

The first parameter (template name) is required, while the second (parameter to be passed to the template) is not.

The |free=yes parameter prevents the template from including the __NOGALLERY__ behavior switch in the category. See WP:NFG for more info.

After obtaining consensus at Wikipedia talk:Non-free content, the code |free=exempt adds the category to Category:Wikipedia non-free content criteria exemptions.

Examples

edit
{{File template notice|PD-art|free=yes}} returns:
To place a file in this category, add the tag {{PD-art}} to the bottom of the file's description page. If you are not sure which category a file belongs to, consult the file copyright tag page. If this category is very large, please consider placing your file in a new or existing subcategory. Free files can be moved to the Wikimedia Commons.
{{File template notice|Non-free logo|sports logos}} returns:
To place a file in this category, add the tag {{Non-free logo|sports logos}} to the bottom of the file's description page. If you are not sure which category a file belongs to, consult the file copyright tag page. If this category is very large, please consider placing your file in a new or existing subcategory. Free files can be moved to the Wikimedia Commons.

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:File template notice in articles based on its TemplateData.

TemplateData for File template notice

A category header template to indicate that files can be placed in the category by use of a specific template

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Template name1

Name of template (without the Template: prefix) used to place images in this category

Filerequired
Parameter2

Parameter passed to the template to place the file in this category

Example
sports logo
Lineoptional
freefree

If set to "yes", suppress inclusion of the __NOGALLERY__ magic word. See [[WP:NFG]] for more information.

Suggested values
yes
Lineoptional

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 template notice/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) 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_template_notice/sandbox&oldid=1262996295"
Last edited on 14 December 2024, at 02:30

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 14 December 2024, at 02:30 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop