Template:Param-nameval

From Angelina Jordan Wiki
(Redirected from Template:Pnv)

Documentation

Usage

  • {{param-names|name1|value1|name2|value2||sp=}}

Setting the parameter sp to any true value will add sapce between the name/value pairs for increased readability (see examples below).

Examples

  • {{param-nameval|A|B}} ⇒ A=B
  • {{param-nameval|A|B|C|D}} ⇒ A=B|C=D
  • {{param-nameval|one|eins|two|zwei|three|drei|sp=y}} ⇒ one=eins |two=zwei |three=drei

Up to 19 name/value pairs can be specified. If you need more, just use another {{param-nameval}} call. But be careful about spaces, if you are using them:

  • {{param-nameval|A|α|B|β|…|…|S|σ}}|{{param-nameval|T|τ|…|…}}
    ⇒ A=α|B=β|…=…|S=σ|T=τ|…=…
  • {{param-nameval|A|α|B|β|…|…|S|σ|sp=y}}{{sp}}|{{param-nameval|T|τ|…|…}}
    ⇒ A=α |B=β |…=… |S=σ |T=τ |…=…

Additional test cases

  • {{param-nameval}}
  • {{param-nameval|}}
  • {{param-nameval|A|B|}} ⇒ A=B
  • {{param-nameval||B}} ⇒ =B
  • {{param-nameval|A|}} ⇒ A
  • {{param-nameval|A|B|C}} ⇒ A=B|C=
  • {{param-nameval|A|B|C|}} ⇒ A=B|C=

Alias

See also

Full list of similar templates (including this one in bold):    [edit this list]

  • {{params}} or {{p}} – no particular formatting of parameters: {{p|A|B|C|D}} ⇒ A|B|C|D
  • {{param-names}} or {{pn}} – shows parameter names only: {{pn|A|B|C|D}} ⇒ A=|B=|C=|D=
  • {{param-nameval}} or {{pnv}} – shows parameter name/value pairs: {{pnv|A|B|C|D}} ⇒ A=B|C=D
  • {{param-namevalvar}} or {{pnvv}} – shows parameter names with generic (variable) values: {{pnvv|A|B|C|D}} ⇒ A=B|C=D
  • {{param-var}} or {{pv}}}} – shows only variable parameter values: {{pv|A|B|C|D}}A|B|C|D