Template:Tlc/doc: Difference between revisions
Jump to navigation
Jump to search
imported>Caesar Schinas m (New page: {{tlc|tlc}} is used to reference templates on Talk pages etc.<br /> Use of it generates a link to the template, wrapped in <code><nowiki><code>{{ }}</code></nowiki></code> and thus looking...) |
imported>Caesar Schinas mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{tlc|tlc}} is used to reference templates on Talk pages etc.<br /> | {{tlc|tlc}} is used to reference templates on Talk pages etc.<br /> | ||
Use of it generates a link to the template, wrapped in <code><nowiki><code>{{ }}</code></nowiki></code> and thus looking like an invocation of the template. For a version without code tags, see {{ | Use of it generates a link to the template, wrapped in <code><nowiki><code>{{ }}</code></nowiki></code> and thus looking like an invocation of the template. For a version without code tags, see {{tlc|tl}}. For a version without code tags or brackets, see {{tlc|tln}}. | ||
=== Usage === | === Usage === | ||
The template takes two parameters : | The template takes two parameters : {{tlc|tlc|name{{!}}arguments}}. | ||
# ''required'' — The name of the template to be linked to. | # ''required'' — The name of the template to be linked to. | ||
# ''optional'' — Any parameters which should be shown in the example call to the template. Separate multiple parameters with <code><nowiki>{{!}}</nowiki></code> rather than <code>|</code>. | # ''optional'' — Any parameters which should be shown in the example call to the template. Separate multiple parameters with <code><nowiki>{{!}}</nowiki></code> rather than <code>|</code>. |
Latest revision as of 03:06, 14 June 2009
{{tlc}}
is used to reference templates on Talk pages etc.
Use of it generates a link to the template, wrapped in <code>{{ }}</code>
and thus looking like an invocation of the template. For a version without code tags, see {{tl}}
. For a version without code tags or brackets, see {{tln}}
.
Usage
The template takes two parameters : {{tlc|name|arguments}}
.
- required — The name of the template to be linked to.
- optional — Any parameters which should be shown in the example call to the template. Separate multiple parameters with
{{!}}
rather than|
.
Examples
Code | Result | Explanation |
---|---|---|
{{tlc|Infobox}}
|
{{Infobox}}
|
Using {{tlc}} with an existing template creates a link to it.
|
{{tlc|tlc}}
|
{{tlc}}
|
Using {{tlc}} on the template with the same name just shows the name.
|
{{tlc|Nonexistanttemplate}}
|
{{
}} |
Using {{tlc}} with a non-existing template name creates a red link with the template preload and editintro.
|
{{tlc|template|param1{{!}}param2{{!}}param3}}
|
{{
|param1|param2|param3}} |
The second parameter takes list of parameters to be shown in the example template call, separated either by {{!}} or by | .
|