Template:Parmdesc: Difference between revisions From Online Manual

Jump to: navigation, search
(added sep parameter)
(highlight)
 
Line 1: Line 1:
{{#if: {{{1|}}} |<ul><li>'''{{{1}}}'''{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d1|}}} | {{{d1}}} }}</li>}}{{
{{#if: {{{1|}}} |<ul><li>{{#ifeq: {{{highlight}}}|no|{{{1}}}|'''{{{1}}}'''}}{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d1|}}} | {{{d1}}} }}</li>}}{{
#if: {{{2|}}} |<li>'''{{{2}}}'''{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d2|}}} | {{{d2}}} }}</li>}}{{
#if: {{{2|}}} |<li>{{#ifeq: {{{highlight}}}|no|{{{2}}}|'''{{{2}}}'''}}{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d2|}}} | {{{d2}}} }}</li>}}{{
#if: {{{3|}}} |<li>'''{{{3}}}'''{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d3|}}} | {{{d3}}} }}</li>}}{{
#if: {{{3|}}} |<li>{{#ifeq: {{{highlight}}}|no|{{{3}}}|'''{{{3}}}'''}}{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d3|}}} | {{{d3}}} }}</li>}}{{
#if: {{{4|}}} |<li>'''{{{4}}}'''{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d4|}}} | {{{d4}}} }}</li>}}{{
#if: {{{4|}}} |<li>{{#ifeq: {{{highlight}}}|no|{{{4}}}|'''{{{4}}}'''}}{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d4|}}} | {{{d4}}} }}</li>}}{{
#if: {{{5|}}} |<li>'''{{{5}}}'''{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d5|}}} | {{{d5}}} }}</li>}}{{
#if: {{{5|}}} |<li>{{#ifeq: {{{highlight}}}|no|{{{5}}}|'''{{{5}}}'''}}{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d5|}}} | {{{d5}}} }}</li>}}{{
#if: {{{6|}}} |<li>'''{{{6}}}'''{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d6|}}} | {{{d6}}} }}</li>}}{{
#if: {{{6|}}} |<li>{{#ifeq: {{{highlight}}}|no|{{{6}}}|'''{{{6}}}'''}}{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d6|}}} | {{{d6}}} }}</li>}}{{
#if: {{{7|}}} |<li>'''{{{7}}}'''{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d7|}}} | {{{d7}}} }}</li>}}{{
#if: {{{7|}}} |<li>{{#ifeq: {{{highlight}}}|no|{{{7}}}|'''{{{7}}}'''}}{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d7|}}} | {{{d7}}} }}</li>}}{{
#if: {{{8|}}} |<li>'''{{{8}}}'''{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d8|}}} | {{{d8}}} }}</li>}}{{
#if: {{{8|}}} |<li>{{#ifeq: {{{highlight}}}|no|{{{8}}}|'''{{{8}}}'''}}{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d8|}}} | {{{d8}}} }}</li>}}{{
#if: {{{9|}}} |<li>'''{{{9}}}'''{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d9|}}} | {{{d9}}} }}</li>}}{{
#if: {{{9|}}} |<li>{{#ifeq: {{{highlight}}}|no|{{{9}}}|'''{{{9}}}'''}}{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d9|}}} | {{{d9}}} }}</li>}}{{
#if: {{{10|}}} |<li>'''{{{10}}}'''{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d10|}}} | {{{d10}}} }}</li>}}{{
#if: {{{10|}}} |<li>{{#ifeq: {{{highlight}}}|no|{{{10}}}|'''{{{10}}}'''}}{{#if:{{{sep|}}}|{{{sep}}}}} {{#if: {{{d10|}}} | {{{d10}}} }}</li>}}{{
#if: {{{1|}}} |</ul>}}
#if: {{{1|}}} |</ul>}}
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>

Latest revision as of 11:36, 3 July 2011

[edit] [purge] Template documentation

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=&#58;
|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 &#58; must be used.

{{Parmdesc
|sep=&#58;
|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


Advertisement: