Template:Talk header/testcases3

Find sources

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

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

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'

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

F. WikiProject override

G. Namespace detection

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

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.