lmy wiki:Link templates/Template links
From lisamarieyoung.ca
[ subpage]
Template links
Code | Result | Notes | lock | |
---|---|---|---|---|
{{T|example}} |
{{Example}} | makes brackets part of the link; see docu | ||
{{T0|example}} |
Example | just link, without the brackets; see docu | ||
{{T1|example}} |
{{Example}} | inner brackets are part of the link; see docu | ||
{{T2|example}} |
{{Example}} | brackets are not a part of the link; see docu | ||
{{Tl|example}} |
{{Example}} | makes brackets around the link; see docu | ||
{{Tls|example}} |
Template:((
| |||
Templates showing parameters Template:0 Template:Nobold | ||||
{{Tle|T=F|p1=1|v1|p2=2|v2|p3=3|v3}} |
{{ F | 1 = v1 | 2 = v2 | 3 = v3 }} |
decribes template parameters by names and values | ||
{{Tlx|example|1|2|3|4|5||7|8|9}} |
Template:((example|1|2|3|4|5|...Template:)) | up to 8 parameters | ||
{{Tlf|example|1|2|3|...up to 8}} |
{{example|1|2|3|...up to 8}} | up to 8 parameters, no link; see docu | ||
{{Tlc|example|1|2|3|4|||7|up to 8|9}} |
Template:((example|1|2|3|4 |
7|up to 8Template:)) | up to 8 parameters, no link, <syntaxhighlight inline lang="html"></syntaxhighlight> style |
|
{{Tld|example|1|2||3||}} |
{{example|1||2|3||}} | up to 8 parameters, <syntaxhighlight inline lang="html"></syntaxhighlight> style; see docu |
||
{{Tlr|User:Example}} |
Template:Tlr | like {{tl}} but for any namespace | ||
{{Tlsu|User:Example}} |
{{
| |||
Alternative forms Template:0 Template:Nobold | ||||
{{Tlp|example|1|2|3|4|5||7|8|9}} |
Template:((example|1|2|3|4|5 | 8Template:)) | up to 8 parameters; ignores empty parms | |
{{Tl2|example|p1|p2}} |
{{example|p1|p2}} |
up to 2 parameters, <syntaxhighlight inline lang="html"></syntaxhighlight> style; see docu |
||
{{Tlsp|example|1|2|3|4|5|6|7|8|9}} |
{{subst:example|1|2|3|4|5|6|7|8|...}} | up to 8 parameters, adds linked "subst:"; see doc | ||
{{Tlsx|example|1|2|3|4|5|6|7|8|9}} |
{{subst:example|1|2|3|4|5|...}} |
up to 5 parameters, adds linked "subst:", <syntaxhighlight inline lang="html"></syntaxhighlight> style |
General-purpose formatting
Text style ↓ | {{tlg}} options[note 1] to achieve text style |
Link style | ||||
---|---|---|---|---|---|---|
Linked | Unlinked | Linked with subst | Unlinked with subst | Linked including braces | ||
{{tlg}} options[note 1] to achieve link style |
N/A | DEFAULT | nolink=yes
|
subst=yes
|
nolink=yes
|
braceinside=yes
|
normal | DEFAULT |
|
|
N/A | ||
code
|
code=yes
|
|
N/A | |||
monospace | plaincode=yes |
N/A | N/A | |||
kbd | kbd=yes |
- ↑ 1.0 1.1 1.2
{{tlg}}
is the most general template, allowing any combination of text style and/or link style options. - ↑ 2.0 2.1 2.2 2.3 2.4 Prevents wrapping of text by placing it inside <syntaxhighlight inline lang="html">...</syntaxhighlight> tags.
- ↑ 3.0 3.1 3.2 Allows links to templates in any namespace.
- ↑
Template:((tlg|plaincode=yesTemplate:))
uses <syntaxhighlight inline lang="html">...
</syntaxhighlight>. - ↑ 5.0 5.1 5.2 5.3 Displays monospaced font using <syntaxhighlight inline lang="html">...</syntaxhighlight>.
Lua error in Module:Autotranslate at line 72: No fallback page found for autotranslate (base=Template:Documentation/i18n, lang=⧼lang⧽).