
* @param {color[?]=} single color or array of colors; e. g. '#f00' for red. If thresholds are used provide one color more than thresholds (optional)
* @param {text[]=} array of upper thresholds; the color according to highest reached threshold is applied (optional)
*/
{% macro tank(id, item_pos, min, max, step, mode, color, threshold) %}

	{% set color = color is iterable ? color : [color] %}
	<div{% if not id is empty %} id="{{ uid(page, id) }}"{% endif %} data-widget="basic.tank" data-item="{{ item_pos }