Template:Talk header/testcases4

Automatic archive bot parameter detection
These tests complement the archival parameters, and supply default values if a validly formatted Miszabot/config exists for the page. It can determine all four values if present in the config, and use them as default values for Talk page header params bot, age, units, and minthreadsleft if these params are not passed to the TP header. Misza config values are defaulted individually, or in any combination when one or more of the four TP header archival params are missing.

A. Testing with ExpandTemplates
How to test

In the normal case, archiving is detected based on the presence or absence of an archive bot config (MiszaBot, Cluebot) on the page where the Talk header template is located, but since there is no archive bot config (and no Talk header template) on this page, automatic detection will not work here. To run these tests, we use Special:ExpandTemplates with field Context title set to any of several test pages, and then apply the tests using the one-parameter version of the template. For example: set Context title to and in the main, 'Input wikitext' section, just add:  LIVE

- SANDBOX

to complete the test. Expected result: The header is displayed, including the right-justified archive notice:
 * Auto-archiving period: 90 days

To test the subtemplate directly, using only one param in the context of FULLPAGENAME, use Special:ExpandTemplates with ContextTitle set to the Talk page name (e.g., ) and the input field set to two template invocations, one with the live template (i.e., ) and one with the sandbox version.

We can code tests in ExpandTemplates, and link them url-encoded here, which will provide a testcase embedded in the link and executed at ExpandTemplates, not here:

Test Template:Talk header in the context of the following Talk pages which use MiszaBot/config:
 * Test 1: Talk:France – expect 90 days, minthreads = 4


 * Test 2: Talk:Muammar Gaddafi – expect 60 days


 * Test 3: Talk:Physics – expect 100 days, minthreads=4


 * Test 4: Talk:Noam Chomsky – expect 45 days, minthreads = 3


 * Test 5: Talk:Mustang – expect 61 days

Alternatively, run the following tests setting the Context title to each Talk page in turn in the numbered tests below, after having pasted the following code (once) into the Input field at Special:ExpandTemplates:

 LIVE

- SANDBOX

Tests for pages using Miszabot config:
 * Test A–1: Talk:Algeria – expect "90 days" in plaintext; the tooltip reads "Lowercase sigmabot III ... 90 days ... more than 4 threads are present"
 * Test A–2: Talk:France – expect 90 days / Lowercase sigmabot III – minthreads = 4
 * Test A–3: Talk:Muammar Gaddafi – expect 60 days / Lowercase sigmabot III – (none)
 * Test A–4: Talk:Physics – expect 100 days / Lowercase sigmabot III – minthreads=4
 * Test A–5: Talk:Noam Chomsky – expect 45 days / Lowercase sigmabot III – minthreads=3
 * Test A–5: Talk:Mustang – expect=61 days / Lowercase sigmabot III – (none)

Tests for pages using User:ClueBot III/ArchiveThis
 * Test A2–1: Talk:COVID-19 pandemic – expect 10 days / Cluebot III – 240 hours – minthreads = 10
 * Test A2–2: Talk:The Exorcist – expect 20 days / Cluebot III – 720 hours – minthreads = 4
 * Test A2–3: Talk:List of colors – expect 7.5 days / Cluebot III – 183 hours – minthreads = 4
 * Test A2–4: Talk:Toronto – expect 60 days / Cluebot III – 1440 hours – (none)
 * Test A2–5: Talk:Website – expect 90 days / Cluebot III – 2160 hours – minthreads = 5
 * Test A2–6: Talk:Switzerland – expect 120 days / Cluebot III – 2880 hours – minthreads = 5
 * Test A2–7: Talk:Fake news – expect 90 days / Cluebot III – 2160 hours – minthreads = 4
 * Test A2–8: Talk:Spotify – expect 90 days / Cluebot III – 2160 hours – minthreads = 4
 * Test A2–9: Talk:2022 – expect 30 days / Cluebot III – 720 hours – minthreads = 10
 * Test A2–10: Talk:Macedonia – expect 90 days / Cluebot III – 2160 hours – minthreads = 4

B. Testing with the subtemplate
An alternative, is to test the subtemplate directly, using the two-param method, passing the name of the Talk page in param 2. These tests follow:

Tests for Talk pages that use User:MiszaBot/config












Tests for Talk pages that use User:ClueBot III/ArchiveThis
More like these: Advanced search.





















C. Testing in situ
An alternative is to test on a live Talk page, either by observation (for pages that already have Talk page header template, with or without archival params) or by adding a Talk page header to a page that doesn't have one, and testing without archival params.

How to:

t.b.a.

Talk pages that use Miszabot config
Find MiszaBot-config archiving test cases:


 * 1) Talk:Amazon – 0 ✅ (i.e., the new clause is not shown because < 2)
 * 2) Talk:Hurricane Dorian – 0 ✅ (i.e., the new clause is not shown because < 2)
 * 3) Talk:Evolution – 1 ✅ (i.e., the new clause is not shown because < 2)
 * 4) Talk:Dog – 1 ✅ (i.e., the new clause is not shown because < 2)
 * 5) Talk:Conspiracy theory – 2 ✅
 * 6) Talk:IPhone – 2 ✅
 * 7) Talk:Information technology – 3 ✅
 * 8) Talk:Christina Aguilera – 3 ✅
 * 9) Talk:Healthy diet – 4 ✅
 * 10) Talk:Operating system – 5 ✅
 * 11) Talk:Hurricane Florence – 7 (not applicable? No archive links because uses date-style archive names)
 * 12) Talk:Controversy over GNOME 3 – 10 ✅

Talk pages that use Cluebot
Find Cluebot archiving test cases:


 * 1) Talk:The Exorcist – 0  ✅ (i.e., the new clause is not shown because < 2)
 * 2) Talk:COVID-19 pandemic – 0 ✅ (i.e., the new clause is not shown because < 2)
 * 3) Talk:Alexandria Ocasio-Cortez – 1 ✅ (i.e., the new clause is not shown because < 2)
 * 4) Talk:Switzerland – 1 ✅ (i.e., the new clause is not shown because < 2)
 * 5) Talk:Stefan Molyneux – 2 ✅
 * 6) Talk:Website – 2 ✅
 * 7) Talk:Johannes Brahms – 3 ✅
 * 8) Talk:Disneyland – 3 ✅
 * 9) Talk:Oliver Stone – 4 ✅
 * 10) Talk:Google Search – 5 ✅ (archive message suppressed entirely due to yes)
 * 11) Talk:COVID-19 pandemic in Ontario – 10 ✅
 * 12) Talk:Toronto – 10 ✅

These can be tested using Special:ExpandTemplates as explained in section 1. A. How to test above. Another way, is to click the top link in the 1.A section (Test 1. Talk:France), and then replace the context title at the top with the Talk pages listed in the test set above, and re-execute the test for each one.