Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It is notable that, unlike dashes, underscores are treated specially. Effectively they are treated as any other non-normal character, and converted into dashes. However, a single underscore is permitted at the start of any given section of a name. This allows for special pages like _template or _404 to exist, even in categories.

For instance, the following slugs are considered already normalized:

  • _template

  • fragment:_template

  • fragment:_category:_template

And the following are not. Their conversions are also shown:

Original

Intermediate

Result

__template

_-template

_template

apple_

apple-

apple

fragment_:page

fragment-:page

fragment:page

category__:_fragment_:page_

category--:-fragment-:page-

category:fragment:page

Character Transformations

...