Template:Template for use in templates: Difference between revisions

From Space Station 14 Wiki
(Created page with "<includeonly>{{Callout |stacked=1 |header=For use in {{#switch: {{#invoke:params|count}} |0 = other templates |1 = the specific template |the specific templates }} |Info |This template is meant to be used within {{#switch: {{#invoke:params|count}} |0 = other templates |1 = this specific template |these specific templates }} and not by itself{{#ifexpr: {{#invoke:params|count}} = 0 |. |{{colon}} <ul>{{#invoke:params|for_each|<li>{{t|$@}}</li>}}</ul> }}}}<!-- # when used n...")
 
(template for use in templates)
 
Line 22: Line 22:
{{documentation
{{documentation
|below banner=
|below banner=
{{template for use in templates}}
{{has alias template|Template for use in template}}
{{has alias template|Template for use in template}}
{{Template populates categories|Templates for use in templates}}
{{Template populates categories|Templates for use in templates}}
Line 28: Line 29:
[[Category:Templates for documenting other templates]]
[[Category:Templates for documenting other templates]]
[[Category:Notice templates]]
[[Category:Notice templates]]
[[Category:Templates meant for other templates]]
<templatedata>
<templatedata>
{
{

Latest revision as of 11:56, 17 August 2024


Template documentation
view or edit this documentation about template documentation
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)

Examples

With no templates specified

{{Template for use in templates}}

For use in other templates
This template is meant to be used within other templates and not by itself.


With a single other template

{{Template for use in templates|Navbox}}

For use in the specific template
This template is meant to be used within this specific template and not by itself:

With multiple other template

{{Template for use in templates|ColoredText|InlineIcon}}

For use in the specific templates
This template is meant to be used within these specific templates and not by itself:

Marks template as only meant to be used with other templates and not directly on a page.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
No parameters specified