Template:Default sort key for subpages/doc
- Description
- This template is used to insert a “{{DEFAULTSORT:sortkey}}” code into sub-pages, in such a way that the sub-page will sort on the reversed title parts on category pages.
- Dependencies
- Syntax
- Type
{{Default sort key for subpages|pagename}}
in any page, preferably on top. - The parameter pagename is optional and defaults to the complete pagename (without namespace) of the page it is used on.
- Example
- Using
{{Default sort key for subpages}}
on a page named “Title1/Title2/Title3” will generate: {{DEFAULTSORT: Title3, Title2, Title1}}
- See also
- Bottom part of mw:Help:Magic_words#Technical_metadata