Template:Tlxr: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (+ The tenth parameter)
m (+-cat: Templates → Link templates)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{[[Template:{{{1}}}|{{{1}}}]]<!--
<tt>{{[[Template:{{{1}}}|{{{1}}}]]<!--
-->{{#if: {{{2|}}} | <br>{{!}}{{{2}}} |}}<!--
-->{{#if: {{{2|}}} | <br>{{!}}{{{2}}} |}}<!--
-->{{#if: {{{3|}}} | <br>{{!}}{{{3}}} |}}<!--
-->{{#if: {{{3|}}} | <br>{{!}}{{{3}}} |}}<!--
Line 10: Line 10:
-->{{#if: {{{10|}}} | <br>{{!}}{{{10}}} |}}<!--
-->{{#if: {{{10|}}} | <br>{{!}}{{{10}}} |}}<!--
-->{{#if: {{{11|}}} | <br>{{!}}{{{11}}} |}}<!--
-->{{#if: {{{11|}}} | <br>{{!}}{{{11}}} |}}<!--
-->}}<noinclude>
-->{{#if: {{{2|}}} | <br> |}}}}</tt><noinclude>
{{Informative template|1=
{{Informative template|1=
__NOTOC__
__NOTOC__
Line 37: Line 37:
}}
}}


[[Category:Templates]]
[[Category:Link templates]]
</noinclude>
</noinclude>

Latest revision as of 21:43, 2 July 2014

{{[[Template:{{{1}}}|{{{1}}}]]}}

The following template description is not displayed when the template is inserted in an article.

Goal

This template is used to show a link to a template, together with its parameters as wiki markup.

Usage

{{tlxr|template|parameter|...|parameter}}
template
The template to be linked to
parameter
Up to ten parameters

Example

{{tlxr|distinguish|Template:Tl}}

{{distinguish
|Template:Tl
}}

{{tlxr|tlxr|1|2|3|4|5|6|7|8|9|10}}

{{tlxr
|1
|2
|3
|4
|5
|6
|7
|8
|9
|10
}}

Known issues

Some characters will break templates when used inside template parameters, one of them is the equal sign "=" when used directly behind other characters. A few was around that is to use {{=}} or <nowiki>=</nowiki> instead.

Related templates

  • {{tl}} which does not show any parameters
  • {{tlx}} which shows the parameters in a single line