User:Mzs/TODO/Deprecating Sources
Having Category:_____ Sources for Discrete qualities (and items) and Category:_____ Gain for non-Discrete qualities is all downside with no benefit. The split appears to exist for historical reasons, with references in even very old code stating we should eventually only use Category:_____ Gain.
We could theoretically take the YOLO method: pick an off-peak time, update all the templates to only link to or add the Gain category instead of the Sources category, then set a bot to work updating directly-set categories and moving pages. Unfortunately, this would create noticeable disruption to the user experience and I don't think said disruption could be fully contained within an off-peak window.
A minimal disruption[1] approach is possible by breaking the process into 5 steps, each leaving plenty of time in between for the cache to catch up.
Also add Gain everywhere we add SourcesUpdate {{Item}} and {{Quality}} to no longer add [[Category:Discrete Qualities with Gain Categories]] (since that will be every Discrete quality)Update all templates that add Sources category[2] to also add Gain categorySet a bot to add [[Category:{{{NAME}}} Gain]] to every page that adds [[Category:{{{NAME}}} Sources]][3]
Link to Gain category instead of Sources when appropriateMove Sources category pages to GainSet a bot to move all [[Category:{{{NAME}}} Sources]] pages to to [[Category:{{{NAME}}} Gain]], leaving redirects behind.
Stop adding to Sources categoriesUpdate all templates that add Sources only Gain.Set a bot to remove [[Category:{{{NAME}}} Sources]] on every page that sets it
Stop linking to Sources categories
- ↑ I say "minimal" instead of "no" only because the transition includes small visible effects, even though those effects should not themselves be a problem.
- ↑ {{Accomplishment}}, {{Bundle}}, {{Gain}}, {{Item Gain}}, {{Shop Inventory}}, {{Twist}}
- ↑ (As of 21:55, 29 May 2021, I can find 474 such pages)