Template:Lua/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) m ArrowHead294 moved page Template:Modlink/doc to Template:Lua/doc |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
{{dochead}}{{{{ROOTPAGENAME}}|Variable arguments}} | {{dochead}}{{wikipedia}}{{{{ROOTPAGENAME}}|Variable arguments}} | ||
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 11: | Line 11: | ||
| <code><nowiki>{{modlink|Infobox ET}}</nowiki></code> || {{{{ROOTPAGENAME}}|Infobox ET}} | | <code><nowiki>{{modlink|Infobox ET}}</nowiki></code> || {{{{ROOTPAGENAME}}|Infobox ET}} | ||
|- | |- | ||
| <code><nowiki>{{modlink|Infobox ET|Utils}}</nowiki></code> || {{{{ROOTPAGENAME}}|Infobox ET|Utils}} | | <code><nowiki>{{<nowiki />modlink|Infobox ET|Utils}}</nowiki></code> || {{{{ROOTPAGENAME}}|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. |
Revision as of 18:25, 5 February 2025
![]() |
This template uses Lua: |
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 | ||
---|---|---|---|
{{modlink|Infobox ET}} |
| ||
{{<nowiki />modlink|Infobox ET|Utils}} |
|
If no argument is passed, there will be a single link to the module with the same name as the template.