Module:ListSorter/doc
Jump to navigation
Jump to search
This is the documentation page for Module:ListSorter
| This is a documentation subpage for Module:ListSorter. It contains usage information, categories, and other content that is not part of the original module page. |
Usage
This module (designed specifically for Template:Users On Uncyclopedia) automatically alphabetizes lists of users separated by bullets (•). It is designed to allow names to be added anywhere in a list without worrying about alphabetical order.
It ignores case and strips standard user templates (like {{u}}) to ensure accurate sorting.
Syntax
{{#invoke:ListSorter|sort|
{{u|UserB}} • {{u|UserA}} • {{u|UserC}}
}}
Output
Technical Details
- Delimiters: The script splits lists based on the bullet character (•).
- Stripping: It temporarily removes {{u|...}}, [[...]], and parentheses for the purpose of sorting comparison.
- Whitespace: It cleans up newlines and spaces, so the input can be formatted vertically in the code editor.