Template:Progression/doc

Syntax


The  is a number between 0 and 100, without the trailing.

Optionally, the  parameter will set the number of decimal places to be rounded. If not specified, defaults to 1.



Calculates the progression as a function of



Calculates the progression as a function of, and displays a task label on the bar.

1 parameter (percent)










2 parameters








3 parameters




TemplateData
{	"params": { "1": {			"label": "value", "description": "The current value of the progression.", "type": "number", "suggested": true },		"2": {			"aliases": [ "total" ],			"label": "max value", "description": "The total value of the progression bar", "type": "number", "default": "100" },		"width": { "label": "width", "description": "The CSS width of the progression bar. Unit is required.", "example": "100px, 30em", "type": "string" },		"task": { "description": "The name displayed before the value.", "example": "Sorting articles", "type": "line" },		"decimal": { "description": "The decimal to be rounded to", "type": "number" },		"hidecomplete": { "label": "hide complete", "description": "Whether hide the display of number of completion.", "type": "boolean", "default": "0" }	},	"description": "The template is used to create a progression bar.", "paramOrder": [ "1",		"2",		"width", "task", "decimal", "hidecomplete" ],	"format": "inline" }