Modèle:Tlp/Documentation

De Didaquest
Aller à la navigationAller à la recherche

Modèle:High-use

This 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

Modèle:Aligned table

See also

Modèle:Navbar

General-purpose formatting


Modèle:Plainlist

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