Please note that some information on this wiki is still based on the demo version.
If you notice any errors, feel free to correct them.

Template:Tl: Difference between revisions

From Super Fantasy Kingdom Official Wiki
wgg>Cadaei
from https://ark.wiki.gg/wiki/Template:Tl
 
m 2 revisions imported
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly><code>{{[[Template:{{{1}}}|{{{1}}}]]}}</code></includeonly><noinclude>
<includeonly>{{#invoke:Template link|main|code=on}}</includeonly><noinclude>
 
{{Documentation}}
==Documentation==
</noinclude>
This template can be used to display and link a certain template.
* <code><nowiki>{{tl|clear}}</nowiki></code> generates {{tl|clear}}.
[[Category:Formatting templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 23:46, 21 October 2025

File:Template-info.svg Documentation Edit this documentation at Template:Tl/doc.
(edit • history • purge)

This code is adapted from Wikipedia.

For the original code, see the following pages: {{#arraymap:Module:Template link general,Template:Tlx|,|%s|%s}}

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: {{#arraymap:Template link|,|%s|%s}}.

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