def METHOD_NAME(self, template, dashboard=False):
    result = ''
    for idx, item in enumerate(self.Items):
        key, zbxkey = item[0], item[1]
        result += template.item({
            'name': 'sparkmes: {0}'.format(item[2]),
            'key': zbxkey + ('[{0}]'.format(key)),
            'units': item[3],
            'value_type': item[6]
        })
        result += template.item({
            'name': 'sparkmes: {0}_Yprev'.format(item[2]),
            'key': zbxkey + ('[{0}_Yprev]'.format(key)),
            'units': item[3],
            'value_type': Plugin.VALUE_TYPE.numeric_float
        })
    if not dashboard:
        return result
    else:
        return []