Jump to content

Module:Sortkey/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Izno (talk | contribs) at 00:57, 26 May 2024 (dep). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

This module sanitizes and escapes sortkeys so that they can be used inside the data-sort-value attribute of HTML tags in combination with table sorting. Use it when you cannot be certain that the provided sortkey input is a correct sortkey.

Usage

[edit]

{{#invoke:Sortkey|escape|sortkey to sanitize}}