AO3: [Wrangling] Mark Illegal Characters in Canonicals

Warns about any canonical tag that includes characters which should, per guidelines, be avoided. Checks on new tag, edit tag, search results, wrangle bins, and tag landing pages

Fejlesztő
escctrl
Napi telepítések
0
Telepítések száma
80
Értékelések
1 0 0
Verzió
2.5
Létrehozva
2023.07.29.
Frissítve
2025.03.08.
Size
10 KB
Licensz
MIT
Érvényes

💖 What it does

This script flags canonical tags, if they include any characters that shouldn't be used, per wrangling guidelines. For example, it will warn you if curly quotes (”) have snuck in instead of straight quotes ("). It checks fandom canonicals differently, since those may contain other language scripts.

🪴 How to use it

While navigating around your wrangling bins or tag pages, the script will flag any listed canonicals that contain "illegal" characters.

example view of the New Tag page flagging multiple issues on a tag

Pages and tags checked

  • New Tag: Checks as you type, and also warns if you're exceeding 150 chars. If Fandom is selected as the tag type, the checker switches to the fandom-specific allowed characters
  • Search Tag: Checks all canonicals in search results. Works both in vanilla search and with the script turning results into a table
  • Tag landing page: Checks the viewed tag itself (if canonical) as well as all metatags and subtags listed on the page. Does NOT check Parent tags.
  • Edit Tag: Checks the viewed tag itself (if canonical, or if you're checking the checkbox to make it canonical), the canonical it's synned to, all fandoms, metatags, subtags, and linked characters.
  • Wrangle pages in a bin: In the table, checks the tag (if canonical), and any listed canonical it's synned to, metatags, subtags, and linked characters.

Allowed Characters

  • All tags: latin letters, latin numbers, space, hyphen, dot, brackets, forward slash, ampersand, pipe, straight single quote, straight double quote.
  • Additionally, although guidelines says to avoid them, because they're often in use: colon, exclamation mark.
  • Additionally in fandom tags: any script letter, any script number, any script tone mark, hash, question mark, underscore.

Additionally it'll warn if two single quotes '' are used instead of a double quote ", if the tag has a space at the beginning or end, or if multiple spaces follow each other. Also if the / has spaces around it, or if an & is missing spaces around it.

If I forgot anything, please don't hesitate to contact me and I'll update the regex.

🐞 Known limitations and cross-compatibility

On the Tag landing page, Parent tags are not checked because it's programmatically impossible to tell if tags are fandoms, or something else (e.g. character tags for a viewed relationship).

🏛️ History

  • v2.5 - length counter on the New Tag page warns at 150
  • v2.0 - v2.4
    • now works with the updated search table script
    • added warnings for slashes with, and ampersands without surrounding spaces
    • added length counter on the New Tag page
    • fixes
  • v1
    • separate checks for regular and fandom tags on all pages
    • flags multiple spaces
    • flags spaces at beginning or end of tag
    • fixes for script incompatibilities