Template:Links to/testcases

Each test says "On behalf of the parent page (namespace:basename, Template:Links to), what links to section X"? There is no section X at Template:Links to, but the query only ever looks for the pattern #X. It relies on the high probability that if a page is found to link "here" and it has also one of my section names, and preceded by a # sign, it probably does.

Required links, or patterns that simulate links, links to on this page to work:
 * ../sandbox simulates links to mechanism for wikilinks
 * { { Section link|Template:Links to|See also }}
 * ../doc (links to only finds wikilinks, nothing else)
 * ../ (links to only finds wikilinks, nothing else)
 * ../ (links to only finds wikilinks, nothing else)


 * 1) Section link Template:Links to Question [../|sublinks]]?
 * 2) Section link Template:Links to Question "tick" marks?
 * 3) Section link Template:Links to THis has/all/ the issues
 * 4) Section link Template:Links to THis has" all the issues
 * 5) Section link Template:Links to THis has all the_issues
 * 6) Section link Template:Links to THis_has_all_the_issues
 * 7) Section link Template:Links to THis has/all the issues
 * 8) Section link Template:Links to THis "has" all the issues
 * 9) Section link Template:Links to THis "has"/all the_issues

Before lumping in ELs with WLs, EL's took 10 or more related searches: Lumping WLs and ELs together, the search parameter linksto is not used for WLs. Rather if the page has the fullpagename and section of interest in proximity, and the section has a # sign in front of it (basically), that's a go; it needs investigating concerning the section-name change even if it is not a link.
 * Brackets and linking and labeling are ignored to limit the number of searches that would otherwise have to be done. The EL patters are not necessarily links, but are ELs with the section name of interest that need further investigation.
 * and  are used in tandem with SERVER.
 * or  could be used instead of   or
 * The colon : character is part of an atomic term in canonicalurl:namespace or fullurl:namespace constructs
 * could be proceeded by https: to create a link.

testcases}}/sandbox|Sandbox version
Via Section link: success means this page shows up in the search link.

Via :

Success means that the search link highlights the match corresponds to the simulated section link. The number signs (that make the ordered list) satisfy the regexp that simulates linksto mechanism.
 * 1) THis "has"/all the_issues
 * 2) THis "has" all the issues
 * 3) THis has/all the issues
 * 4) THis_has_all_the_issues
 * 5) THis has all the_issues
 * 6) THis has" all the issues
 * 7) THis has/all/ the issues
 * 8) Question "tick" marks?
 * 9) Question [../|sublinks]]?

testcases}}|Main template
Links to template has two parts:
 * 1) linksto part links to a fullpagename, in this case ../.
 * 2) regex part links to the following patterns (# char required).

Via Section link: success means this page shows up in the search link

Via wikilink: The number signs (that make the ordered list) satisfy the regexp.
 * 1) THis "has"/all the_issues
 * 2) THis "has" all the issues
 * 3) THis has/all the issues
 * 4) THis_has_all_the_issues
 * 5) THis has all the_issues
 * 6) THis has" all the issues
 * 7) THis has/all/ the issues
 * 8) Question "tick" marks?
 * 9) Question [../|sublinks]]?

Together the above link to the basepagename plus the pattern, simulate the success mechanism. Success means activating the search link and seeing corresponding, highlighted, pattern match.