User:Guarapiranga/search-shortcuts

Adds configurable shortcuts to the search bar: The shortcuts are immediately substituted as soon as a colon or a slash (/) is typed in, and need to be declared wherever the script is imported (typically common.js or skin.js) in this fashion:
 * To namespaces that don't have namespace aliases such as WP: and WT: (e.g. Template, Category, User, Help, etc);
 * To subpages that don't have shortcuts of pages that do (e.g. Village pump (technical)/Archive 197 can be accessed simply typing WP:VPT/Archive 187);
 * To modules and templates by simply pasting {{#invoke:module (|…)}} for Module:module and {{template (|…)}} for Template:template

Credit
This script was forked from SD0001, who in turn forked it from Enterprisey (Enterprisey's script only handles shortcuts to subpages; SD0001's script added shortcuts to namespaces, but didn't allow its users to set their own shorcuts).