Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 21:40, 13 December 2022 by DatacronKeeper (talk | contribs) (Created page with "<code class="nowrap" style="{{SAFESUBST:<noinclude />#if:{{{plain|}}}|border: none; background-color: inherit;}} {{SAFESUBST:<noinclude />#if:{{{plain|}}}{{{mxt|}}}{{{green|}}}{{{!mxt|}}}{{{red|}}}|color: {{SAFESUBST:<noinclude />#if:{{{mxt|}}}{{{green|}}}|#006400|{{SAFESUBST:<noinclude />#if:{{{!mxt|}}}{{{red|}}}|#8B0000|inherit}}}};}} {{SAFESUBST:<noinclude />#if:{{{style|}}}|{{{style}}}}}">|{{SAFESUBST:<noinclude />#if:{{{1|}}}|{{{1}}}=}}{{{2|}}}</code><noinc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

|

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 at least 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). The second (optional) parameter is a value for the first example parameter; or, if the first parameter is empty, the second illustrates an example unnamed parameter (which in some cases may serve as a pre-defined parameter that takes no |=Template:Var after it, e.g. the |section in Template:Tlx).

Examples

Code Result Notes
Template:Tlx |name=
Template:Tlx |title=The Oxford English Dictionary
Template:Tlx |section For unnamed parameters; note empty first parameter in the code
{{para|{{var|parameter}}|{{var|value}}}} |Template:Var=Template:Var

When using literal, pre-specified parameter names and values, simply provide them (as in the first through third examples above). When illustrating hypothetical/example parameter names, or variable or user-definable values, use something like Template:Tlx.

See Wikipedia:Template:Para for more. This is a copy of that.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.