Template:Param-names/doc

From Angelina Jordan Wiki
This is a subpage documenting Template:Param-names. To change the template, edit that page; to change the template's documentation (seen below), edit this one.

Documentation

This template is used on a great many pages. Making any changes to it will cause lots of jobs to be added to the processing queue.

Usage

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

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

Examples

  • {{param-names|A}} ⇒ A=
  • {{param-names|A|B|C}} ⇒ A=|B=|C=
  • {{param-names|A|B|C|sp=y}} ⇒ A= |B= |C=
  • {{param-names|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z}}
    ⇒ A=|B=|C=|D=|E=|F=|G=|H=|I=|J=|K=|L=|M=|N=|O=|P=|Q=|R=|S=

Up to 19 parameter names can be specified. The rest are ignored, as seen in the last example. If you need to show more parameters, just use another {{param-names}} call. But be careful about spaces if you are using them:

  • {{param-names|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S}}|{{param-names|T|U|V|W|X|Y|Z}}
    ⇒ A=|B=|C=|D=|E=|F=|G=|H=|I=|J=|K=|L=|M=|N=|O=|P=|Q=|R=|S=|T=|U=|V=|W=|X=|Y=|Z=
  • {{param-names|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S}}{{sp}}|{{param-names|T|U|V|W|X|Y|Z}}
    ⇒ A= |B= |C= |D= |E= |F= |G= |H= |I= |J= |K= |L= |M= |N= |O= |P= |Q= |R= |S= |T= |U= |V= |W= |X= |Y= |Z=

Additional test cases

  • {{param-names}} ⇒ =
  • {{param-names|}} ⇒ =
  • {{param-names|A|B|}} ⇒ A=|B=

Aliases

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