Template:Template for use with templates: Difference between revisions
From Space Station 14 Wiki
(Created page with "<includeonly>{{Callout |stacked=1 |titleheaderThis template is {{#ifeq: {{#invoke:params|count}}|1|template-specific|specific to particular templates}} |Info |This template is meant to be used in conjunction with following {{#ifeq: {{#invoke:params|count}}|1|template|templates}} and not by itself: <ul>{{#invoke:params|for_each|<li>{{t|$@}}</li>}}</ul> }}<!-- # when used not on template's page (or /doc page), add to category -->{{Add categories if not on page or subpage|...") |
(template for use in templates) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{Callout | <includeonly>{{Callout | ||
|stacked=1 | |stacked=1 | ||
| | |header=For use with the {{#ifeq: {{#invoke:params|count}}|1|specific template|specific templates}} | ||
|Info | |Info | ||
|This template is meant to be used in conjunction with | |This template is meant to be used in conjunction with {{#ifeq: {{#invoke:params|count}}|1|this specific template|these specific templates}} and not by itself: | ||
<ul>{{#invoke:params|for_each|<li>{{t|$@}}</li>}}</ul> | <ul>{{#invoke:params|for_each|<li>{{t|$@}}</li>}}</ul> | ||
}}<!-- | }}<!-- | ||
# when used not on template's page (or /doc page), add to category | # when used not on template's page (or /doc page), add to category | ||
-->{{Add categories if not on page or subpage|Template:Template | -->{{Add categories if not on page or subpage|Template:Template for use with templates|Templates for use with templates}}</includeonly><noinclude> | ||
{{documentation | {{documentation | ||
|below banner= | |below banner= | ||
{{Has alias template|Template | {{template for use in templates}} | ||
{{Template populates category|Templates | {{Has alias template|Template for use with template}} | ||
{{Template populates category|Templates for use with templates}} | |||
}} | }} | ||
[[Category:Templates for documenting other templates]] | [[Category:Templates for documenting other templates]] | ||
[[Category:Notice templates]] | [[Category:Notice templates]] | ||
<templatedata> | <templatedata> | ||
{ | { |
Latest revision as of 11:56, 17 August 2024
For use in other templates
This template is meant to be used within other templates and not by itself.
Has an alias
This template has an alternative name:
Populates a category
This template will add a category when used:
(though on what conditions — consult with the template itself)
(though on what conditions — consult with the template itself)
Examples
With a single other template
{{Template:Template for use with templates
↓
For use with the specific template
This template is meant to be used in conjunction with this specific template and not by itself:
- {{Navbox}}
With multiple other template
{{Template for use with templates
↓
For use with the specific templates
This template is meant to be used in conjunction with these specific templates and not by itself:
- {{ColoredText}}
- {{InlineIcon}}
Marks template as only meant to be used with specific templates and not directly on a page. If there are multiple specific templates, add them using more numeric parameters.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Template 1 | 1 | Template the current template is meant to be used with.
| Template | required |
Template 2 | 2 | no description | Template | suggested |