Šablon:para
Appearance
|{{{1}}}={{{2}}}
- Sledeća dokumentacija se nalazi na Šablon:para/dok. [edit]
- Korisne veze: subpage list • veze • preusmerenja • transclusions • greške (parser/modul) • pesak
Usage
[uredi]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}}} (as would appear in template code), use {{paramref}}
.
Parameters
[uredi]This template takes the following parameters:
|1=
(may be empty if second parameter is present): the name of the parameter|2=
(optional if first parameter is present): a corresponding value for the parameter|3=
(optional): additional usage text|req=1
: indicate that the parameter is required|opt=1
: indicate that the parameter is optional
Examples
[uredi]{{para|name}}
- Result:
|name=
- Result:
{{para|name|req=1}}
- Result:
|name=
(required)
- Result:
{{para|name|opt=1}}
- Result:
|name=
(optional)
- Result:
{{para|opt|1}}
- Result:
|opt=1
- Result:
{{para|title|<var>book title</var>}}
- Result:
|title=book title
- Result:
{{para||section}}
- Result:
|section
. This is useful for referring to values of unnamed parameters; note the empty first parameter in the template call.
- Result:
{{para|<var>parameter</var>|<var>value</var>}}
- Result:
|parameter=value
- Result:
{{para|foo|=}}
- Result:
|=foo
- Result:
{{para|2||''optional'' if first parameter is present}}
- Result:
|2=
(optional if first parameter is present)
- Result:
When using literal, pre-specified values, simply provide the value (appearance as in example 6). When illustrating hypothetical, variable or user-definable values, use <var>value</var>
(appearance as in example 5), and the same should be done for non-literal, example parameters (as in example 7).