Difference between revisions of "Template:ShortPageTitle"
Jump to navigation
Jump to search
(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...") |
m |
||
Line 2: | Line 2: | ||
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". | 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". | ||
− | * See [[Special:WhatLinksHere/Template: | + | * See [[Special:WhatLinksHere/Template:ShortPageTitle|some examples in use]]. |
== Usage == | == Usage == |
Latest revision as of 14:34, 24 July 2020
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".
- See some examples in use.
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.