Template:Tl: Difference between revisions

The Two Worlds Wiki - Documenting Two Worlds since 2008.
Jump to navigation Jump to search
Rational Wiki>Plutocow
m (Protected "Template:Tl": High traffic page: Used in well over 500 pages; edits should be kept to a minimum. There's virtually no reason to ever edit this anyway. ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
Rational Wiki>ApooftGnegiol
(split out doc page)
Line 1: Line 1:
<code>{{[[Template:{{{1}}}|{{{1}}}]]{{#if:{{{2|}}}|{{!}}{{{2}}}}}{{#if:{{{3|}}}|{{!}}{{{3}}}}}{{#if:{{{4|}}}|{{!}}{{{4}}}}}{{#if:{{{5|}}}|{{!}}{{{5}}}}}{{#if:{{{6|}}}|{{!}}{{{6}}}}}{{#if:{{{7|}}}|{{!}}{{{7}}}}}}}</code><noinclude>
<code>{{[[Template:{{{1}}}|{{{1}}}]]{{#if:{{{2|}}}|{{!}}{{{2}}}}}{{#if:{{{3|}}}|{{!}}{{{3}}}}}{{#if:{{{4|}}}|{{!}}{{{4}}}}}{{#if:{{{5|}}}|{{!}}{{{5}}}}}{{#if:{{{6|}}}|{{!}}{{{6}}}}}{{#if:{{{7|}}}|{{!}}{{{7}}}}}}}</code><noinclude>{{documentation}}</noinclude>>
 
This is a copy of [[wp:Template:Tl|Template:Tl]] from [[Wikipedia]].
Use it to display a template name as a link, which can also be done by preceding the full path (template:some template) with a colon inside conventional link brackets. Usage:
<pre>{{Tl|template name to display}}</pre>
Also probably plays nice with up to six other parameters, as shown:
<pre>{{tl|rquote|left}}</pre>
yields {{tl|rquote|left}}. You might need to escape the character = somehow, but that's your problem.
 
{{DEFAULTSORT:Tl}}
[[Category:Templates]]
</noinclude>

Revision as of 12:13, September 5, 2023

{{[[Template:{{{1}}}|{{{1}}}]]}}Lua error: Internal error: The interpreter exited with status 127.>