Template:DepotNormalized

This template appends a ... to its argument if the argument ends in a /, removes any trailing or leading whitespace, and otherwise returns the argument unchanged. It's intended to help other templates that take Perforce depot paths as arguments be less finicky about formatting.