Template:Tl: Difference between revisions

From Sword of Moonlight Wiki
Jump to navigation Jump to search
Created page with "{{[[Template:{{{1}}}|{{{1}}}]]}}<noinclude> {{Documentation}} </noinclude>"
 
m 1 revision imported
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{[[Template:{{{1}}}|{{{1}}}]]}}<noinclude>
<includeonly>{{#invoke:Template link|main|code=on}}</includeonly><noinclude>
 
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 18:53, 12 September 2024

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Tl/doc to edit this documentation. (How does this work?)

This code is adapted from Wikipedia.

For the original code, see the following pages: Module:Template link general, Template:Tlx

This template uses one or more modules written in the Lua programming language.

For more information, see Wikipedia:Lua or the Lua reference manual on mediawiki.org. Modules used include: Template link.


This template returns an exemplaric use of a template while linking to the template description page, if the template exists.

Usage

{{tl|<Template name>}}
{{tl|<Template name>|<Template parameters>}}
unnamed parameter 1
Template name (without Template: prefix)
unnamed parameter 2 - 9
Optional. Template parameters
nl
Optional flag to display an un-linked template usage.

Examples

{{tl|stub}} returns {{stub}}
{{tl|stub|1}} returns {{stub|1}}
{{tl|stub|1|2|nl{{=}}y}} returns {{stub|1|2|nl=y}}
{{tl|for|page|t1{{=}}alt text}} returns {{for|page|t1=alt text}}

See also