Help:Variables

From QED

Jump to: navigation, search
Help
Related topics

On QED, there are two types of variables:

  • named variables, such as {{PAGENAME}}, can appear on any page;
  • template variables, such as {{{1}}}, are only meaningful within templates.

For help on named variables, see QED:Variables.

Template Variables

Templates can be called with one or more parameters, e.g. {{t|x|p=y}}). Within the template definition, the parameter values can be referenced using triple-brace notation as follows:

  • the value of the first parameter can be accessed by {{{1}}}, and similarly for the second parameter, etc.
  • the value of a named parameter, e.g. p, can be accessed by specifying the parameter name, e.g. {{{p}}}.

A default value for parameters can also be specified, e.g. {{{1|DEFAULT}}}, and similarly for named parameters. DEFAULT can be empty, e.g. {{{1|}}}.

See also

External link

Personal tools