Adds the list element $name with the value $value. In the template, it is called for all listItem tags.