Default
{{Find sources}}

{{Find sources}}

තොරතුරු ප්‍රභව: ගූගල් (පොත්  පුවත්  scholar  නිදහස් රූප  WP refs FENS  JSTOR  NYT  TWL

{{Find sources/sandbox}}

සැකිල්ල:Find general sources/sandbox

Simple search
{{Find sources|Albert Einstein}}

{{Find sources}}

තොරතුරු ප්‍රභව: ගූගල් (පොත්  පුවත්  scholar  නිදහස් රූප  WP refs FENS  JSTOR  NYT  TWL

{{Find sources/sandbox}}

සැකිල්ල:Find general sources/sandbox

Complex search
{{Find sources|Albert Einstein|physics|-"Marilyn Monroe"|relativity|science|free=yes}}

{{Find sources}}

තොරතුරු ප්‍රභව: ගූගල් (පොත්  පුවත්  scholar  නිදහස් රූප  WP refs FENS  JSTOR  NYT  TWL

{{Find sources/sandbox}}

සැකිල්ල:Find general sources/sandbox


සංස්කරණය

By 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 – control: no params shows find sources using the pagetitle
{{Find sources}}
Side by side comparison
{{Find sources}}{{Find sources/sandbox}}
තොරතුරු ප්‍රභව: ගූගල් (පොත්  පුවත්  scholar  නිදහස් රූප  WP refs FENS  JSTOR  NYT  TWL සැකිල්ල:Find general sources/sandbox
Find sources – with search term (5-word)
{{Find sources|United States embargo against Cuba}}
Side by side comparison
{{Find sources}}{{Find sources/sandbox}}
තොරතුරු ප්‍රභව: ගූගල් (පොත්  පුවත්  scholar  නිදහස් රූප  WP refs FENS  JSTOR  NYT  TWL සැකිල්ල:Find general sources/sandbox
Find sources – with search term (6-word)
{{Find sources|Clandestine press of the French Resistance}}
Side by side comparison
{{Find sources}}{{Find sources/sandbox}}
තොරතුරු ප්‍රභව: ගූගල් (පොත්  පුවත්  scholar  නිදහස් රූප  WP refs FENS  JSTOR  NYT  TWL සැකිල්ල:Find general sources/sandbox
Find sources – with search term (9-word)
{{Find sources|Collaboration with the Axis Powers during World War II}}
Side by side comparison
{{Find sources}}{{Find sources/sandbox}}
තොරතුරු ප්‍රභව: ගූගල් (පොත්  පුවත්  scholar  නිදහස් රූප  WP refs FENS  JSTOR  NYT  TWL සැකිල්ල:Find general sources/sandbox

Group 3 – param 'domain'

සංස්කරණය
3-1a. no params shows find general sources (the default)
{{Find sources}}
Side by side comparison
{{Find sources}}{{Find sources/sandbox}}
තොරතුරු ප්‍රභව: ගූගල් (පොත්  පුවත්  scholar  නිදහස් රූප  WP refs FENS  JSTOR  NYT  TWL සැකිල්ල:Find general sources/sandbox
3-1b. no params shows find general sources (same)
{{Find sources|domain=}}
Side by side comparison
{{Find sources}}{{Find sources/sandbox}}
තොරතුරු ප්‍රභව: ගූගල් (පොත්  පුවත්  scholar  නිදහස් රූප  WP refs FENS  JSTOR  NYT  TWL සැකිල්ල:Find general sources/sandbox
3-1c. domain=general (same)
{{Find sources|domain=general}}
Side by side comparison
{{Find sources}}{{Find sources/sandbox}}
තොරතුරු ප්‍රභව: ගූගල් (පොත්  පුවත්  scholar  නිදහස් රූප  WP refs FENS  JSTOR  NYT  TWL තොරතුරු ප්‍රභව: ගූගල් (පොත්  පුවත්  scholar  නිදහස් රූප  WP refs FENS  JSTOR  NYT  TWL
3-1d. domain=gen (same)
{{Find sources|domain=gen}}
Side by side comparison
{{Find sources}}{{Find sources/sandbox}}
තොරතුරු ප්‍රභව: ගූගල් (පොත්  පුවත්  scholar  නිදහස් රූප  WP refs FENS  JSTOR  NYT  TWL තොරතුරු ප්‍රභව: ගූගල් (පොත්  පුවත්  scholar  නිදහස් රූප  WP refs FENS  JSTOR  NYT  TWL
3-1e. invalid domain value (same)
{{Find sources|domain=FOO BAR}}
Side by side comparison
{{Find sources}}{{Find sources/sandbox}}
තොරතුරු ප්‍රභව: ගූගල් (පොත්  පුවත්  scholar  නිදහස් රූප  WP refs FENS  JSTOR  NYT  TWL තොරතුරු ප්‍රභව: ගූගල් (පොත්  පුවත්  scholar  නිදහස් රූප  WP refs FENS  JSTOR  NYT  TWL


Article on medical topics get a different set of links generated by {{find medical sources}} rather than the regular template.

3-2a. domain=medical: find medical sources
{{Find sources|domain=medical}}
Side by side comparison
{{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
3-2b. domain=med: find medical sources
{{Find sources|domain=med}}
Side by side comparison
{{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

3-2c. domain=med + 1 search term
{{Find sources|giardiasis|domain=med}}
Side by side comparison
{{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
3-2d. domain=med + 2 search terms
{{Find sources|giardiasis|duodenalis|domain=med}}
Side by side comparison
{{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
3-2e. domain=med + 3 search terms
{{Find sources|giardiasis|duodenalis|NIH|domain=med}}
Side by side comparison
{{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
3-2f. domain=med + 4 search terms
{{Find sources|giardiasis|duodenalis|NIH|IL-6|domain=med}}
Side by side comparison
{{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


3-3a. domain=video game: find video sources
{{Find sources|domain=video game}}
Side by side comparison
{{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
3-3b. domain=video: (same as above)
{{Find sources|domain=video}}
Side by side comparison
{{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
3-3c. domain=vg: (same as above)
{{Find sources|domain=vg}}
Side by side comparison
{{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

සංස්කරණය
Expand 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 {{talk header}} (normally at the top of the page) and change it to {{talk header/sandbox}}, and observe the "find sources" links that are generated in each case. (If the page you're testing doesn't have a header, then just add {{talk header/sandbox}} at the top of the page, and Preview it.)

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.

Articles including project Video games

⟶ Expected result: these should employ {{find video games sources}} in Preview mode, after you've made the change described above:

Articles including project Medicine

⟶ Expected result: these should employ {{find medical sources}} in Preview mode, after you've made the change described above:

Autodetect for biographical articles is not implemented yet
Articles including project Biography

⟶ Expected result: these should employ {{find biographical sources}} in Preview mode, after you've made the change described above:

Articles that include combinations of projects – medical & biographical

Currently, pages linking both medical and biographical WikiProjects will show only medical source links by default.


Other articles not including any of the projects above

⟶ 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

සංස්කරණය
Expand 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 |domain= param to override the WikiProject detected by the template. Read the instructions for Group 4 first, to understand how they are set up.

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 |domain= param to the Talk pages of actual articles which have the appropriate Talk page headers and WikiProject listings (without saving):

  • edit the Talk page header of an article belonging to, say, WikiProject medicine
  • find the transclusion of {{talk header}} (normally at the top of the page)
  • change it to (or add:) {{talk header/sandbox}}, hit Preview, and → take note of the "find sources" links that are generated
  • execute a set of domain override tests on this page:
    • change the header to {{talk header/sandbox|domain=video}} (or vg or video game) and Preview
    ⟶ verify that the find sources links change to match those of {{find video game sources}}
    • change the header to {{talk header/sandbox|domain=general}} (or (gen) and Preview
    ⟶ verify that the find sources links change to match those of the default set: {{find general sources}}

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 |domain= param, and observe the results. After viewing the test case result in Preview mode on the page, it's best to just cancel out and not save the Previewed page.

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 |domain=general or |domain=medical should override that and provide general or medical source links instead:

Articles including project Medicine

Expected result: → these should employ {{find medical sources}} in Preview mode with project autodetection, and adding |domain=general or |domain=video should override that and provide general or video game source links instead:

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 |domain=medical or |domain=video should override that and provide medical or video game source links instead:

Group 6 – complex titles and param 'title'

සංස්කරණය
  • 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 parent and parenthetical disambiguation: use subpage only, add parendis as searchterm2 for articles only
  • 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)'
"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:Find_sources/testcases&oldid=554662" වෙතින් සම්ප්‍රවේශනය කෙරිණි