Difference between revisions of "Template:Auto short description/doc"
imported>Gonnym |
imported>Gonnym ({{para}} not {{code}}) |
||
| (6 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
| − | '''Template:Auto short description''' should be placed on | + | '''Template:Auto short description''' should be placed on doc pages of templates which automatically generate short description for pages transcluding them. |
| − | + | Pages tagged with this template are categorized in {{cl|Templates that generate short descriptions}}. | |
| − | {{ | ||
| − | <includeonly>{{ | + | For meta-templates that are used to create a family of templates, add a {{para|category}} value to define an alternative category. |
| + | |||
| + | For example: {{tlx|{{BASEPAGENAME}}|category{{=}}chemical elements}} will categorize the templates in {{cl|Templates that generate short descriptions for chemical elements}}. | ||
| + | |||
| + | == Examples == | ||
| + | {{Tlx|{{BASEPAGENAME}}}} | ||
| + | |||
| + | {{Tlx|{{BASEPAGENAME}}|sometimes{{=}}yes}} – for templates that only generate short descriptions under particular conditions | ||
| + | |||
| + | {{Tlx|{{BASEPAGENAME}}|conditions{{=}}when it is used in Wikipedia space}} – when an explanation is desired for the conditions under which a short description is generated, e.g. when the short description template is wrapped with {{tl|Namespace detect}} | ||
| + | |||
| + | {{Tlx|{{BASEPAGENAME}}|category{{=}}specific type}} – for meta-templates that generate short descriptions for a family of templates | ||
| + | |||
| + | <includeonly>{{Sandbox other|| | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Template namespace templates]] | [[Category:Template namespace templates]] | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 17:49, 7 September 2020
| This is a documentation subpage for Template:Auto short description. It contains usage information, categories and other content that is not part of the original template page. |
Template:Auto short description should be placed on doc pages of templates which automatically generate short description for pages transcluding them.
Pages tagged with this template are categorized in Category:Templates that generate short descriptions.
For meta-templates that are used to create a family of templates, add a |category= value to define an alternative category.
For example: {{Auto short description|category=chemical elements}} will categorize the templates in Category:Templates that generate short descriptions for chemical elements.
Examples
{{Auto short description|sometimes=yes}} – for templates that only generate short descriptions under particular conditions
{{Auto short description|conditions=when it is used in Wikipedia space}} – when an explanation is desired for the conditions under which a short description is generated, e.g. when the short description template is wrapped with {{Namespace detect}}
{{Auto short description|category=specific type}} – for meta-templates that generate short descriptions for a family of templates