Template:Unreferenced section/testcases

Source: Wikipedia, the free encyclopedia.


find

Based on this discussion and related to Template:Unreferenced/testcases#Find.

Test new |find= param, as discussed here.

Functionality (see also:

Template:Unreferenced section/sandbox/doc
):

  • {{Unreferenced section|find=some keyword(s)|date=June 2020}}  – use {{find sources|some keyword(s)}}
  • {{Unreferenced section|date=June 2020}}  – empty or absent param: suppress inclusion of {{find sources}} (because article title won't likely produce good results for the section)
  • {{Unreferenced section|find=none|date=June 2020}}  – specific value of |find=none: suppress inclusion of {{find sources}}

Tests occur in triples:

  1. Control: invoke current, unmodified template for comparison base
  2. Stand-alone: invoke modified template from sandbox, which invokes unmodified {{unreferenced}} showing whether this template can be safely released independently of the other
  3. Tandem: invoke modified template from sandbox2, which invokes the modified {{unreferenced/sandbox}} template; this demonstrates the full functionality when both sandbox versions go live
param missing – suppress find sources outpout
{{Unreferenced section|date=June 2020}}
{{Unreferenced section/sandbox|date=June 2020}}
{{Unreferenced section/sandbox2|date=June 2020}}


present, no value – suppress find sources outpout
{{Unreferenced section|find|date=May 2020}}
{{Unreferenced section/sandbox|find|date=May 2020}}
{{Unreferenced section/sandbox2|find|date=May 2020}}


present, empty or blank – suppress find sources outpout
{{Unreferenced section|find= |date=May 2020}}
{{Unreferenced section/sandbox|find= |date=May 2020}}
{{Unreferenced section/sandbox2|find= |date=May 2020}}


present, single word – invoke find sources with search string
{{Unreferenced section|find=Combat |date=April 2020}}
{{Unreferenced section/sandbox|find=Combat |date=April 2020}}
{{Unreferenced section/sandbox2|find=Combat |date=April 2020}}


present, multiple words – invoke find sources with search string
{{Unreferenced section|find=Early life |date=March 2020}}
{{Unreferenced section/sandbox|find=Early life |March =May 2020}}
{{Unreferenced section/sandbox2|find=Early life |March =May 2020}}


present, special chars – invoke find sources with search string
{{Unreferenced section|find=HIV/Aids |date=February 2020}}
{{Unreferenced section/sandbox|find=HIV/Aids |date=February 2020}}
{{Unreferenced section/sandbox2|find=HIV/Aids |date=February 2020}}


present, value='none' – suppress output
{{Unreferenced section|find=none |date=February 2020}}
{{Unreferenced section/sandbox|find=none |date=February 2020}}
{{Unreferenced section/sandbox2|find=none |date=February 2020}}

Param find2

Param |find2= is for specifying keywords for unquoted search in {{find sources}}. The first two tests are a control, and do not use 'find2'; the next two do.

Six-word default (double-quoted) find (compare single-quoted below)
{{Unreferenced section |find=Clandestine press of the French Resistance}}

{{Unreferenced section}}

{{Unreferenced section/sandbox}}

Param 'find2' with six-word unquoted find
{{Unreferenced section |find2=Clandestine press of the French Resistance}}

{{Unreferenced section}}

{{Unreferenced section/sandbox}}

Param 'unquoted' (same test as above except using alias 'unquoted')
{{Unreferenced section |unquoted=Clandestine press of the French Resistance}}

{{Unreferenced section}}

{{Unreferenced section/sandbox}}

Six-word Einstein query; double-quoted search using param 'find' only (this is a control for the next test case; findsource results are poor)
{{Unreferenced section |find=Albert Einstein patent attorney in Switzerland}}

{{Unreferenced section}}

{{Unreferenced section/sandbox}}

Six-word Einstein query; combined search query using 'find' and 'find2' params (high-quality search results using combined search)
{{Unreferenced section |find=Albert Einstein |find2=patent attorney in Switzerland}}

{{Unreferenced section}}

{{Unreferenced section/sandbox}}

Six-word Einstein query; combined query using 'find' and 'unquoted' params (same high-quality results as above using alias)
{{Unreferenced section |find=Albert Einstein |unquoted=patent attorney in Switzerland}}

{{Unreferenced section}}

{{Unreferenced section/sandbox}}

Param find=none, + nonempty find2 (Invalid param combination; could be used to search for a book or film called 'None')
{{Unreferenced section |find=none |find2=reviews}}

{{Unreferenced section}}

{{Unreferenced section/sandbox}}