Template:GetCropName
From Pestinfo-Wiki
The template takes the name of a crop and checks if the first part of the name is identical to "Grasses/turf/rangeland -" or "Mushrooms -". If yes, it either removes this part and returns the subsequent part of the string or it returns only the first part (if the remaining part is "All"). If no, it returns the original name of the crop.