Modèle:Tlp/Documentation
De Didaquest
Aller à la navigationAller à la rechercheThis is the template link with parameters (or {{tlp}}) template.
It can be used in documentation and talk page discussions to show how a template name would be used in code.
Here is how this template looks. Code to the left and actual rendering to the right:
{{tlp|name|parameters}}
= {{name|parameters}}
Features of {{tlp}}:
- It shows a template name with a link to that template.
- It shows up to eight parameters.
- It also shows empty parameters. (See examples below.)
- It prevents line wraps in its output.
- It uses normal text style. (
{{tlx}}
, for instance, uses Modèle:Tag text style.)
This template belongs to a whole family of similar templates. See the see also section below for some of them. For instance, when writing documentation you might want to avoid a lot of unnecessary links, since it decreases readability – i.e. on the first occurrence of a template name, use {{tl}}, {{tlp}} or {{Tlx}}
and thereafter use Modèle:Tlf, {{tlc}}
or {{tld}}
.
Examples
See also
General-purpose formatting
Link style → | Linked | Unlinked | Linked with subst | Linked including braces | Linked with alternative text | |
---|---|---|---|---|---|---|
Text style ↓ | ↓ {{tlg}} options1 →
|
Modèle:N/a |
|
|
|
|
normal | Modèle:N/a | Modèle:Nowrap{{tl}} {{tlp}} 2{{tlu}} 3
|
{{tlf}} 2
|
{{tls}} {{tlsp}}
|
{{tn}}
|
{{tla}}
|
code
|
|
{{tl2}} {{tlx}} {{tlxu}} 3
|
{{tlc}} 2{{tld}} 2{{tnull}}
|
{{tlxs}}
|
colspan="2" Modèle:N/a | |
monospace kbd |
4 5
|
{{tltt}} 5{{tltt2}} 5
|
Modèle:N/a | {{tltts}} 5{{tltts3}} 5{{tltss}} 6
|
colspan="2" Modèle:N/a | |
bold |
|
{{tlb}}
|
rowspan="3" colspan="4" Modèle:N/a | |||
bold+code
|
|
{{tlxb}}
| ||||
italic+code
|
|
{{tlxi}}
|
Other formatting templates
Code example | Effect | Notes |
---|---|---|
{{tl2|Hatnote|lang=fr}} |
Modèle:Tl2 | Supports linking to sister projects (e.g., fr:Hatnote) |
{{tlu|User:Ahunt/SSHFS}} |
Modèle:Tlu | Supports linking to any namespace |
{{demo|<nowiki>{{Hatnote|lang=fr|Some text}}</nowiki>}} |
Modèle:Demo | Shows code and example |
{{xpd|Hatnote|Some hatnote text}} |
Modèle:Xpd | Shows code, example and a link to expand the template code |
{{para|title|<var>book title</var>}} |
|title=book title |
Formats template parameters for display, with or without values |
{{elc|Template:Hatnote}} {{elc|Template:Hatnote|Hatnote}} |
Modèle:Elc Modèle:Elc |
Formats wikilink, with optional piped link text and blended suffix |
{{tag|ref}} {{xtag|templatedata}} |
Modèle:Tag Modèle:Xtag |
Formats [X]HTML tags; can add content, choose opening, closing, or self-closing |
With utility links
Code example | Effect |
---|---|
{{lts|Hatnote}} |
Modèle:Lts |
{{t links|Hatnote}} |
Modèle:T links |
{{tfd links|Hatnote}} |
Modèle:Tfd links |
{{tiw|Hatnote}} |
Modèle:Tiw |
{{tltt|Hatnote}} |
Modèle:Tltt |
{{tetl|Hatnote}} |
Modèle:Tetl |
{{tsetl|Hatnote}} |
Modèle:Tsetl |
{{ti|Hatnote}} |
Modèle:Ti |
{{tic|Hatnote}} |
Modèle:Tic |
{{tiw|Hatnote}} |
Modèle:Tiw |
{{tlt|Hatnote}} |
Modèle:Tlt |
{{ttl|Hatnote}} |
Modèle:Ttl |
{{twlh|Hatnote}} |
Modèle:Twlh |