Template:Lua/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
No edit summary |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{dochead}}{{ | {{dochead|mod=Variable arguments}}{{Template rating|rating=deprecated|details=[[Template:Dochead]] and [[Template:Module introspection]] now fulfil the role of this template, which automatically finds and links to all dependencies.}} | ||
{{clear}}{{wikipedia}}{{clear}} | |||
On templates with modules, this template provides a link from the template or its documentation to the corresponding module. | On templates with modules, this template provides a link from the template or its documentation to the corresponding module. | ||
| Line 9: | Line 11: | ||
! You type !! You get | ! You type !! You get | ||
|- | |- | ||
| <code><nowiki>{{lua|Infobox ET}}</nowiki></code> || {{{{ | | <code><nowiki>{{lua|Infobox ET}}</nowiki></code> || {{{{ROOTPAGENAMEE}}|Infobox ET}} | ||
|- | |- | ||
| <code><nowiki>{{lua|Infobox ET|Utils}}</nowiki></code> || {{{{ | | <code><nowiki>{{lua|Infobox ET|Utils}}</nowiki></code> || {{{{ROOTPAGENAMEE}}|Infobox ET|Utils}} | ||
|} | |} | ||
If no argument is passed, there will be a single link to the module with the same name as the template. | If no argument is passed, there will be a single link to the module with the same name as the template. | ||
Latest revision as of 10:09, 31 October 2025
- This template is implemented by the Lua module Module:Variable arguments.
- This template invokes the following functions: lua_banner from Variable arguments.
| This documentation is for a deprecated template, which 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. |
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.
