Difference between revisions of "Template:Auto short description/sandbox"
imported>GhostInTheMachine (make explicit?) |
imported>GhostInTheMachine (sp is a space) |
||
| Line 1: | Line 1: | ||
{{Ombox | {{Ombox | ||
| type = notice | | type = notice | ||
| − | | text = This template {{#if:{{{sometimes|}}}|sometimes | + | | text = This template {{#if:{{{sometimes|}}}|sometimes{{sp}}}}adds an automatically generated '''[[Wikipedia:Short description|short description]]'''{{#if:{{{category|}}}|{{sp}}({{{category}}})|}}{{#if:{{{conditions|}}}|{{space}}{{{conditions}}}}}. |
| − | }}<includeonly>{{Subpage other|<!-- do not categorise -->|[[Category:Templates that generate short descriptions{{#if:{{{category|}}}|{{ | + | }}<includeonly>{{Subpage other|<!-- do not categorise -->|[[Category:Templates that generate short descriptions{{#if:{{{category|}}}|{{sp}}for {{{category}}}|}}]]}}</includeonly><noinclude> |
{{Documentation}} | {{Documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 16:33, 7 September 2020
| This template adds an automatically generated short description. |
| This is the template sandbox page for Template:Auto short description (diff). See also the companion subpage for test cases. |
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
| The above documentation is transcluded from Template:Auto short description/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |