Template:Shortpagetitle

From Valve Developer Community
Jump to: navigation, search

Template used to make a subpage display without the prefix, and to sort properly in categories. It sets the DISPLAYTITLE as well as the DEFAULTSORT key to the subpage name instead of the full page name.

For example, a page called "BigPage/Group/Details" will appear as "Details" in the page title and will sort into the "(G)roup" section instead of "(B)igPage".

Usage

Add this template to the page (preferably at the bottom of the page, right before categories, on its own line).

Example, added before to page in the Level Design category:

...
{{shortpagetitle}}
[[Category:Level Design]]
...

Caveats

Note that the page will still show up with the full page name in the category listing, though it will be sorted correctly.