Template:Product
Jump to navigation
Jump to search
Returns the two parameters separated by an asterisk. Needed use for within Semantic Media Wiki's "#Ask", to find the sum of the products between two properties for a set of pages.
Example usage:
{{Product|23|56}}
23*56
{{#vardefineecho:example|{{#ask: [[Type::Plant]] [[Type2::Wild]] [[Lives In Grassland::>0]] | ?Lives In Grassland | ?Nutrition | mainlabel=- | link=none | import-annotation=true | sep=+ | format=plainlist | template=Product}} }}
={{#expr:{{#var:example}} }}
0.05*0.5+0.2*0.5+9*0.5+0.2*+1*0.5+9*0.5+0.05*0.2+9*0.5
=13.735
| The above documentation is transcluded from Template:Product/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |