Template:Creature/AssignAlignmentCategory

This template divides the content of a  field by separator and creates a category for each subtype in the list.