Template:Lua: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
m ArrowHead294 moved page Template:Modlink to Template:Lua
Ganaram inukshuk (talk | contribs)
No edit summary
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke: Variable arguments|modlink}}</includeonly><noinclude>
<includeonly>{{sidebox|text='''This template has been deprecated. Its replacements are [[Template:Dochead]] and [[Template:Module introspection]].'''[[Category:Pages with deprecated templates]]|image=Icon-Deprecated.png|image size=60px}}
 
{{#invoke: Variable arguments | lua_banner
| debug_mode = {{lc:{{{debug|}}}}}
}}</includeonly>{{#ifeq: {{NAMESPACE}}|Template|{{#ifeq: {{#titleparts: {{FULLPAGENAME}}||-1}}|doc||[[Category:Lua-based templates]]}}|}}<noinclude>
{{documentation}}
{{documentation}}
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 01:46, 1 November 2025

Template documentation[view] [edit] [history] [purge]
This template is implemented by the Lua module Module:Variable arguments.
This template invokes the following functions: lua_banner from Variable arguments.
Template:Lua is deprecated and has no replacement. Further use of this template is not advised. This template is kept for historical purposes and should not be deleted.

Details: Template:Dochead and Template:Module introspection now fulfil the role of this template, which automatically finds and links to all dependencies.

English Wikipedia has an article on:

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}}
{{lua|Infobox ET|Utils}}

If no argument is passed, there will be a single link to the module with the same name as the template.