This is the template test cases page for the sandbox of Template:Links to. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
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:
Before lumping in ELs with WLs, EL's took 10 or more related searches:
{{ Localurl
and {{ anchorencode
are used in tandem with SERVER.https:{{fullurl
or https:{{SERVER
could be used instead of [{{fullurl
or [{{SERVER
{{ fullurl
could be proceeded by https: to create a link.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.
What they write. | How we match. |
---|---|
https://en.wikipedia.orgview_html.php?sq=Facebook&lang=en&q=Template:Links_to/doc#See_also {{ canonicalurl:Template:Links to/doc#See also }} |
insource:"canonicalurl:{{{2}}} {{{1}}}" |
[1] [//en.wikipedia.orgview_html.php?sq=Facebook&lang=en&q=Template:Links_to/doc#See_also] |
insource:"fullurl:{{{2}}} {{{1}}}" |
to/doc#See_also [//en.wikipedia.orgview_html.php?sq=Facebook&lang=en&q=template:links to/doc#See_also] |
insource:"{{ fullurl:{{{2}}} {{{1}}} }}" |
https://en.wikipedia.orgview_html.php?sq=Facebook&lang=en&q=Template:Links_to/doc#See_also https:{{SERVER}}{{localurl:template:links to/doc}}#{{anchorencode:See also}} |
insource:"server localurl:{{{2}}} anchorencode {{{1}}}" insource:"https server localurl {{{2}}} anchorencode {{{1}}}" |
https://en.wikipedia.orgview_html.php?sq=Facebook&lang=en&q=Template:Links_to/doc#See_also can be produced two ways: |
insource:"https SERVER wiki {{{2}}} {{{1}}}" insource:"https SERVER localurl:{{{2}}} {{{1}}}" |