Template:File template notice/doc
This is a documentation subpage for Template:File template notice. It may contain usage information, categories and other content that is not part of the original template page. |
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]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
Parameter | Description | Type | Status | |
---|---|---|---|---|
Template name | 1 | Name of template (without the Template: prefix) used to place images in this category | File | required |
Parameter | 2 | Parameter passed to the template to place the file in this category
| Line | optional |
free | free | If set to "yes", suppress inclusion of the __NOGALLERY__ magic word. See [[WP:NFG]] for more information.
| Line | optional |