User:Ahecht/Scripts/TemplateSearch

Script based on User:SiBr4/TemplateSearch.js by User:SiBr4, with added support for the Vector 2022 and Minerva Neue skins.

Allows using "TP:" and "{{" as shortcuts for "Template:" in the search box. See Village pump (proposals)/Archive 127.

Install by adding the following row to your Special:MyPage/common.js, Special:MyPage/skin.js, or meta:Special:MyPage/global.js:

If you wish to add additional RegEx searches, add  before the above code to your common.js, skin.js, or global.js. For example, to replace  at the beginning of the search with , add:

{{collapse top|title=Source code}} {{User:Ahecht/Scripts/TemplateSearch.js}} {{collapse bottom}}