The [[//mediawiki.org/wiki/Extension:Translate|Translate extension]], comes with [[//mediawiki.org/wiki/Template: translatable template|{{Translatable template}}]], but a translated template is no longer searchable with CirrusSearch hastemplate search parameter.
Hastemplate can find template usage where the target is a secondary template, and this ability should also be able to find where the target template is passed as a parameter. Currently hastemplate doesn't recognize the parameter list as "a place for template names", as it does in template code, where it the target template as a secondary.
The only workaround is a set of case-insensitive regex searches, for all possible combination of aliases, and even after all that work, it still sacrifices the visibility of secondary template.
For example, these two queries should have the same count, but hastemplate is way off:
* [hastemplate: ApiEx](//mediawiki.org/wiki/Special:Search/all:hastemplate: ApiEx)
* [insource:/TNT *\| *ApiEx/i insource: "tnt apiex"](//mediawiki.org/w/index.php?search=all:insource:/Tnt *\| *ApiEx/i+insource:+"tnt+apiex"&title=Special:Search&go=Go)
For a target template with two aliases, six queries are required, and even then no secondary template-usage is found:
* [hastemplate:Documentation](//mediawiki.org/wiki/Special:Search/all:hastemplate: Documentation)
* [insource:/TNT *\| *Documentation/i insource: "tnt documentation"](//mediawiki.org/w/index.php?search=all:insource:/TNT+*\|+*Documentation/i+insource:+"tnt+documentation"&title=Special:Search&go=Go)
* [insource:/TNT *\| *Doc/i insource: "tnt doc"](//mediawiki.org/w/index.php?search=all:insource:/TNT+*\|+*Doc/i+insource:+"tnt+doc"&title=Special:Search&go=Go)
* [insource:/TNT *\| *Template doc/i insource: "tnt template doc"](//mediawiki.org/w/index.php?search=all:insource:/TNT+*\|+*Template+doc/i+insource:+"tnt+template+doc"&title=Special:Search&go=Go)
* [insource:/Translatable template *\| *Documentation/i insource: "Translatable template documentation"](//mediawiki.org/w/index.php?search=all:insource:/Translatable template+*\|+*Documentation/i+insource:+"Translatable template+documentation"&title=Special:Search&go=Go)
* [insource:/Translatable template *\| *Doc/i insource: "Translatable template doc"](//mediawiki.org/w/index.php?search=all:insource:/Translatable template+*\|+*Doc/i+insource:+"Translatable template+doc"&title=Special:Search&go=Go)
* [insource:/Translatable template *\| *Template doc/i insource: "Translatable template template doc"](//mediawiki.org/w/index.php?search=all:insource:/Translatable template+*\|+*Template+doc/i+insource:+"Translatable template+template+doc"&title=Special:Search&go=Go)