Template:Para/doc: Difference between revisions
Template page
More actions
Use the `mbox` parameter of {{TemplateBox/sandbox}} |
m Fix Linter errors. |
||
| Line 30: | Line 30: | ||
#:{{para|<var>parameter</var>|<var>value</var>}} | #:{{para|<var>parameter</var>|<var>value</var>}} | ||
When using literal, pre-specified values, simply provide the value (appearance as in example 3). When illustrating hypothetical, variable or user-definable values, use < | When using literal, pre-specified values, simply provide the value (appearance as in example 3). When illustrating hypothetical, variable or user-definable values, use <code><nowiki><var>value</var></nowiki></code> (appearance as in example 2), and the same should be done for non-literal, example parameters (as in example 4). | ||
== See also == | == See also == | ||
Revision as of 17:47, 11 November 2022
Examples
- {{para|name}}
- renders as
|name=
- {{para|title|<var>book title</var>}}
- renders as
|title=book title
- {{para| |section}}
- renders as
|section- (for unnamed parameters in the example code; note the empty first parameter in the {{para}} template)
- {{para|<var>parameter</var>|<var>value</var>}}
- renders as
|parameter=value
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).