Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:One source/testcases

From Wikipedia, the free encyclopedia

Regression

[edit]
Param date
{{One source|date=July 2026}}

{{One source}}

{{One source/sandbox}}

Param text
{{One source|text=Alternate first sentence}}

{{One source}}

{{One source/sandbox}}

Params date & text
{{One source|date=July 2026 |text=Alternate first sentence}}

{{One source}}

{{One source/sandbox}}

Param section
{{One source|section}}

{{One source}}

{{One source/sandbox}}

Params section, date, & text
{{One source|section|date=July 2026 |text=Alt first sentence}}

{{One source}}

{{One source/sandbox}}

Usage of 'find' param

[edit]
Disabling 'find sources' with |find=none
{{One source|date=July 2026 |find=none}}

{{One source}}

{{One source/sandbox}}

'find' with param date
{{One source|date=July 2026 |find=James Barry}}

{{One source}}

{{One source/sandbox}}

'find' with param text
{{One source|find=Chamber of Deputies in France |text=Alternate first sentence}}

{{One source}}

{{One source/sandbox}}

'find' with params date & text
{{One source|date=July 2026 |find=Second Laval government |text=Alternate first sentence}}

{{One source}}

{{One source/sandbox}}

'find' with param section
{{One source|section|find=pink is for girls}}

{{One source}}

{{One source/sandbox}}

'find' with params section, date, & text
{{One source|section|date=July 2026 |find=women soldiers in the Civil War |text=Alt first sentence}}

{{One source}}

{{One source/sandbox}}

Usage of param 'find2'

[edit]

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)
{{One source|find=Clandestine press of the French Resistance}}

{{One source}}

{{One source/sandbox}}

Six-word default (double-quoted) find + param 'section'
{{One source|section|find=Clandestine press of the French Resistance}}

{{One source}}

{{One source/sandbox}}

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

{{One source}}

{{One source/sandbox}}

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

{{One source}}

{{One source/sandbox}}

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

{{One source}}

{{One source/sandbox}}

Param 'unquoted' with six-word unquoted find (same test as above except using alias 'unquoted')
{{One source|section|unquoted=Clandestine press of the French Resistance}}

{{One source}}

{{One source/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)
{{One source|find=Albert Einstein patent attorney in Switzerland}}

{{One source}}

{{One source/sandbox}}

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

{{One source}}

{{One source/sandbox}}

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

{{One source}}

{{One source/sandbox}}

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

{{One source}}

{{One source/sandbox}}