Jump to content

Template:File template notice/doc

From Wikipedia, the free encyclopedia

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:
{{File template notice|Non-free logo|sports logos}} returns:

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

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]