Jump to content

Template:Talk header/testcases

From Wikipedia, the free encyclopedia

Smoke test (dynamic 'Find sources' update)

[edit]

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

[edit]

Standard talk header

[edit]

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

Basic 'Find sources' display
{{Talk header|demospace=1}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}

Domain set

[edit]

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

Find video game sources display
{{Talk header|demospace=main |search-domain=vg}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}

Domain and custom search term parameters

[edit]

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

Find medical sources with custom search term
{{Talk header|demospace=1 |domain=medical |search_term1=Marie Curie |search_term2=radium |search_term3=Nobel}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}

User talk page version

[edit]

Expected result: Simple talk header with search box, no find sources, and no archive links.

User talk page version and parameter test
{{Talk header|disclaimer=yes |namespace=User talk |noarchive=yes |search=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}

Real world testing

[edit]

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

[edit]
Plain
{{Talk header}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Plain – no archives
{{Talk header|noarchive=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Plain – search
{{Talk header|search=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Plain – search and no archives
{{Talk header|noarchive=yes |search=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Plain – italic title
{{Talk header|italic title=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Plain – display_title
{{Talk header|display_title=someRandomTitle}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Plain – archives_start
{{Talk header|archives_start=0}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}

arpol=yes / noarchive

[edit]
arpol=yes
{{Talk header|arpol=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
arpol=yes – no archives
{{Talk header|arpol=yes |noarchive=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
arpol=yes – search
{{Talk header|arpol=yes |search=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
arpol=yes – search and no archives
{{Talk header|arpol=yes |noarchive=yes |search=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
arpol=yes – italic title
{{Talk header|arpol=yes |italic title=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}

disclaimer=yes / namespace=User talk

[edit]
disclaimer=yes|demospace=User talk
{{Talk header|demospace=User talk |disclaimer=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
disclaimer=yes|demospace=User talk – no archives
{{Talk header|demospace=User talk |disclaimer=yes |noarchive=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
disclaimer=yes|demospace=User talk – search
{{Talk header|demospace=User talk |disclaimer=yes |search=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
disclaimer=yes|demospace=User talk – search and no archives
{{Talk header|demospace=User talk |disclaimer=yes |noarchive=yes |search=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
disclaimer=yes|demospace=User talk – italic title
{{Talk header|demospace=User talk |disclaimer=yes |italic title=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}

With shortcuts

[edit]
(shortcut tasks collapsed until converted to {{Test case}})

arpol=yes and shortcuts

[edit]
arpol=yes and two shortcuts
arpol=yes and two shortcuts
{{Talk header/sandbox}}
arpol=yes, one shortcut, and noarchive=yes
arpol=yes, one shortcut, and noarchive=yes
{{Talk header/sandbox}}
arpol=yes, search=yes, and two shortcuts
arpol=yes, search=yes, and two shortcuts
{{Talk header/sandbox}}
arpol=yes, search=yes, noarchive=yes, and two shortcuts arpol=yes
arpol=yes, search=yes, noarchive=yes, and two shortcuts arpol=yes
{{Talk header/sandbox}}
arpol=yes, italic title=yes, and two shortcuts
arpol=yes, italic title=yes, and two shortcuts
{{Talk header/sandbox}}

WikiProject

[edit]
wp=yes
wp=yes
{{Talk header/sandbox}}
wp=yes, noarchive=yes
wp=yes, noarchive=yes
{{Talk header/sandbox}}
wp=yes, search=yes
wp=yes, search=yes
{{Talk header/sandbox}}
wp=yes, noarchive=yes, search=yes
wp=yes, noarchive=yes, search=yes
{{Talk header/sandbox}}

with demospace=1

[edit]
wp=yes, demospace=1
wp=yes, demospace=1
{{Talk header/sandbox}}
wp=yes, noarchive=yes, demospace=1
wp=yes, noarchive=yes, demospace=1
{{Talk header/sandbox}}
wp=yes, search=yes, demospace=1
wp=yes, search=yes, demospace=1
{{Talk header/sandbox}}
wp=yes, noarchive=yes, search=yes, demospace=1
wp=yes, noarchive=yes, search=yes, demospace=1
{{Talk header/sandbox}}

bottom=yes

[edit]
bottom=yes
{{Talk header|bottom=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
bottom=yes – no archives
{{Talk header|bottom=yes |noarchive=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
bottom=yes – search
{{Talk header|bottom=yes |search=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
bottom=yes – search and no archives
{{Talk header|bottom=yes |noarchive=yes |search=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
bottom=yes – italic title
{{Talk header|bottom=yes |italic title=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}

Custom texts

[edit]
custom_header=Custom header text
{{Talk header|custom_header=Custom header text}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
bottom=yes|custom_header=Custom header text
{{Talk header|bottom=yes |custom_header=Custom header text}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}