Find sources

edit source
edit source

By default, the pagename is used as the argument to {{find sources}}. This can be altered with the use of |search_term=.

Find sources – control: no params (except demospace=1) shows find sources using the pagetitle
{{Talk header|demospace=1}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Find sources – with search_term (5-word)
{{Talk header|demospace=1 |search_term=United States embargo against Cuba}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Find sources – with search_term (6-word)
{{Talk header|demospace=1 |search_term=Clandestine press of the French Resistance}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Find sources – with search_term (9-word)
{{Talk header|demospace=1 |search_term=Collaboration with the Axis Powers during World War II}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}

B. Search_term, and search_term 1 thru 4

edit source
Find sources – control: no params (except demospace=1) shows find sources using the pagetitle
{{Talk header|demospace=1}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Find sources – search_term shows find sources using the param value
{{Talk header|demospace=1 |search_term=French Revolution}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Find sources – search_term1 (expect:same as above)
{{Talk header|demospace=1 |search_term1=French Revolution}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Find sources – terms 1 & 2: shows find sources using the param values
{{Talk header|demospace=1 |search_term1=French Revolution |search_term2=Napoleon}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Find sources – terms 1, 2, & 3: shows find sources using the param values
{{Talk header|demospace=1 |search_term1=French Revolution |search_term2=1791 |search_term3=Louis XIV}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Find sources – terms 1, 2, 3, & 4: shows find sources using the param values
{{Talk header|demospace=1 |search_term1=French Revolution |search_term2=1791 |search_term3=Louis XIV |search_term4=Terror}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Find sources – terms 1 + domain: shows find sources using the param values
{{Talk header|demospace=1 |domain=medical |search_term1=Marie Curie}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Find sources – terms 1 and 2 + domain: shows find sources using the param values
{{Talk header|demospace=1 |domain=medical |search_term1=Marie Curie |search_term2=radium}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Find sources – terms 1, 2, 3 + domain: shows find sources using the param values
{{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}}

C. Opt-out find sources

edit source

The opt-out makes no sense, unless it's opted in before you opt it out. But opt-in is not the default in Template space, so we add param |demospace=1 to simulate the correct namespace so it would be included, then use the opt-out params to hide it again.

Find sources – control 1: no params (except demospace=1) shows find sources
{{Talk header|demospace=1}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Find sources – control 2: 'hide_find_sources=no' is the default
{{Talk header|demospace=1 |hide_find_sources=no}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Opt-out hide_find_sources=yes hides the display
{{Talk header||demospace=1 |hide_find_sources=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}

Redo same trio, using alias |demospace=main:

Find sources – control 1: no params (except demospace=main) shows find sources
{{Talk header|demospace=main}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Find sources – control 2: 'hide_find_sources=no' is the default
{{Talk header|demospace=main |hide_find_sources=no}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
Opt-out hide_find_sources=yes hides the display
{{Talk header||demospace=main |hide_find_sources=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}

D. Param 'search-domain'

edit source

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

9c-1a. Param 'search-domain': find medical sources – control 1: no params (except demospace=main) shows find sources
{{Talk header|demospace=main |search-domain=medical}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
9c-1b. Param 'domain': (same as above)
{{Talk header|demospace=main |domain=medical}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
9c-2a. Param 'search-domain': find medical sources – control 2: 'hide_find_sources=no' is the default
{{Talk header|demospace=main |hide_find_sources=no |search-domain=medical}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
9c-2b. Param 'domain': (same as above)
{{Talk header|demospace=main |domain=medical |hide_find_sources=no}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
9c-3a. Param 'search-domain': medical+opt-out hide_find_sources=yes hides the display
{{Talk header|demospace=main |hide_find_sources=yes |search-domain=medical}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
9c-3b. Param 'domain': (same as above)
{{Talk header|demospace=main |domain=medical |hide_find_sources=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
9c-4a. Param 'search-domain': find video sources – control 1: no params (except demospace=main) shows find sources
{{Talk header|demospace=main |search-domain=video game}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
9c-4b. Param 'domain': (same as above)
{{Talk header|demospace=main |domain=video game}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}


9c-5b. Param 'domain': (same as above)
{{Talk header|demospace=main |domain=video game |hide_find_sources=no}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
9c-6a. Param 'search-domain': video+opt-out hide_find_sources=yes hides the display
{{Talk header|demospace=main |hide_find_sources=yes |search-domain=video game}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}
9c-6b. Param 'domain': (same as above)
{{Talk header|demospace=main |domain=video game |hide_find_sources=yes}}
Side by side comparison
{{Talk header}}{{Talk header/sandbox}}

E. WikiProject detection

edit source

F. WikiProject override

edit source

G. Namespace detection

edit source

Find sources links should only be emitted in the Talk header, when the template is placed on article talk pages (ns:1) or Draft talk pages (ns:119). In any other namespace, no find sources are emitted.

The 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: -->