Help:Linksearch

From Eugene Neighbors

Jump to: navigation, search
{{#if: Help|
MediaWiki Handbook: Contents, Readers, Editors, Moderators, System admins Template:Edi

{{#if:|Other languages:}} Template:H-langs:

{{#if: Help||}}|
MediaWiki Handbook: Contents, Readers, Editors, Moderators, System admins Template:Edi

{{#if:|Other languages:}} Template:H-langs: {{#if: Help||}}}}

{{#if:|{{#if:|[[Special:Linksearch#{{{2}}}|{{{3}}}]]|[[Special:Linksearch#{{{2}}}]]}}|{{#if:|{{{3}}}|Special:Linksearch}}}}http://wiki.eugeneneighbors.org{{#if:|/wiki/Special:Linksearch#.7B.7B.7B2.7D.7D.7D|/wiki/Special:Linksearch}} is one of the {{#if:|{{#if:special pages|special pages|Help:Special page#}}|{{#if:special pages|special pages|Help:Special page}}}}http://wiki.eugeneneighbors.org{{#if:|/wiki/Help:Special_page#|/wiki/Help:Special_page}}. It is an extension installed on Wikimedia wikis [1].

Using the {{#if:|{{#if:externallinks table|externallinks table|mw:Externallinks table#}}|{{#if:externallinks table|externallinks table|mw:Externallinks table}}}}http://www.mediawiki.org{{#if:|/wiki/Externallinks_table#|/wiki/Externallinks_table}} it provides a list of links in external link style from the site on which it is applied, to a given URL pattern. For each link the source page is provided, and the exact target, both linked.

The URL pattern can be:

In the input box "http://" is allowed but not needed.

In the URL of the special page where the search string contains an anchor, or the first part of an anchor name, the hash character # has to be coded as "%23" and the required style is

    w/index.php?title=Special:Linksearch&target=URL

In each of the styles

    wiki/Special:Linksearch/target_page_name#anchor_name
    wiki/Special:Linksearch/target_page_name%23anchor_name

the anchor is ignored. ("w" and "wiki" can be different on other than Wikimedia wikis.)

Remarks:

For links in external link style, Linksearch provides backlinks of sections, which "Special:Whatlinkshere" does not for links in internal link style. For links in interwiki link style there is no backlink feature at all.

On the other hand, links in internal link style provide existence detection. Also each of the three styles can have a different look, depending on CSS.

Therefore it is useful to combine the advantages of various link styles adding "hidden external links" to internal section links and to all interwiki links, except those for which the interlanguage link feature applies. This is done by adding <span style="display:none">http://...</span>; this can conveniently be done with a template, see below. Although no actual link is added (which would be superfluous because we have already an internal or interwiki link), it is recorded as external link, and therefore Linksearch can find it.

Since Linksearch allows specifying the first part of an anchor, it is useful, if anchor names are numerical or have a numerical end, to use leading zeros. Otherwise, when searching for links to e.g. "1", we also get links to "10", etc. This is e.g. applied in {{#if:|{{#if:|[[w:Portal:Current events/DateHeader2#{{{2}}}|{{{3}}}]]|[[w:Portal:Current events/DateHeader2#{{{2}}}]]}}|{{#if:|{{{3}}}|w:Portal:Current events/DateHeader2}}}}http://en.wikipedia.org{{#if:|/wiki/Portal:Current_events/DateHeader2#.7B.7B.7B2.7D.7D.7D|/wiki/Portal:Current_events/DateHeader2}}. More generally, if there are anchors "a" and "ab", it may or may not be desired that a search for links to "a" also gives links to "ab"; if not, use an anchor "_a".

Also, if anchor names have multiple components, it is useful to put the most significant component first, e.g. if anchors indicate months or dates, we could have the format YYYY-MM, or YYYY-MM-DD, or in a year page MM-DD (see also {{#if:Big endian forms, starting with the year|{{#if:|{{{3}}}|w:Calendar date#Big endian forms, starting with the year}}|{{#if:|{{{3}}}|w:Calendar date}}}}http://en.wikipedia.org{{#if:Big endian forms, starting with the year|/wiki/Calendar_date#Big_endian_forms.2C_starting_with_the_year|/wiki/Calendar_date}}), with leading zeros (see also {{#if:Link to date content other than required for autoformatting|{{#if:|{{{3}}}|Help:Date formatting and linking#Link to date content other than required for autoformatting}}|{{#if:|{{{3}}}|Help:Date formatting and linking}}}}http://wiki.eugeneneighbors.org{{#if:Link to date content other than required for autoformatting|/wiki/Help:Date_formatting_and_linking#Link_to_date_content_other_than_required_for_autoformatting|/wiki/Help:Date_formatting_and_linking}}). This applies also for page names, but since these are highly visible, as opposed to anchors, other considerations play a role too. In the case of sections, if for link targets another naming scheme is desired than for display of section headers, anchorscan be put explicitly instead of using section names. This is applied in {{#if:|{{#if:|[[w:Portal:Current events/DateHeader2#{{{2}}}|{{{3}}}]]|[[w:Portal:Current events/DateHeader2#{{{2}}}]]}}|{{#if:|{{{3}}}|w:Portal:Current events/DateHeader2}}}}http://en.wikipedia.org{{#if:|/wiki/Portal:Current_events/DateHeader2#.7B.7B.7B2.7D.7D.7D|/wiki/Portal:Current_events/DateHeader2}}, where the use in links of the names of explicitly put anchors is enforced by using pseudo sections, with displayed headers that cannot be used as anchors.

In the case of multiple sections with the same name, the HTML produced has a HTML ID that is the section name, with, from the second occurrence, "_2", "_3", etc. appended. This does not apply when other anchors are used.

Contents

[edit] Colon

There seems to be a problem with a colon in the search pattern: it does not give any result, even though link targets with a colon are listed if the search pattern stops before the colon; if %3A is used as code for the colon, this code and the text after it are ignored. Compare [2], [3], [4].

[edit] See also

{{#if: Help|{{#if: Help|Template:Ph:Linksearch}}

[edit] Links to other help pages

Help contents (all help pages)
Meta | Wikinews | Wikipedia | Wikiquote | Wiktionary | commons: | mw: | b: | s:
Versions of this help page (for other languages see below)
Meta | Wikinews | {{#if:|{{#if:Wikipedia|Wikipedia|w:Help:Linksearch#}}|{{#if:Wikipedia|Wikipedia|w:Help:Linksearch}}}}http://en.wikipedia.org{{#if:|/wiki/Help:Linksearch#|/wiki/Help:Linksearch}} | Wikiquote | Wiktionary
Links to this page from Meta (int) Meta (ext) Wikipedia MediaWiki
Reading
Go | Search | Stop words | URL | Namespace | Page name | Section
Backlinks | Link | Piped link | Interwiki link | Redirect | Category | Image page
Logging in and preferences
Logging in | Preferences | User style
Editing
Advanced editing | Editing FAQ | Editing toolbar | Export | Import
Editing tips and tricks | Editing shortcuts
Tracking changes
Recent changes (enhanced) | Related changes | Watching pages | Diff
Page history | Edit summary | User contributions | Minor edit | Patrolled edit
Style & formatting
Wikitext examples | Wikitext reference | Reference card
HTML in wikitext | HTML elements
List | Table | Sorting
Special input and output
Inputbox | Special characters | Displaying a formula | Images and other uploaded files | EasyTimeline
Advanced functioning
Template | Advanced templates | Parser function | ParserFunctions | Parameter default | Variable | Magic word | System message | Substitution
Array | Calculation
Page management
Starting a new page | Renaming (moving) a page | Maintenance | Merging and moving pages | Protecting pages
Resolving disputes | Deleting a page
Special pages
Talk page | Testing | Sandbox
Lists of resources
Lists of Categories | Copyrights | Infobox
Redirect | Reference Desk | Shortcuts | Stub types

Other languages: Template:H-langs:Linksearch |{{#if: Help|Template:Ph:Linksearch}}

[edit] Links to other help pages

Help contents (all help pages)
Meta | Wikinews | Wikipedia | Wikiquote | Wiktionary | commons: | mw: | b: | s:
Versions of this help page (for other languages see below)
Meta | Wikinews | {{#if:|{{#if:Wikipedia|Wikipedia|w:Help:Linksearch#}}|{{#if:Wikipedia|Wikipedia|w:Help:Linksearch}}}}http://en.wikipedia.org{{#if:|/wiki/Help:Linksearch#|/wiki/Help:Linksearch}} | Wikiquote | Wiktionary
Links to this page from Meta (int) Meta (ext) Wikipedia MediaWiki
Reading
Go | Search | Stop words | URL | Namespace | Page name | Section
Backlinks | Link | Piped link | Interwiki link | Redirect | Category | Image page
Logging in and preferences
Logging in | Preferences | User style
Editing
Advanced editing | Editing FAQ | Editing toolbar | Export | Import
Editing tips and tricks | Editing shortcuts
Tracking changes
Recent changes (enhanced) | Related changes | Watching pages | Diff
Page history | Edit summary | User contributions | Minor edit | Patrolled edit
Style & formatting
Wikitext examples | Wikitext reference | Reference card
HTML in wikitext | HTML elements
List | Table | Sorting
Special input and output
Inputbox | Special characters | Displaying a formula | Images and other uploaded files | EasyTimeline
Advanced functioning
Template | Advanced templates | Parser function | ParserFunctions | Parameter default | Variable | Magic word | System message | Substitution
Array | Calculation
Page management
Starting a new page | Renaming (moving) a page | Maintenance | Merging and moving pages | Protecting pages
Resolving disputes | Deleting a page
Special pages
Talk page | Testing | Sandbox
Lists of resources
Lists of Categories | Copyrights | Infobox
Redirect | Reference Desk | Shortcuts | Stub types

Other languages: Template:H-langs:Linksearch }}

Personal tools