Template:Template populates categories: Difference between revisions

From Space Station 14 Wiki
(Created page with "<includeonly>{{Callout |stacked=1 |align=right |header=Populates {{#ifeq: {{#invoke:params|count}}|1|a category|categories}} |Info |This template will add <!-- -->{{#switch: {{#invoke:params|count}} |0 = a category or multiple categories when used — check out the template logic for details. |{{#ifeq: {{#invoke:params|count}}|1|a category|categories}} when used: <br>''{{colored text|gray|(though on what conditions — consult with the template itself)}}'' <ul>{{#invoke:...")
 
(template for use in templates; populating categories)
 
Line 17: Line 17:
{{documentation
{{documentation
|below banner=
|below banner=
{{template for use in templates}}
{{has alias template|Template populates category}}
{{has alias template|Template populates category}}
{{Template populates category|Templates populating categories}}
}}
}}


[[Category:Templates for documenting other templates]]
[[Category:Templates for documenting other templates]]
[[Category:Notice templates]]
[[Category:Notice templates]]
[[Category:Templates meant for other templates]]
[[Category:Templates populating categories]]
<!-- extra category is added when used inside template namespace - see the template body for details. -->
<!-- extra category is added when used inside template namespace - see the template body for details. -->
<templatedata>
<templatedata>

Latest revision as of 11:57, 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 categories specified

Used for cases where the categories added are unknown (e.g. choosen dynamically)

{{Template populates categories}}

Populates categories
This template will add a category or multiple categories when used — check out the template logic for details.

With a single category

{{Template populates categories|Jobs}}

Populates a category
This template will add a category when used:
(though on what conditions — consult with the template itself)

With multiple categories

{{Template populates categories|Jobs|Command jobs}}

Populates categories
This template will add categories when used:
(though on what conditions — consult with the template itself)

Used to display a notice for templates that add categories when used. Can be used without any parameters for cases where the categories are unknown. If a template can add multiple categories, list them all using numeric parameters.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Category 11

no description

Example
Notice templates
Page namesuggested
Category 22

no description

Page namesuggested