Wikipedia:Dead-end pages/Header/GetPageTabType
{{#ifeq: {{SUBPAGENAME}} | {{{1}}} | 1 | 2 }}
This template checks if the first param is equal to the SUBPAGENAME, and if so, returns 1. Otherwise, it returns 2. This sub-template is used as a shortcut to make tabs highlight, without having heaps of parserfunctions in the main template.