Template:ShortPageTitle

From Frictional Wiki
Revision as of 14:34, 24 July 2020 by TiMan (talk | contribs) (Created page with "<noinclude>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 subpa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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.