Template:Template for use with templates: Difference between revisions

From Space Station 14 Wiki
(template for use in templates)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{Callout
<includeonly>{{Callout
|stacked=1
|stacked=1
|header=This template is {{#ifeq: {{#invoke:params|count}}|1|template-specific|specific to particular templates}}
|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 following {{#ifeq: {{#invoke:params|count}}|1|template|templates}} and not by itself:
|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-specific template|Templates meant for specific templates}}</includeonly><noinclude>
-->{{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 meant for specific template}}
{{template for use in templates}}
{{Template populates category|Templates meant for specific 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]]
[[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 a single other template

{{Template:Template for use with templates|Navbox}}

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

With multiple other template

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

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

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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Template 11

Template the current template is meant to be used with.

Example
Navbox
Templaterequired
Template 22

no description

Templatesuggested