Attention
This module behaves differently depending on namespace and whether it is on a subpage. Do not rely on Template:Asbox/testcases (which is in template space and a subpage) since emulations of template/article space may not fully capture non-template and non-subpage behavior.
Unless you're fixing a typo, you should perform all of the following steps before make a live edit (or make a request on the talk page for someone else to review). While tedious, they are essential since the module is live on approximately 2 million pages, such that even a tiny oversight may cause massive miscategorization.
- Make sure you are previewing in Module:Asbox/sandbox to avoid accidentally clicking 'save page' instead of 'preview'.
- Check if Template:Asbox/sandbox is invoking Module:Asbox/sandbox. (Sometimes it is set to the pre-module version of Asbox during tests)
- Preview Template:Asbox/testcases and review each item to ensure inconsistencies, if any, are intentional.
- Open in new tab and preview User:Codehydro/Asbox userspace testcase. Compare preview and live versions of each item.
- Don't forget to check categorization on the bottom of the live and preview versions of page to ensure they match, or that any inconsistencies are expected.
- Repeat the previous two steps on Template:Stub, which is the root stub template (any errors on this template may cascade to all stubs)
- Repeat both steps on at least one stub template (e.g. Template:T)
- Repeat both steps of the last step on a live page that trancludes that template (e.g. any page in)
- Repeat both steps on at least one subordinate stub template (e.g. Template:T) and on a live page that transcludes it.
- Considering repeating all of the above steps. This time, try to find a different top-level and subordinate template.
- Copy your code to the non-sandboxed version and click 'show changes' and review each change before saving.
- Remember to perform follow-up actions (below) after the edit.
Follow-up actions:
- Open a live article that transcludes a top-level stub template and, in another tab, open Category:Stub message templates needing attention and check that the article page is not listed.
- If listed, fix problem and look for a live article with a top-level Template:T that is not already in the attention category. Keep both tabs open.
- Open a third tab that is a duplicate of the article and perform a null edit on this tab. (Purging is not enough; make sure not to refresh the first tab)
- Purge the attention category and make sure the article doesn't appear. If it does, fix the problem.
- Find a new page near the bottom of Special:NewPages that is a stub but does not have a stub tag. (Pick one not edited within an hour to avoid edit conflicts)
- Add
<!--start test of stub maintenance categories; will fix shortly-->{{#invoke|Asbox|main}}<!--end test--> to new article.
- Check attention category. Page should appear there.
- REDIRECT Template:• If it does not appear, perform a null edit on the article, purge the category, and check again. If it still does not appear, undo the test edit and check module code.
- REDIRECT Template:• If it does appear, replace with appropriate subordinate stub tag.
- Remember to revisit the attention category over next few days to ensure no correct pages appear there.
Thank you for your contribution! —CodeHydro 18:45, 8 February 2015 (UTC) |