Template:Tl2

From MansunWiki
Revision as of 10:54, 16 July 2015 by DarkMavis (Talk | contribs) (Created page with "<!-- Subst of {{Tl2}} follows --><code><nowiki>{{</nowiki>:{{ {{{|safesubst:}}}#if: {{{sister|}}} | {{{sister}}}: }}{{ {{{|safesubst:}}}#if: {{{lang|}}} | {{{lang}}}: }}{{ {...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

[view] [edit] [history] [purge] Template-info.svg Template Documentation

{{#invoke:Message box|mbox}}

This is the {{tl2}} template.

{{tl2}} is similar to {{tl}}. Tl stands for Template link. {{tl2}} is a macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation.

{{tl2}} differs from {{tl}} in that it displays with a wider, monospaced text style (like {{tlx}}) and also takes the named parameters |sister= and |lang= so that it may also be used to list and link templates on other English and non-English-language sister projects.

Related template

{{tlx}} displays with the same enhanced presentation and can also expand several placeholder parameters to generate a sample template call.

Usage

{{tl2|template_name}}
equivalent to {{tl|template_name}}
{{tl2 |sister=sister_id |template_name}}
to display a template from a sister project (e.g. {{tl2 |sister=V |template_name}} for Wikiversity)
{{tl2 |lang=lang_id |sister=sister_id |template_name}}
to display a template from a sister project in another language (e.g. {{tl2 |lang=fr |sister=V |template_name}} for a template from the French Wikisource project)

Examples

Code Result
{{tl|x0}} {{x0}}
{{tl2|x1}} {{x1}}
{{tl2|sister=M|3x}} {{3x}}
{{tl2|sister=wikibooks|lang=de|WP}} {{WP}}

See also