Template:Product/doc

From Wikipedia, the free encyclopedia

This is a documentation subpage for Template:Product (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

This basic template just evaluated and returns the product of its parameters (up to 4). Missing or empty parameters are ignored (treated like one). The parameters can also be numeric expressions that will be evaluated before adding them (this alternate form allows adding more values and simplifies the use of this template in other computing templates). This template returns 1 if all parameters are empty or missing.

Syntax:
{{Product|[value1]|[value2]|[value3]|[value4]}}
Note:
Using this template is generally not necessary, as the following syntaxes are similar and equivalent:
  • {{Product|value1|value2}}
  • {{Product|value1*value2}}
  • {{#expr:value1*value2}}
Use this template only for parameters that may be conditionally empty as they are tested and ignored.
See also: