Template:Uses Chart
| This template uses Lua: | 
Preview:
This template is used to show that templates use the Chart extension. It is placed at the top of the template's /doc page. It automatically adds the template to Category:Templates using the Chart extension, or to one of its subcategories.
The syntax for actually doing a Chart is, of course: {{#chart:Example.chart|data=Example.tab}} or using a template such as {{Chart}}.
Usage
- Basic (.chart and .tab have the same name)
 {{Uses Chart|Chart source page name}}
- Specific (.chart and .tab have different names, or transform being used)
 {{Uses Chart|Definition.chart|Data.tab|Module:Transform}}
- All parameters
 {{Uses Chart|Chart source 1|Chart source 2|Chart source 3|...|category=custom category|nocat=true}}
The first source is not required.
Examples
{{Uses Chart}}
| This template uses the Chart extension with sources from Wikimedia Commons. | 
{{Uses Chart|Color}}
| This template uses Chart sources from Wikimedia Commons: | 
{{Uses Chart|Data:Color}}
| This template uses Chart sources from Wikimedia Commons: | 
{{Uses Chart|Module:TabUtils}}
| This template uses Chart sources from Wikimedia Commons: | 
{{Uses Chart|Color|Module:TabUtils}}
| This template uses Chart sources from Wikimedia Commons: | 
{{Uses Chart|Color.chart|Color.tab}}
| This template uses Chart sources from Wikimedia Commons: | 
{{Uses Chart|Data:Color.chart|Data:Color.tab}}
| This template uses Chart sources from Wikimedia Commons: | 
{{Uses Chart|Color.chart|Color.tab|Module:TabUtils}}
| This template uses Chart sources from Wikimedia Commons: | 
{{Uses Chart|Data:Color.chart|Data:Color.tab|Module:TabUtils}}
| This template uses Chart sources from Wikimedia Commons: | 
Categories
Template category
This template adds pages to Category:Templates using the Chart extension if the page is in the template namespace, and it is not on any of the subpages /doc, /sandbox, /sandbox2 or /testcases. You can specify a different category with the |category= parameter, e.g. |category=Uses list TemplateStyles.
No sources category
If no sources are specified, the template adds pages to Category:Uses Chart templates with no sources specified.
Category suppression
To suppress all categories, use |nocat=true. (As well as "true", the values "yes", "y", and "1" will also work.)
See also
- mw:Extension:Chart
 - {{Lua}}
 - {{Uses TemplateStyles}}
 - {{Uses Wikidata}}