Jump to content

Teamplaid:Para

O Wiktionary

|{{{1}}}={{{2}}}

Template documentation[view] [edit] [history] [purge]

Ùsaid - Usage

[deasaich]

This template simply displays a parameter name between a vertical line and an equal sign, as is seen in template calls. (This is useful in template documentation and in talk page discussions of templates.)

To display a parameter name surrounded by {{{triple-braces}}}, use {{param}} .

To display a parameter name in order to explain its usage on a template documentation subpage, use {{docparam}} .


Paramadairean - Parameters

[deasaich]

This template takes up to two positional (unnamed) parameters:

  • |1= the name of the parameter (may be empty if second parameter is present)
  • |2= a corresponding value for the parameter (optional if first parameter is present)

Eisimpleirean - Examples

[deasaich]
{{Para|name}}
Result: |name=
{{Para|title|book title}}
Result: |title=book title
{{Para||section}}
Result: |section. This is useful for referring to values of unnamed parameters; note the empty first parameter in the template call.
{{Para|parameter|value}}
Result: |parameter=value
{{Para|=|foo}}
Result: |=foo

When using literal, pre-specified values, simply provide the value (appearance as in example 3). When illustrating hypothetical, variable or user-definable values, use <var>value</var> (appearance as in example 2), and the same should be done for non-literal, example parameters (as in example 4).