Template:Editnotices/Page/Module:Asbox

From blackwiki
< Template:Editnotices
Revision as of 21:32, 8 February 2015 by imported>Codehydro
Jump to navigation Jump to search

{{editnotice |expiry = indefinite |header = Attention |headerstyle = font-size:150% |text = This module's behavior depends on namespace and whether or not 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 fixing a typo, you should perform all of the following sequentially before make a live edit (or make a request help at talk page). While tedious, the module affects approximately 2 million pages, such that even a tiny oversight may cause massive miscategorization.

Pre-save checks:

  1. Sync Module:Asbox/sandbox to current Module:Asbox and edit there to avoid accidental 'save page' clicks.
  2. Check if Template:Asbox/sandbox is invoking Module:Asbox/sandbox. (Sometimes it is set to the pre-module version of Asbox during tests)
  3. Enter Template:Asbox/testcases in the box under 'Preview page with this module' (below edit summary). Review each testcase.
  4. Open User:Codehydro/Asbox userspace testcase new tab and use in preview box. Compare preview and live versions.
  5. Don't forget to check categorization on the bottom of both the live and preview for inconsistencies
  6. Repeat last two steps on Template:Stub, which is the root stub template (any errors there may cascade to all stub templates via Module:Asbox stubtree)
  7. Repeat both steps on at least one top-level template (e.g. Template:T). Keep non-preview tab open for follow up.
  8. Repeat both steps of the last step on a live page that trancludes it (e.g. any page in Category:Geography_stubs) Again, keep tab open for follow up.
  9. Repeat both steps on at least one of its subordinate templates (e.g. Template:T) and on a live page that transcludes the subordinate. Keep open.
  10. Consider repeating all of the above steps. When you get back to the final steps, try different top-level and subordinate templates.
  11. Copy sandbox to module and click show changes and review.
  12. Before saving, open a tab for Template:Editnotices/Page/Module:Asbox and proceeed post-save follow-up.

Post-save follow-up:

  1. Find the tab with top-level template. Make a second tab to the same template.
  2. Perform a null edit on the second tab and compare this tab with the pre-save tab.
  3. See if both pre and post-save tabs have the same categories at the bottom. As a top-level stub, both tabs should not be categorized under Category:Stub message templates needing attention.
  4. If all is well, you may close tabs and repeat previous three steps for the article which trancludes that top-level template.
  5. Repeat last four steps for the subordinate template.
  6. Open [Script error: No such module "Asbox/testedit". Asbox article test], which is pre-populated with some code.
  7. Click preview (do not save).