Toggle menu
15
236
69
27.5K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:SortName/doc: Difference between revisions

From Kenshi Wiki
No edit summary
No edit summary
 
Line 15: Line 15:
<noinclude>
<noinclude>
[[Category:Module documents]]
[[Category:Module documents]]
[[Category:Module documentation pages]]
</noinclude>
</noinclude>

Latest revision as of 01:16, 10 March 2025

Module:SortName (edit | talk | history | links | watch | logs) This module returns a string in a format suitable as a category sortkey, per WP:NAMESORT.

Input

The module accepts a string as the first and only unnamed parameter, but is meant to be used with no parameter, in which case the title of the calling page is used.

Usage

This module should be subst'd for use in template parameters that accept a sortkey or in the {{DEFAULTSORT}} variable.

  • No input (sorts the pages title): {{subst:#invoke:SortName|sortname}}
  • With input: {{subst:#invoke:SortName|sortname|input string}}