(Created page with "This template is used to create a parameter list. <pre><nowiki> {{Parmdesc |name1|d1=description 1 |name2|d2=description 2 |name3|d3=description 3 }} </nowiki></pre> will result...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
This template is used to create a parameter list. | This template is used to create a parameter list. | ||
A separator displayed between the name of the parameter and its description can be optionally defined with the '''sep''' parameter. | |||
Setting the optional parameter '''highlight''' to ''no'' it is possible to display the parameter's name not in bold. | |||
< | {{code|1=<nowiki>{{Parmdesc | ||
|name1|d1=description 1 | |||
|name2|d2=description 2 | |||
|name3|d3=description 3 | |||
}}</nowiki>}} | |||
will result in | |||
{{Parmdesc | |||
|name1|d1=description 1 | |||
|name2|d2=description 2 | |||
|name3|d3=description 3 | |||
}} | |||
{{code|1=<nowiki>{{Parmdesc | |||
|sep=&#58; | |||
|name1|d1=description 1 | |||
|name2|d2=description 2 | |||
|name3|d3=description 3 | |||
}}</nowiki>}} | |||
will result in | |||
{{Parmdesc | {{Parmdesc | ||
|sep=: | |||
|name1|d1=description 1 | |name1|d1=description 1 | ||
|name2|d2=description 2 | |name2|d2=description 2 | ||
|name3|d3=description 3 | |name3|d3=description 3 | ||
}} | }} | ||
</nowiki></ | |||
Please note that in order to use the colon as separator its html entity <code>&#58;</code> must be used. | |||
{{code|1=<nowiki>{{Parmdesc | |||
|sep=&#58; | |||
|highlight=no | |||
|name1|d1=description 1 | |||
|name2|d2=description 2 | |||
|name3|d3=description 3 | |||
}}</nowiki>}} | |||
will result in | will result in | ||
{{Parmdesc | {{Parmdesc | ||
|sep=: | |||
|highlight=no | |||
|name1|d1=description 1 | |name1|d1=description 1 | ||
|name2|d2=description 2 | |name2|d2=description 2 | ||
|name3|d3=description 3 | |name3|d3=description 3 | ||
}} | }} |
Latest revision as of 11:40, 3 July 2011
This template is used to create a parameter list. A separator displayed between the name of the parameter and its description can be optionally defined with the sep parameter. Setting the optional parameter highlight to no it is possible to display the parameter's name not in bold.
{{Parmdesc |name1|d1=description 1 |name2|d2=description 2 |name3|d3=description 3 }}
will result in
- name1 description 1
- name2 description 2
- name3 description 3
{{Parmdesc |sep=: |name1|d1=description 1 |name2|d2=description 2 |name3|d3=description 3 }}
will result in
- name1: description 1
- name2: description 2
- name3: description 3
Please note that in order to use the colon as separator its html entity :
must be used.
{{Parmdesc |sep=: |highlight=no |name1|d1=description 1 |name2|d2=description 2 |name3|d3=description 3 }}
will result in
- name1: description 1
- name2: description 2
- name3: description 3