Template:Lua: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly | <includeonly>{{#invoke: Variable arguments | sidebox | ||
| header = This {{lc:{{NAMESPACE}}}} uses [[mw:extension:TemplateStyles|TemplateStyles]] | |||
| image = Lua-Logo.svg | |||
| image_size = 30px | |||
| ns_local = Module{{colon}} | |||
| debug_mode = {{lc:{{{debug|}}}}} | | debug_mode = {{lc:{{{debug|}}}}} | ||
}}</includeonly>{{#ifeq: {{NAMESPACE}}|Template|{{#ifeq: {{#titleparts: {{FULLPAGENAME}}||-1}}|doc||[[Category:Lua-based templates]]}}|}}<noinclude> | }}</includeonly>{{#ifeq: {{NAMESPACE}}|Template|{{#ifeq: {{#titleparts: {{FULLPAGENAME}}||-1}}|doc||[[Category:Lua-based templates]]}}|}}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 12:15, 25 May 2025
Script error: The function "sidebox" does not exist.
On templates with modules, this template provides a link from the template or its documentation to the corresponding module.
Usage
Pass in the name of all modules used for a given template, separated by pipe characters:
You type | You get |
---|---|
{{lua|Infobox ET}} |
Script error: The function "sidebox" does not exist. |
{{lua|Infobox ET|Utils}} |
Script error: The function "sidebox" does not exist. |
If no argument is passed, there will be a single link to the module with the same name as the template.