Steps to replicate the issue (include links if applicable):
- Start editing a page and add a template transclusion with a parameter name containing a hyphen:
{{Test
|Correct name highlight=Param value
|Incorrect name-highlight=Param value
}}What happens?:
"Incorrect name-highlight" receives a tag of template instead of templateArgumentName.
What should have happened instead?:
Should have received a tag of templateArgumentName.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Happens on WMF wikis.
Other information (browser name/version, screenshots, etc.):
This is a regression after c61e20dda38b6e3b4b7f3d284261635f35c8fe61 (T281024) which added hyphens to the terminating character set for template arguments, causing eatTemplateArgument to bail with a template tag as the only terminator qualifying for templateArgumentName is an equality sign =. Unsure if this affects other tags.
