Template:headword-line template cat/documentation

Adds a Category:Headword-line templates subcategory to template pages based on the language code at the beginning of the title. Supports proto-language codes that are abbreviated by removing the  suffix (Proto-Indo-European, , -> ) as well as language codes with hyphens in them.