Module:ListSorter/doc

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

This is the documentation page for Module:ListSorter

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

UserAUserBUserC

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.