Template:Uses lua: Difference between revisions
From Space Station 14 Wiki
(Created page with "<includeonly>{{Callout |stacked=1 |header=Uses Lua {{#ifeq: {{#invoke:params|count}}|1|module|modules}} |Info |This template uses Lua {{#ifeq: {{#invoke:params|count}}|1|module|modules}}: <ul>{{#invoke:params|for_each|<li>Module:$@</li>}}</ul> }}<!-- # when used not on template's page (or /doc page), add to category -->{{Add categories if not on page or subpage|Template:Uses lua|Templates using Lua modules}}</includeonly><noinclude> {{documentation |below banner= {...") |
(for use in other templates) |
||
Line 13: | Line 13: | ||
|below banner= | |below banner= | ||
{{Template populates categories|Templates using Lua modules}} | {{Template populates categories|Templates using Lua modules}} | ||
{{template for use in 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:46, 17 August 2024
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)
For use in other templates
This template is meant to be used within other templates and not by itself.
Examples
With a single module
{{Uses lua
↓
Uses Lua module
This template uses Lua module:
With multiple modules
{{Uses lua
↓
Uses Lua modules
This template uses Lua modules:
Used to mark templates that use Lua and provide a link to the modules they use. Any amount of modules can be listed with numeric arguments.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Used module 1 | 1 | Lua module that the template uses. | Page name | required |
Used module 2 | 2 | no description | Page name | suggested |