![]() | This is the template test cases page for the sandbox of Template:Find sources. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Legacy tests
edit
Group 2 – Using search term to change the default search
editBy default, the pagename is used as the argument to {{find sources}}. This can be altered with the use of a search term after the first pipe.
{{Find sources}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL | Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
{{Find sources|United States embargo against Cuba}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL | Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
{{Find sources|Clandestine press of the French Resistance}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL | Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
{{Find sources|Collaboration with the Axis Powers during World War II}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL | Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
Group 3 – param 'domain'
edit{{Find sources}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL | Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
{{Find sources|domain=}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL | Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
{{Find sources|domain=general}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL | Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
{{Find sources|domain=gen}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL | Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
{{Find sources|domain=FOO BAR}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL | Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
Article on medical topics get a different set of links generated by {{find medical sources}} rather than the regular template.
{{Find sources|domain=medical}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find medical sources: Source guidelines · PubMed · Cochrane · DOAJ · Gale · OpenMD · ScienceDirect · Springer · Trip · Wiley · TWL | Find medical sources: Source guidelines · PubMed · Cochrane · DOAJ · Gale · OpenMD · ScienceDirect · Springer · Trip · Wiley · TWL |
{{Find sources|domain=med}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find medical sources: Source guidelines · PubMed · Cochrane · DOAJ · Gale · OpenMD · ScienceDirect · Springer · Trip · Wiley · TWL | Find medical sources: Source guidelines · PubMed · Cochrane · DOAJ · Gale · OpenMD · ScienceDirect · Springer · Trip · Wiley · TWL |
{{Find sources|giardiasis|domain=med}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find medical sources: Source guidelines · PubMed · Cochrane · DOAJ · Gale · OpenMD · ScienceDirect · Springer · Trip · Wiley · TWL | Find medical sources: Source guidelines · PubMed · Cochrane · DOAJ · Gale · OpenMD · ScienceDirect · Springer · Trip · Wiley · TWL |
{{Find sources|giardiasis|duodenalis|domain=med}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find medical sources: Source guidelines · PubMed · Cochrane · DOAJ · Gale · OpenMD · ScienceDirect · Springer · Trip · Wiley · TWL | Find medical sources: Source guidelines · PubMed · Cochrane · DOAJ · Gale · OpenMD · ScienceDirect · Springer · Trip · Wiley · TWL |
{{Find sources|giardiasis|duodenalis|NIH|domain=med}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find medical sources: Source guidelines · PubMed · Cochrane · DOAJ · Gale · OpenMD · ScienceDirect · Springer · Trip · Wiley · TWL | Find medical sources: Source guidelines · PubMed · Cochrane · DOAJ · Gale · OpenMD · ScienceDirect · Springer · Trip · Wiley · TWL |
{{Find sources|giardiasis|duodenalis|NIH|IL-6|domain=med}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find medical sources: Source guidelines · PubMed · Cochrane · DOAJ · Gale · OpenMD · ScienceDirect · Springer · Trip · Wiley · TWL | Find medical sources: Source guidelines · PubMed · Cochrane · DOAJ · Gale · OpenMD · ScienceDirect · Springer · Trip · Wiley · TWL |
{{Find sources|domain=video game}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find video game sources: "testcases" – news · newspapers · books · scholar · JSTOR · free images · free news sources · TWL · NYT · WP reference · VG/RS · VG/RL · WPVG/Talk | Find video game sources: "testcases" – news · newspapers · books · scholar · JSTOR · free images · free news sources · TWL · NYT · WP reference · VG/RS · VG/RL · WPVG/Talk |
{{Find sources|domain=video}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find video game sources: "testcases" – news · newspapers · books · scholar · JSTOR · free images · free news sources · TWL · NYT · WP reference · VG/RS · VG/RL · WPVG/Talk | Find video game sources: "testcases" – news · newspapers · books · scholar · JSTOR · free images · free news sources · TWL · NYT · WP reference · VG/RS · VG/RL · WPVG/Talk |
{{Find sources|domain=vg}}
{{Find sources}} | {{Find sources/sandbox}} |
---|---|
Find video game sources: "testcases" – news · newspapers · books · scholar · JSTOR · free images · free news sources · TWL · NYT · WP reference · VG/RS · VG/RL · WPVG/Talk | Find video game sources: "testcases" – news · newspapers · books · scholar · JSTOR · free images · free news sources · TWL · NYT · WP reference · VG/RS · VG/RL · WPVG/Talk |
Group 4 – WikiProject autodetection
editExpand to view description of how to run these tests
| ||
---|---|---|
These tests rely on using {{Talk header/sandbox}} transcluding the "Find sources" wrapper template ({{Find sources/sandbox}} to choose the right domain-specific "find sources" template. Because these tests depend on using the WikiProjects listed in the Talk header template at the top of an article page, they cannot be tested in the normal way. You can either add a Talk header to the top of *this* page, and test in Preview mode, or test in Preview mode at the Talk pages of actual articles which have the appropriate Talk page headers and WikiProject listings. In the latter case, edit the Talk page header, find the transclusion of Any article Talk page with the correct header and projects may be used for this; the list below contains some suggested Talk pages with the correct WikiProjects on it to validate the test case. After viewing the test case result in Preview mode on the page, it's best to cancel out and not save the altered page.
⟶ Expected result: these should employ {{find video games sources}} in Preview mode, after you've made the change described above:
⟶ Expected result: these should employ {{find medical sources}} in Preview mode, after you've made the change described above:
Currently, pages linking both medical and biographical WikiProjects will show only medical source links by default.
⟶ Expected result: these should default to the standard {{find sources}} list in Preview mode, after you've made the change described above; in other words, the same set of links will be present before and after the change: (chosen from Special:Random) |
Group 5 – WikiProject override
editExpand to view description of how to run these tests
|
---|
As in group 4 (WikiProject autodetection) above, These tests rely on using {{Talk header/sandbox}} transcluding the "Find sources" wrapper template ({{Find sources/sandbox}} to choose the right domain-specific "find sources" template. Where it differs from group 4, is that in these tests, we include a Because these tests depend on using the WikiProjects listed in the Talk header template at the top of an article page, they cannot be tested in the normal way. The best way to test this, is to add a Talk header with a
Any article Talk page may be used for these tests; the list below contains some suggested Talk pages with the correct WikiProjects on it to autodetect a project, and to override it using the Articles including project Video games Expected result: unless the article also includes WikiProject Medicine, the header should employ {{find video games sources}} in Preview mode with project autodetection. Adding
Articles including project Medicine Expected result: → these should employ {{find medical sources}} in Preview mode with project autodetection, and adding These articles don't belong to a WikiProject recognized for special handling by this template (they are chosen from Special:Random). Expected result: these should default to the standard {{find general sources}} list in Preview mode with project autodetection, and adding |
Group 6 – complex titles and param 'title'
edit- Subpages with parent pages should search just the last part after the (last) slash
- Slashes in article space are allowed, e.g. HIV/AIDS in Africa should search "HIV/AIDS in Africa".
- Pages with prefixes: namespace prefixes should be dropped (Wikpedia:, Talk:, etc)
- Pages with parenthetical disambiguation: in article space, add parendis as searchterm2; everywhere else, drop it
- Article: for Talk:John Smith (dentist), search "John Smith"+dentist+-wikipedia
- Talk:John Smith (anatomist and chemist), search "John Smith" +anatomist+and+chemist+-wikipedia
- Pages with parent and parenthetical disambiguation: use subpage only, add parendis as searchterm2 for articles only
- Pages with Prefix, parent, and parenthetical disambiguation: e.g.,
- Wikipedia:Articles for deletion/House Hippo (2nd nomination) search for "House Hippo"
- Test cases with
|title=
, for example:{{Find sources|title=House Hippo}}
- Retry with Contexttitle set to pages with combos of namespace prefix, subpage names, and parendis, such as 'Wikipedia:Articles for deletion/House Hippo (2nd nomination)'