Modèle:Para/Documentation

De Didaquest
Aller à la navigationAller à la recherche

Modèle:Distinguish

Usage

This template is for giving examples of template parameter source code (useful in template documentation and talk page discussions of template code). It must have one or two parameters itself. The first parameter is the name of the example parameter to display (this may be empty, but it must be present), and the second (optional) parameter is a value for the first example parameter or, if the first {{para}} parameter is empty, an unnamed example parameter.

Examples

Code Result Notes
{{para|name}} |name=
{{para|title|<var>book title</var>}} |title=book title
{{para| |section}} |section For unnamed parameters; note empty first parameter in the code
{{para|<var>parameter</var>|<var>value</var>}} |parameter=value

When using literal, pre-specified values, simply provide the value (as in the third example above). When illustrating hypothetical, variable, or user-definable values, use <var>value</var> (as in the second example above). The same should be done for non-literal, example parameters (fourth example above).

See also

See also the three tables below; they describe the family of approximately forty templates built for talking about templates.

Here are some related templates or subjects not found in the tables:

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