Predloga:Tl2
Videz
{{[[:Predloga:{{{1}}}|{{{1}}}]]}}
<code>-styled {{tl}} that can link to sister projects. |
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
[uredi kodo]{{tlx}} displays with the same enhanced presentation and can also expand several placeholder parameters to generate a sample template call.
Usage
[uredi kodo]{{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
[uredi kodo]Code | Result |
---|---|
{{tl|x0}}
|
{{x0}} |
{{tl2|x1}}
|
{{x1}}
|
{{tl2|sister=M|3x}}
|
{{3x}}
|
{{tl2|sister=wikibooks|lang=de|WP}}
|
{{WP}}
|
See also
[uredi kodo]- Predloga:tl2 (pogovor, povratne povezave, uredi)
- Predloga:tl (pogovor, povratne povezave, uredi)
- Predloga:tlp (pogovor, povratne povezave, uredi) to produce a [t]emplate [l]ink with single [p]arameter.
- Predloga:tlx (pogovor, povratne povezave, uredi) to produce a [t]emplate [l]ink with e[x]tended number of parameters.
- Predloga:tlsp (pogovor, povratne povezave, uredi) to produce a [t]emplate [l]ink that's [s]ubst:ituted, with a single [p]arameter.
- Predloga:lts (pogovor, povratne povezave, uredi)
- Predloga:tlu (pogovor, povratne povezave, uredi), tl or tlp in any namespace.
- Predloga:xpd (pogovor, povratne povezave, uredi) to e[xp]an[d] (i.e. demonstrate) a template in situ.
Predloge za povezovanje predlog
Slog povezave | Povezano | Nepovezano | Povezano z subst | Povezano z vključenimi oklepaji | Povezano z alternativnim besedilom | |
---|---|---|---|---|---|---|
Slog besedila | {{tlg}} option
|
— | nolink=yes
|
subst=yes
|
braceinside=yes
|
alttext=FOO
|
Normal | — | {{tl}} · {{tlp}} · {{tlg}}
|
{{tlf}}
|
{{tls}} · {{tlsp}}
|
{{tn}}
|
{{tla}}
|
Teletype
|
tt=yes
|
{{tlx}}
|
{{tld}} · {{tnull}}
|
{{tlxs}}
|
||
Bold | bold=yes
|
{{tlb}}
|
||||
Bold teletype
|
bold=yes|tt=yes
|
{{tlxb}}
|
||||
Italic teletype
|
italic=yes|tt=yes
|
{{tlxi}}
|
||||
Code
|
code=yes
|
{{tlc}}
|
OPOMBA:
{{tlg}}
je najbolj splošna predloga, ki dovoljuje katerokoli kombinacijo zgoraj omenjenih opcij.
- Primerjava sloga
- {{tlf|Milford Haven Line|弘安源氏論議}} ...renders... {{Milford Haven Line|弘安源氏論議}}
- {{tld|Milford Haven Line|弘安源氏論議}} ...renders...
{{Milford Haven Line|弘安源氏論議}}
- {{tlc|Milford Haven Line|弘安源氏論議}} ...renders...
{{Milford Haven Line|弘安源氏論議}}
- Za opis parametrov
- {{para|<var>name</var>|value}} ...vrne...
|name=vrednost
- {{tlx|Milford Haven Line|first parameter{{=}}first value}} ...vrne...
{{Milford Haven Line|prvi parameter=prva vrednost}}