Template:Talk header/testcases#Auto archiving notice
Smoke test (dynamic 'Find sources' update)
The following tests are intended to provide a very quick check of core functionality. Use the Purge cache link on this page to clear the server cache and then test the following.
=Test cases=
==Standard talk header==
Expected result: Standard array of find sources links should display. First link should be to Google with link value: https://www.google.com/search?as_eq=wikipedia&q=%22testcases%22
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=Basic 'Find sources' display
|demospace=1}}
==Domain set==
Expected result: Video game link list with last link to "WPVG/Talk" with the link value: https://en.wikipedia.org/w/index.php?search=%22testcases%22+prefix%3AWikipedia+talk%3AWikiProject+Video+games&title=Special:Search&profile=default&fulltext=1
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=Find video game sources display
|search-domain=vg|demospace=main}}
==Domain and custom search term parameters==
Expected result: Medical link list with last link to "Wiley" with the link value: https://onlinelibrary.wiley.com/action/doSearch?AllField=%22Marie+Curie%22+radium+Nobel
{{Test case |_collapsible=yes|_showcode=yes |_format=columns |_title=Find medical sources with custom search term
|demospace=1|domain=medical|search_term1=Marie Curie|search_term2=radium|search_term3=Nobel}}
==User talk page version==
Expected result: Simple talk header with search box, no find sources, and no archive links.
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=User talk page version and parameter test
|disclaimer=yes|namespace=User talk|noarchive=yes|search=yes}}
=Real world testing=
Provided that the above tests pass, visit several talk pages and verify they look good as well. Verify that the links default to the correct domain and that the domain override works.
For those pages, use the URL pattern below to clear the server cache:
https://en.wikipedia.org/w/index.php?title=Talk:Medtronic&action=purge
See: E. WikiProject detection for complex test cases.
Plain
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=Plain
}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=Plain – no archives
|noarchive=yes}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=Plain – search
|search=yes}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=Plain – search and no archives
|noarchive=yes|search=yes}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=Plain – italic title
|italic title=yes}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=Plain – display_title
|display_title=someRandomTitle}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=Plain – archives_start
|archives_start=0}}
arpol=yes / noarchive
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=arpol=yes
|arpol=yes}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=arpol=yes
– no archives
|arpol=yes|noarchive=yes}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=arpol=yes
– search
|arpol=yes|search=yes}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=arpol=yes
– search and no archives
|arpol=yes|noarchive=yes|search=yes}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=arpol=yes
– italic title
|arpol=yes|italic title=yes}}
disclaimer=yes / namespace=User talk
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=
|disclaimer=yes|demospace=User talk}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=
– no archives
|disclaimer=yes|demospace=User talk|noarchive=yes}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=
– search
|disclaimer=yes|demospace=User talk|search=yes}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=
– search and no archives
|disclaimer=yes|demospace=User talk|noarchive=yes|search=yes}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=
– italic title
|disclaimer=yes|demospace=User talk|italic title=yes}}
With shortcuts
{{cot|bg=cornsilk|(shortcut tasks collapsed until converted to {{tl|Test case}})}}
{{talk header|WP:TEST|WP:LINKS}}
{{talk header/sandbox|WP:TEST|WP:LINKS}}
{{talk header|WP:TEST|WP:LINKS|noarchive=yes}}
{{talk header/sandbox|WP:TEST|WP:LINKS|noarchive=yes}}
{{talk header|WP:TEST|WP:LINKS|search=yes}}
{{talk header/sandbox|WP:TEST|WP:LINKS|search=yes}}
{{talk header|WP:TEST|WP:LINKS|noarchive=yes|search=yes}}
{{talk header/sandbox|WP:TEST|WP:LINKS|noarchive=yes|search=yes}}
{{talk header|WP:TEST|WP:LINKS|italic title=yes}}
{{talk header/sandbox|WP:TEST|WP:LINKS|italic title=yes}}
{{cob}}
<code>arpol=yes</code> and shortcuts
{{testcase table |_collapsible=yes |_format=rows |_heading1=arpol=yes and two shortcuts
|arpol=yes|WP:TEST|WP:LINKS}}
{{testcase table |_collapsible=yes |_format=rows |_heading1=arpol=yes, one shortcut, and noarchive=yes
|arpol=yes|WP:TEST|WP:LINKS|noarchive=yes}}
{{testcase table |_collapsible=yes |_format=rows |_heading1=arpol=yes, search=yes, and two shortcuts
|arpol=yes|WP:TEST|WP:LINKS|search=yes}}
{{testcase table |_collapsible=yes |_format=rows |_heading1=arpol=yes, search=yes, noarchive=yes, and two shortcuts
arpol=yes|WP:TEST|WP:LINKS|noarchive=yes|search=yes}}
{{testcase table |_collapsible=yes |_format=rows |_heading1=arpol=yes, italic title=yes, and two shortcuts
|arpol=yes|WP:TEST|WP:LINKS|italic title=yes}}
WikiProject
{{testcase table |_format=rows |_collapsible=yes|_heading1=wp=yes
|wp=yes}}
{{testcase table|_format=rows |_collapsible=yes|_heading1=wp=yes, noarchive=yes
|wp=yes|noarchive=yes}}
{{testcase table|_format=rows |_collapsible=yes|_heading1=wp=yes, search=yes
|wp=yes|search=yes}}
{{testcase table|_format=rows |_collapsible=yes|_heading1=wp=yes, noarchive=yes, search=yes
|wp=yes|noarchive=yes|search=yes}}
= with demospace=1 =
{{testcase table |_format=rows |_collapsible=yes|_heading1=wp=yes, demospace=1
|demospace=1 |wp=yes}}
{{testcase table|_format=rows |_collapsible=yes|_heading1=wp=yes, noarchive=yes, demospace=1
|demospace=1 |wp=yes|noarchive=yes}}
{{testcase table|_format=rows |_collapsible=yes|_heading1=wp=yes, search=yes, demospace=1
|demospace=1 |wp=yes|search=yes}}
{{testcase table|_format=rows |_collapsible=yes|_heading1=wp=yes, noarchive=yes, search=yes, demospace=1
|demospace=1 |wp=yes|noarchive=yes|search=yes}}
bottom=yes
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=bottom=yes
|bottom=yes}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=bottom=yes
– no archives
|bottom=yes|noarchive=yes}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=bottom=yes
– search
|bottom=yes|search=yes}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=bottom=yes
– search and no archives
|bottom=yes|noarchive=yes|search=yes}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=bottom=yes
– italic title
|bottom=yes|italic title=yes}}
Custom texts
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=
|custom_header=Custom header text}}
{{Test case |_collapsible=yes |_showcode=yes |_format=columns |_title=
|bottom=yes|custom_header=Custom header text}}