Template:Calculate/doc

Usage
Use this template when calculating with one or more values in the form of a sequence (e.g. 1/2/3).


 * – The intended calculation in the form of a mathematical expression, with  representing the respective value sequences, e.g.  . Supports percentages, e.g. , which is automatically converted to  . Follows the same rules as the parser function #expr.


 * – Each sequence of values has to be set as a separate parameter, with n representing its index number, e.g.  . Supports percentages, e.g..


 * – Optional. Can be set to  in order to return the results as percentages.

Examples

 * 1) v1+5 generates:.
 * 2) v1*v2 generates:.
 * 3) v1/3 round2 generates:.
 * 4) v1*80 generates:.
 * 5) v1-v2 generates:.
 * 6) (v1-0.3)/5*0.1 generates:.
 * 7) (v1-1)*12% generates:.

TemplateData
{	"params": { "1": {			"label": "Calculation", "description": "The calculation with v1, v2, ... in place of the levelled values.", "example": "v1+3", "type": "string", "required": true },		"2": {			"label": "Percentage", "description": "Set this parameter to activate sprecial percentage handling.", "type": "boolean" },		"v1": { "label": "Value 1", "description": "A levelled value with levels separated by a forward slash.", "example": "1/2/3/4", "required": true },		"v2": { "label": "Value 2", "description": "A levelled value with levels separated by a forward slash.", "example": "1/2/3/4", "suggested": true }	},	"format": "inline", "paramOrder": [ "1",		"v1", "v2", "2"	],	"description": "Use this template when calculating with one or more values in the form of a sequence." }

zh:Template:Calculate/doc