Template:DefaultSort/Title

Usage:
 * custom default sort value (optional)

This template adjusts the default sort of a page (i.e. how it's sorted in categories), taking the place of the magic word.

It will automatically treat the page title as a proper title. If added to the page with no parameters, will adjust a title to remove "The " or "A " at the start of titles for sorting purposes.

What's actually added to the page:

Test how a page will be sorted by default with  or. Note that this is not meant to be saved on a page, but only to preview to confirm how the page will be sorted.

The template will only read the page name, not the namespace, e.g. "Template:" will not be included when using in the Template namespace.

See also:
 * https://www.mediawiki.org/wiki/Help:Magic_words#Defaultsort