Template:Tlu
Jump to navigation
Jump to search
{{Template:Tlu}}
- Usage: {{Tlu|fullpagename|up to three parameters}}
- Like {{Tlx|template}}, but fullpagename can be any page, and especially a user subpage used as template.
[ subpage]
Template links
[edit]Code | Result | Notes | lock |
---|---|---|---|
{{T|example}} |
{{Example}} | makes brackets part of the link | |
{{T0|example}} |
Example | just link, without the brackets | |
{{T1|example}} |
{{Example}} | inner brackets are part of the link | |
{{T2|example}} |
{{Example}} | brackets are not a part of the link | |
{{Tl|example}} |
{{Example}} | makes brackets around the link | |
{{Tlr|User:Example}} |
{{User:Example}} | like {{tl}} but for any namespace | |
{{Tls|example}} |
{{subst:example}} | no parameters, adds "subst:" | |
Templates showing parameters Meta template {{Tle}} is easiest to parametrize. | |||
{{Tle|T=F|p1=1|v1|p2=2|v2|p3=3|v3}} |
{{ F | 1 = v1 | 2 = v2 | 3 = v3 }} |
describes template parameters by names and values | |
{{Tlx|example|1|2|3|4|5||7|8|9}} |
{{example|1|2|3|4|5|7|8|...}} | 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 | |
{{Tlc|example|1|2|3|4|||7|up to 8|9 is ignored.}} |
{{example|1|2|3|4|||7|up to 8}} |
up to 8 parameters, no link, <code> style |
|
{{Tld|example|1|2||3||}} |
{{example|1||2|3||}} | up to 8 parameters, <code> style[clarification needed] |
|
{{Tlsu|User:Example}} |
{{subst:User:Example}} | like {{Tls}}, but supporting parameters | |
Alternative forms These ignore empty parameters. | |||
{{Tlp|example|1|2|3|4|5||7|8|9 is ignored.}} |
{{example|1|2|3|4|5|7|8}} | up to 8 parameters; ignores empty parms | |
{{Tl2|example|p1|p2}} |
{{example|p1|p2}} |
up to 2 parameters, <code> style |
|
{{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:" | |
{{Tlsx|example|1|2|3|4|5|6 and above are ignored.|7}} |
{{subst:example|1|2|3|4|5|...}} |
up to 5 parameters, adds linked "subst:", <code> style |
General-purpose formatting
[edit]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 | mono=yes |
N/A | N/A | |||
plaincode
|
plaincode=yes | |||||
kbd[clarification needed] | kbd=yes |
- ↑ a b c
{{tlg}}
is the most general template, allowing any combination of text style and/or link style options. - ↑ a b c d e Prevents wrapping of text by placing it inside
<span class="nowrap">...</span>
tags. - ↑ a b c Allows links to templates in any namespace.
- ↑ a b c d Displays monospaced font using
<span style="font-family: monospace;">...</span>
. - ↑
{{tlg|plaincode=yes}}
uses<code style="border: none; background-color: transparent;">...</code>
. - ↑
{{tlg|kbd=yes}}
uses<kbd>...</kbd>
.