General information about WPCleaner |
Discuss the application |
Suggestions for spelling and typography |
Frequently asked questions |
Install instructions |
| Bug report or feature request · History of changes · Configuration (help, template) · Wikis · Languages · Users · Screenshots | ||||
This page contains the configuration of Check Wikipedia error No. 6 (DEFAULTSORT with special letters) for WPCleanerNG.
WPCleanerNG reads the parameters from the YAML block below when a user logs in. When this page exists, the parameter error_006_replacements_enwiki of Wikipedia:WikiProject Check Wikipedia/Translation is no longer used by WPCleanerNG. The other settings of the error (priority, title, description, whitelist) are still read from that page. See Wikipedia:WPCleanerNG/Configuration for the format of this page.
replacements: list of replacements of special characters in sort keys, used by error No. 6 (fixing {{DEFAULTSORT:…}}) and by error No. 37 (creating {{DEFAULTSORT:…}} from the title). Each replacement is given by the fields:
character: the special character to replace (a single character);replacement: the text replacing it, made only of characters allowed in sort keys;word: true to write the replacement as a word, with exactly one space before and after it (none at the beginning or the end of the sort key), false (default) to write it as is.Example: with the configuration below, {{DEFAULTSORT:Tom & Jerry}} and {{DEFAULTSORT:Tom&Jerry}} both become {{DEFAULTSORT:Tom and Jerry}} (T256055).
replacements:
# "&" replaced with the word "and"
- character: "&"
replacement: and
word: true