Difference between revisions of "Template:Editnotices/Page/Module:Asbox"

From blackwiki
Jump to navigation Jump to search
imported>Codehydro
m
imported>Jackmcbarn
(simplify a lot)
Line 3: Line 3:
 
|header = Attention
 
|header = Attention
 
|headerstyle = font-size:150%
 
|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.
+
|text =  This module's behavior depends on namespace and whether or not it is on a subpage. Do not rely solely 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. You should perform the following test before making a live edit. While tedious, the module affects approximately 2 million pages, such that even a tiny oversight may cause massive miscategorization. First, ensure that [[Template:Asbox/sandbox]] is invoking [[Module:Asbox/sandbox]] (sometimes it is set to the pre-module version of Asbox during tests). Then, for each of the following pages, enter their name in the page box under 'Preview page with this module' (below edit summary). Compare the preview result to the live version of the page. Don't forget to check category links on the bottom of both versions.
 
+
*[[Template:Asbox/testcases]]
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.
+
*[[User:Codehydro/Asbox userspace testcase]]
 
+
*[[Template:Stub]]
'''Pre-save checks:'''
+
*[[Template:Geography-stub]]
# Sync [[Module:Asbox/sandbox]] to current [[Module:Asbox]] and edit there to avoid accidental 'save page' clicks.
+
*Any page in [[:Category:Geography_stubs]]
# Check if [[Template:Asbox/sandbox]] is invoking [[Module:Asbox/sandbox]]. (Sometimes it is set to the pre-module version of Asbox during tests)
+
*[[Template:Østfold-geo-stub]]
# Enter [[Template:Asbox/testcases]] in the box under 'Preview page with this module' (below edit summary). Review each testcase.
+
*Any page listed at [{{fullurl:Special:WhatLinksHere/Template:Østfold-geo-stub|namespace=0&hidelinks=1&hideredirs=1}}].
# Save sandbox and go to {{#invoke:Asbox/testedit|special|User:Codehydro/Asbox userspace testcase|Special:TemplateSandbox}}. Set ''Sandbox prefix'' to Module:Asbox/sandbox and ''Render page'' to [[User:Codehydro/Asbox userspace testcase]] (preloaded for this step).
 
# Open a new tab to the ''Render page'', then compare live to sandbox preview. Don't forget to check category links on the bottom of both versions.
 
# 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]])
 
# Repeat same two steps on at least one [[:Category:Top-level stub categories|top-level]] template (e.g. {{t|Geography-stub}}). Keep non-preview tab open for follow up.
 
# Repeat both steps on a live page that trancludes it (e.g. any page in [[:Category:Geography_stubs]]). Again, keep tab open for follow up.
 
# Repeat both steps on at least one of its subordinate templates (e.g. {{t|Østfold-geo-stub}}) and on a live page that transcludes the subordinate. Keep open.
 
# Consider repeating all of the above steps. When you get back to the final steps, try different top-level and subordinate templates.
 
# Copy sandbox to module and click '''show changes''' and review.
 
# Before saving, open a tab for [[Template:Editnotices/Page/Module:Asbox]] and proceed to post-save follow-up.
 
 
 
'''Post-save follow-up:'''
 
# Find the tab with top-level template. Make a second tab to the same template.
 
# Perform a [[null edit]] on the second tab and compare this tab with the pre-save tab.
 
# 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]].
 
# If all is well, you may close tabs and repeat previous three steps for the article which trancludes that top-level template.
 
# Repeat last four steps for the subordinate template.
 
# Open {{#invoke:Asbox/testedit|template}}, which is pre-populated with a blank Asbox template. Click '''preview''' if not auto-previewed. Do not save.
 
# View category links on bottom and see that they include [[:Category:Stub message templates needing attention]].
 
# Open {{#invoke:Asbox/testedit|article}} and preview.
 
# Category links should '''not''' include the attention category (or any other stub error categories), which should never appear in article space. Only the hidden category 'All stub articles' should be present.
 
# Open and preview both {{#invoke:Asbox/testedit|subpage}} and {{#invoke:Asbox/testedit|user}}.
 
# Verify that neither page has category links (not even hidden ones). Userfied pages and subpages do not belong in stub categories.
 
# Even if you've completed all these, that does not mean your code bug-free. Be sure to check this module's talk, [[Template talk:Asbox]], and [[:Category:Stub message templates needing attention]] every few hours during the first day and at least once per day for the next week.
 
 
 
Thank you for your contribution! —[[User:Codehydro|<font color="#aaaaaa" face="Unicode" style="font-size:12pt;">'''Code'''</font>]][[User talk:Codehydro|<font color="#5577aa">'''Hydro'''</font>]] 18:45, 8 February 2015 (UTC)
 
 
}}
 
}}

Revision as of 18:55, 9 February 2015