Template:Lua/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{dochead}}
{{dochead}}{{wikipedia}}{{{{ROOTPAGENAMEE}}|Variable arguments}}
On templates with modules, this template provides a link from the template or its documentation to the corresponding module.
 
=== Usage ===
=== Usage ===
Pass in the name of all modules used for a given template, separated by pipe characters:
{| class="wikitable"
{| class="wikitable"
! You Type !! You Get
|-
|-
| <code>{{((}}modlink{{pipe}}Infobox ET{{))}}</code> || {{{{ROOTPAGENAME}}|Infobox ET}}
! You type !! You get
|-
| <code><nowiki>{{lua|Infobox ET}}</nowiki></code> || {{{{ROOTPAGENAMEE}}|Infobox ET}}
|-
|-
| <code>{{((}}modlink{{pipe}}Infobox ET{{pipe}}Utils{{))}}</code> || {{{{ROOTPAGENAME}}|Infobox ET|Utils}}
| <code><nowiki>{{lua|Infobox ET|Utils}}</nowiki></code> || {{{{ROOTPAGENAMEE}}|Infobox ET|Utils}}
|}
|}


=== See also ===
If no argument is passed, there will be a single link to the module with the same name as the template.
* {{{{ROOTPAGENAME}}|Variable arguments}}