मदद:Link - विकिपीडिया
Jump to content
विकिपीडिया से
"H:L" इहाँ अनुप्रेषित बाटे। help with lists खातिर, देखल जाय
Help:List
ई पन्ना how to mark up links के बारे मे बा, a very basic tutorial खातिर,
Wikipedia:Tutorial/Wikipedia links
देखल जाय। various URLs of Wikipedia and other Wikimedia servers खातिर,
Help:URL
देखल जाय।
लेख
एगो
हाउ-टु-गाइड
(how-to guide) चाहे
कइसे-कइल-जाय
के बतावे वाला लेख हवे। ई विकिपीडिया के
नीति आ दिशानिर्देश
खातिर ना हवे; अगर कौनों नीति आ निर्देश संबंधी मुद्दा होखे त ओह बिसय से संबंधित नीति देखल जाय।
शॉर्टकट
H:L
Linking and
page manipulation
Linking and diffs
URLs
Links
Orphans
Interlanguage links
Interwikimedia links
Shortcuts
External links
External link icons
Link color
Colon trick
Pipe trick
Self links
What links here
Linksearch
Manual of Style on linking
Navigation templates
Hatnotes
Template messages for links
Diffs
Simplest diff guide
Simple diff and link guide
Complete diff and link guide
Categorization
Category
Categorization guideline
Classification
Container category
FAQ for categorization
FAQ for categories
Categories, lists, and navigation templates
Categorization of people
By year
By ethnicity, gender, religion and sexuality
Redirect categories
User categories
Overcategorization
User categories
Template messages for categories
Moving and redirecting
How to move a page for beginners
Redirects
Moving a page
Requested moves
How to fix cut-and-paste moves
Moving files to the Commons
Userfication
Template messages for moving
Template messages for redirects
Merging
Merging
Proposed mergers
Requests for history merge
Merge and delete?
Merge what?
Delete or merge?
Template messages for merging
WikiProject Merge
Splitting
Splitting
Template messages for splitting
Importing and copying
How to import articles
Requests for page importation
Import
Export
Copying within Wikipedia
Protecting
Protection
Protection policy
High-risk templates
Requests for page protection
Rough guide to semi-protection
Additional
How to create a page
Article creation
Editing
Deletion process
दे
बा
सं
A video screencast showing how to create links
This page explains how to make the
wikilink
interwiki link
, or external
web link
(as
hyperlinks
) connections on Wikipedia, which give readers one-click access to other Wikipedia pages, other Wikimedia projects, and external websites.
A link has various (changeable) appearances on the "anchor" page, and the "target" page, which owns the "backlinks", and which can count the links to it with the
WP:What links here
tool.
For a short list of some basic shortcuts, see
Wikipedia:Cheatsheet
For guidelines on how links should be used in Wikipedia, see
Wikipedia:Manual of Style/Linking
Wikilinks (internal links)
संपादन करीं
इहो देखल जाय:
Wikipedia:Manual of Style/Linking
अउरी
mw:Help:Links
wikilink
(or
internal link
) links a page to another page within English Wikipedia. In
wikitext
, links are enclosed in doubled square brackets like this:
[[abc]]
is seen as "
abc
" in text and links to page "
abc
".
Use a
vertical bar
"|" (the "pipe" symbol – see
Wikipedia:Piped link
for how to type one) to create a link while labelling it with a different name on the original page. The first term inside the brackets is the link (the page you would be taken to), while anything you type after the vertical bar is what that link looks like on the original page. Here are some examples:
[[a|b]]
is labelled "
" on this page but links to page "
". Example:
[[a]]b
gives
ab
. So does
[[a|ab]]
ab
. The code
[[a|b]]c
gives
bc
, just as
[[a|bc]]
does. However, all four of these examples will link to page "
".
a[[b]]
gives a
[[a]]:b
gives
:b since the colon is outside the end brackets. The same goes for
[[Washington]]'s
or
e-[[mail]]
[[a]]''b''
gives
. (Double apostrophes turn on and off italics.)
''[[a]]''b
gives
b.
[[a|b]]
cd
gives
bcd
, and shows an example of link trailing.
[[a]]b
gives
b. (The nowiki tag is needed to turn off the so-called "linktrail rules".)
[[a|b]]c
gives
c.
Links with a specified label are said to be "
piped
" because the pipe symbol is used ("|"). For certain types of link, the label will be generated automatically if a pipe is typed, even with no label after it (meaning you don't have to type one). See
Help:Pipe trick
The link target is
case-sensitive except for the first character
(so
[[atom]]
links to "
Atom
" but
[[ATom]]
does not). Other ways in which link targets are reinterpreted are described further:
Conversion to canonical form
If the target of a wikilink does not exist, it is displayed in red color and is called a "
red link
". Here is a
red link example
. If a red link is clicked, the user is taken to a blank page where it is possible to create a page using that red linked title. While on that blank page, other red links to this (non-existent) title can be detected using the "
What links here
" feature.
If the target of a link is the same as the page on which it appears (a
self-link
), it is displayed in bold font, as with:
Help:Link
Attempting to link normally to an
image
page,
category
page or
interlanguage link
will produce a different effect: this will respectively place the image on the page, add the page to the category, or create an interlanguage link at the edge of the page. To override this behavior, insert an initial colon ":", as in
[[:File:Mediawiki.png]]
[[:Category:Help]]
[[:fr:Help:Link]]
Interwiki links
संपादन करीं
इहो देखल जाय:
Help:Interwiki linking
meta:Help:Interwiki linking
, अउरी
Help:Interlanguage links
An
interwiki link
links to a page on another Wikimedia project website, such as
Meta
or another language Wikipedia. The target site must be on the
interwiki map
specified for the source wiki. These links have the same
[[...]]
syntax as wikilinks (see previously), but take a prefix ":x:" which specifies the target site.
For example,
[[m:Help:Link]]
links to the "Help:Link" page on Meta, while
[[:commons:Athens]]
links to page "Athens" on
Wikimedia Commons
as:
commons:Athens
Interwiki links can be piped, just as with wikilinks. Remember that an
interlanguage link
should be preceded by a colon if it is to be displayed, where it is inserted in the text, as an
inline interlanguage link
; otherwise it will be displayed in the list of interlanguage links at the side of the page (which is appropriate only if it is the most closely corresponding page in the other language Wikipedia). Thus (incorporating the
pipe trick
),
[[:ja:Wikilink|]]
would be used to link to Wikilink on Japanese Wikipedia. Example: (
[[:ja:URL|]]
links to
URL
on Japanese Wikipedia).
Interwiki links (like external links) are displayed in a slightly paler blue than ordinary wikilinks. The
MediaWiki
page formatting does not detect whether these target pages exist, so they are never displayed in red.
External links
संपादन करीं
आगे पढ़ीं:
Wikipedia:External links
External links use absolute
URLs
to link directly to any web page. External links are enclosed in single square brackets (rather than double brackets as with internal links), with the optional link text separated from the URL by a space (not a "|" as with internal links). When rendered, external links are followed by an
external link icon
. For example,
[http://www.example.org/
link
text]
will be rendered as
link text
When no link text is specified, external links appear numbered:
[http://www.example.org/some-page][http://www.example.org/some-other-page]
becomes
. Links with no square brackets display in their entirety:
displays as
For more detailed information on external linking practices, see
Help:URL §
Linking to URLs
. Also note that
Special:LinkSearch
can be used to find all pages linking to a given site.
The external link syntax can also be used to link to particular pages within Wikipedia that are not accessible by wikilinks, such as
page history
, the edit view, an old version of a page, the
diff
between two versions, etc. It can also be used to create a
navigational image
External links have the associated CSS class "external". To display an external link without the arrow icon, place the external link syntax between
span
class="plainlinks"
...
span
tags. For instance,
[https://en.wikipedia.org/w/index.php?title=Help:Link&action=history this page's history]
will be rendered as:
this page's history
. If you make frequent use of this, the
CharInsert
gadget (which can be activated under
Preferences
Gadgets
→ Editing
CharInsert
), has an option to insert this text in its "Wiki markup" mode.
http: and https:
संपादन करीं
In mid-2015
, Wikipedia and all other Wikimedia sites were changed to use
HTTPS
to encrypt all traffic. Accessing a URL like
will result in the webserver redirecting you to
http
://en.wikipedia.org/wiki/Help:Link
. Therefore, when making an external-style link to an internal page (that is, using single square brackets, or a bare URL),
https
should be specified to avoid the needless redirect, as in
In the past, when Wikipedia could be accessed via either HTTP or HTTPS, a
protocol-relative URL
could be used to make an external link (or external-style link to an internal page) which would use
http:
or
https:
depending on how the page the link appeared on was accessed, as in
[//www.mediawiki.org/wiki/Help:Links]
. However, as all Wikimedia sites now require HTTPS, this linking style is obsolete and should no longer be used.
http:
or
https:
should be explicitly specified as appropriate for the target site (preferring
https:
, where available).
What is an "anchor"?
संपादन करीं
The word "anchor" has two opposing meanings:
In the context of a link from an
anchor
to a
target
, it is the starting place.
In the context of the template
anchor
, an "anchor" is a landing place for a link to jump to.
The anchor
template
proceeds to automatically create some invisible coding from certain text in the "landing place", taking into account certain parameters in reference templates in general.
So for developers the word "anchor" may refer
to the landing place in general,
to the mostly invisible code, or
to the text and parameters from which the code is created.
Section linking (anchors)
संपादन करीं
शॉर्टकट
WP:ANCHOR
इहो देखल जाय:
Help:Section §
Section linking
, अउरी
Wikipedia:Manual of Style/Linking §
Section links
To link to a section or subsection in another page, append a # and the section name to the page name:
[[Page name#Section name|displayed text]]
If linking in the same page, you can omit the page name and use:
[[#Section name|displayed text]]
Note that
Section names
are entirely case sensitive, in contrast to article links, where the first letter is not case sensitive.
Template
To link to a section so that it is formatted with the section symbol instead (
Page name §
Section name
rather than as
Page name#Section name
), use the template
Section link
(or
slink
):
{{Section link|Page name|Section name}}
When using the template, certain characters
[ ] { | }
require encoding when linking to a section:
.5B
.5D
.7B
.7C
.7D
For example, the section "[Closed] Complaint" can be linked with
[[#.5BClosed.5D Complaint]]
. Links in the table of contents will automatically make this encoding so the url can be copied from there. However, that url will also encode other characters which do not interfere with templates or wikicode, so the result may look ugly.
For more information, see
Help:Section
. See also
Wikipedia:Redirect §
Targeted and untargeted redirects
Specifics
संपादन करीं
The section title in fact points to an
anchor
on the target page. According to the Manual of Style, it
may be preferable
to define anchors other than explicit section titles, using
{{
Anchor
anchor name}}
or alternatively the
HTML
code
...
(see
Anchor
syntax). Links to anchors can also be added to external URLs and to interwiki links, again using the # syntax.
Section links still work through pagenames that are
redirects
. For example, if
Danzig
redirects to
Gdańsk
, then
Danzig#History
will link to the "History" section of the article Gdańsk. Conversely it is also possible to put a section link as the target of a redirect (these work only if JavaScript is enabled). For example,
Wikipedia:Section link
redirects specifically to the section
Help:Link#Section linking (anchors)
on this page. However, when adding a section to a link that redirects, the named section will override the section originally in the redirect. So
Wikipedia:Section link#Interwiki links
will go to the "Interwiki links" section of this page instead.
Duplicate section names
संपादन करीं
शॉर्टकट
WP:DUPSECTNAME
If more than one section on a destination page has the same title, a link to the title is to the first section with that title. If the link should be to another section with the title or a title that differs only in capitalization (Example vs. EXAMPLE), append to the linked title _2, _3, and so on, without a space (or 2, 3, and so on
with
a space), counting from the top of the destination page and without regard to whether a section is a section or a subsection. For example, multiple sections titled "History" may be linked to as "History", "History_2" (or "History 2"), and so on.
Linking to part of a section
संपादन करीं
इहो देखल जाय:
Table row linking
Anchors can also be used to link to any part of a section. For example, if you want to link to the fifth sentence of a section, you just place an anchor at the start of that sentence, and you can then link to that anchor in the same way as you would link to any other anchor.
However, you need to choose an anchor name that is unique in that page (that article or that Talk Page) and is likely to remain unique, because when several anchors on the same page have the same name, the link will go only to the first anchor. Using the date and time as part of the anchor name is a simple way to help keep it unique (for example, by naming it "ThisSection2014-09-22-18-05a1" as in
{{Anchor|ThisSection2014-09-22-18-05a1}}
).
Anchors can also be placed anywhere inside sentences (for example at the start of a clause), and inside notes and citations, though it is advisable to test first in your
sandbox
before trying some exotic new kind of location for the first time.
There are a small number of special anchor names. See
Table row linking
Table row linking
संपादन करीं
To create an anchor for a row of a table, see
Help:Table §
Section link or map link to a row anchor
. However,
[[#top]]
and
[[#toc]]
are reserved names that link to the top of a page and the table of contents, respectively.
Piped link
संपादन करीं
piped link
is an internal
link
or
interwiki link
where the link target and link label are both specified. This is needed in the case that they are not equal, while also the link label is not equal to the link target with the last word extended:
[[cheese]]
(label = target, no pipe needed)
produces
cheese
, linked to the article
Cheese
[[cheese]]s
(label = target + extension ["s"], no pipe needed)
produces
cheeses
, linked to the article
Cheese
[[Swiss cheese|cheese]]
(label = part of target, pipe required)
produces
cheese
, linked to the article
Swiss cheese
[[cheese|Swiss cheese]]
(label = target + additional text ["Swiss"], pipe required)
produces
Swiss cheese
, linked to the article
Cheese
[[cheese|that stuff]]
(label is completely different from target, pipe required)
produces
that stuff
, linked to the article
Cheese
This allows linking a word or phrase within the text of a page rather than using "see also", even if the wording does not exactly correspond with the name of the target page. With a suitable browser and depending on the
preferences
set, one can still see the link target: when you point at the link, the name shows up in a hover tooltip and is also shown in the status bar.
For instance:
[[Train station|station]]
will show:
station
This is useful where the word "station" is used in an article on trains; from the context, it would be clear that a train station is meant. The piped link is more convenient to the user than a link to
station
which might be a disambiguation page.
The word
piped
refers to the use of the pipe character "|" used to separate the good description from the actual link. This character is named after another use of it; see
Pipe (computing)
There are various tricks to get the same result with less typing:
Leave the part to the right empty – the "
pipe trick
Leave the part to the left empty – the "
inverse pipe trick
Just attach text to the link, as in "
[[train]]s
", see
Using a redirect as alternative
संपादन करीं
An alternative to a piped link is simply using
redirect pages
. To create
How to set up a coffee house
, use
[[How to set up a coffee house]]
and make this a redirect to
coffeehouse setup
(note that, unlike previously, the tooltip that shows when you point at the link, if applicable for your browser, is simply the text already shown).
This is convenient if the redirect is already there or will also be of use elsewhere; however, there are a few drawbacks:
the tooltip does not show the page one will arrive at
Related changes
" gives the changes in the
redirect page
not the redirect target
the redirect message on the target page slightly clutters it
Combining a piped link and a redirect, one can provide some information that is not the name of the page one links to in the hover tooltip, i.e. the following pipe to a redirect
[[United Nations Organization|UNO]]
will display a tooltip "United Nations Organization" when hovering over
UNO
, thereby explaining the abbreviation.
Automatic conversion of wikitext with the pipe trick
संपादन करीं
इहो देखल जाय:
Help:Pipe trick
If in a piped link the part after the "|" is left empty, it is
converted
to an abbreviated form of the linked page, as follows:
Any word before the first colon (:), as well as the colon itself, is removed. This word may or may not be a namespace prefix (such as "Help:") or an interwiki prefix (such as "commons:"). If the page name is preceded by a colon, "first" refers to "first after this".
If there is text in parentheses at the end it will be removed.
If there are no parentheses but there is a comma, the comma and everything after it are removed.
The link will be in whatever case is used.
Just like for the three or four tildes when signing on Talk pages and the use of
subst
, in a preview, the result already shows up in the preview itself, but the conversion in the edit box is not yet shown. Press "Show changes" to see the change in the wikitext.
Category tag
The sort key syntax of the category being like a piped link, the pipe trick also works for category tags, even though it is not useful there.
Examples using colons
[[Help:Template|]]
is converted to
[[Help:Template|Template]]
, which is rendered as
Template
[[Music: My life|]]
is converted to
[[Music: My life| My life]]
, which is rendered as
My life
– although "Music:" is not a namespace (therefore the space after the colon is not automatically removed), the shortcut works anyway.
[[w:en:Pipe (computing)|]]
is converted to
[[w:en:Pipe (computing)|en:Pipe]]
, which is rendered as
en:Pipe
Case examples
[[pipe (computing)|]]
is converted to
[[pipe (computing)|pipe]]
which is rendered as
pipe
[[Pipe (computing)|]]
is converted to
[[Pipe (computing)|Pipe]]
which is rendered as
Pipe
Comma example
[[commons:Boston, Massachusetts|]]
is converted to
[[commons:Boston, Massachusetts|Boston]]
, which is rendered as
Boston
Other examples
Parameters
and
variables
[[w:{{{1}}}|]]
does
not
give
[[w:{{{1}}}|{{{1}}}]]
Calling the template with a value of parameter 1 gives a working link in the case of substitution only.
[[w:en:{{FULLPAGENAME}}|]]
does
not
give
[[w:en:{{FULLPAGENAME}}|en:{{FULLPAGENAME}}]]
[[m:{{FULLPAGENAME}}|]]
does
not
give
[[m:{{FULLPAGENAME}}|{{FULLPAGENAME}}]]
* [[project:a (b)|]]
* [[w:project:a (b)|]]
* [[:de:project:a (b)|]]
* [[wiktionary:project:a (b)|]]
* [[wiktionary:de:project:a (b)|]]
* [[wikibooks:project:a (b)|]]
* [[wikiquote:project:a (b)|]]
* [[wikisource:project:a (b)|]]
* [[w:en:{{FULLPAGENAME}}|]]
** [[w:en:{{FULLPAGENAME}}|en:{{FULLPAGENAME}}]]
* [[m:{{FULLPAGENAME}}|]]
** [[m:{{FULLPAGENAME}}|{{FULLPAGENAME}}]]
These examples appear as:
project:a
project:a
project:a
de:project:a
project:a
project:a
project:a
[[w:en:
मदद:Link
|]]
en:
मदद:Link
[[m:
मदद:Link
|]]
मदद:Link
Inverse pipe trick
संपादन करीं
On page "A (c)",
[[|B]]
is automatically converted to
[[B (c)|B]]
Similarly, on page "A, c",
[[|B]]
is automatically converted to
[[B, c|B]]
Further examples are here.
Subpage links
संपादन करीं
A wikilink needs a
[[
fullpagename
, and this is not optional
except when it links to or from a
subpage
A wikilink to its parent page is
[[../]]
and, although no page name is given, the
fullpagename
is rendered.
On the parent a wikilink to a subpage can use
[[/
subpagename
to render a subpagename instead.
Although subpages are created in article space,
subpage linking does not fully function there.
Subpage linking works as expected to link to any pages under a root parent page:
section linking:
[[../#
section
]]
child-to-child subpage linking:
[[../
subpagename
parent's parent
[[../../]]
including the
[[../
pipe trick
]]
and including
transclusions
{{../}
and
{{/
subpagename
Consider that there are about 140
subpages of the
Manual of style
arranged in 97 branches, 35 of which have two subpages, and 5 of which have three subpages. Subpage links save typing. Say you're editing this closely related group of fullpagenames:
Wikipedia:Manual of Style/Accessibility/Signatures
Wikipedia:Manual of Style/Accessibility/Data tables tutorial
Wikipedia:Manual of Style/Accessibility/Data tables tutorial/Internal guidelines
On subpagename
You type
You get
Links to
Data tables tutorial
[[../]
Wikipedia:Manual of Style/Accessibility
Parent
Internal
guidelines
[[../../]]
Wikipedia:Manual of Style/Accessibility
Grandparent
[[/Signatures]
/Signatures
Child
[[/Signatures
Signatures
Child
Data tables tutorial
[[../Signatures]
Wikipedia:Manual of Style/Accessibility/Signatures
Sibling
Data tables tutorial
[[../Signatures/]
Signatures
Sibling
Internal
guidelines
[[../../Signatures]
Wikipedia:Manual of Style/Accessibility/Signatures
Uncle
Signatures
[[../Data tables tutorial/Internal guidelines]
Wikipedia:Manual of Style/Accessibility/Data tables tutorial/Internal guidelines
Nephew
To see this page's array of subpage variables and markup four levels deep, see
/one/two/three/four
, and from there go to level two at
one/two
Markup
[../]]
addresses the
basepagename
, except when a
pagename
includes a
slash character (allowed), the basepagename/subpagename variables' characters are skewed. To see all this, and how adding an extra
../
construct fixes the resulting
redlink
, see
/sub/page/name1/sub/page/name2/subpage level 3
, and from there go to
sub/page/name2
Note that the top of every subpage shows the
navigation links
to all
parent
subpagenames. From these you can easily gauge levels and linking constructs.
For more information:
See
Wikipedia:Page name#Subpagename and basepagename
Create
a subpage by using a
red link
See
m:Help:Link#Subpage feature
See examples at
m:Link/a/b
and
m:Help:Link/a/b
ISBN, RFC and PMID automatic links
संपादन करीं
For more details on this topic, see
Help:Magic links
Key words ISBN, PMID and RFC will generate internal or external links automatically:
What you type
How it renders
Description
{{ISBN|978-0-12-345678-6}}
ISBN
978-0-12-345678-6
An internal
ISBN
link to
Special:Booksources/978-0-12-345678-6
RFC 4321
RFC 4321
Request for Comments
externally linked to
{{PMID|12345678}}
PMID
12345678
PubMed
document externally linked to
To prevent such automatic linking, use a
nowiki
between the identifier and the value or a
non breaking space
Changing link appearance
संपादन करीं
The ways that various links are displayed in browsers, as described above, are the default display styles in the default
skin
. Users can change the way they see links:
By selecting a different skin.
By applying a
user style
using CSS.
By changing the "Underline links" or "Format broken links like this" value on the Appearance tab of
user preferences
By setting the "threshold for stub display" on the Appearance tab of user preferences. This causes links to pages in mainspace to be displayed in a distinctive fashion – dark red by default – if the wikitext of the target page has less than a specified number of bytes. (Any section markers in the link are ignored. Links to redirects are displayed in the normal style.)
Hover tooltips
संपादन करीं
In many browsers, holding the cursor over a link (
mouseover
) shows a hover
tooltip
containing the text of the link's
HTML
title
attribute. MediaWiki – the software which runs Wikipedia – sets this to the target page name (without any section indication) if it's a wikilink, the page name with prefix if it's an interwiki link, and the link address (
URL
) if it's an external link. (This can be switched off in the
user preferences
.) The browser may also show similar information, including any section indication, in the status bar.
For these effects a piped link is useful even if it is not followed; for example, for displaying the meaning of an acronym. It is possible to produce a hover tooltip without a link, using the
H:title
template.
Disallowed characters
संपादन करीं
A link whose target contains disallowed characters (see
WP:Page name
) will be displayed without markup, as in [[A{b}]].
Conversions are automatically made to
non-literal characters
in wiki and interwiki links. For example, "
[[Help:Page%20name]]
" becomes "
Help:Page name
". However, the opposite is true for external links; literal characters are converted into non-literal characters. For example, most browsers convert ".../wiki/!" to ".../wiki/%21".
Some characters in a web address link need to be represented as
escape characters
because they are reserved for Wikipedia edits. Examples include
%5B
for [,
%5D
for ],
%3C
for <,
%3E
for >,
%7B
for {,
%7D
for }, and
%26
for &. More can be found by reading about
percent encoding
Numeric character references
(e.g.
#91;
or
#x5B;
) should not be used in external links because the ampersand character (
) has a special meaning in a URL.
A code like
%70
in a redirect disables it, although the link works from the redirect page. For a redirect that works, the redirect page shows the canonical form of the target, unlike its preview page, which renders the link in the usual way.
Links containing URL query strings
संपादन करीं
Because the ampersand character (&) is disallowed, it is not possible to create an ordinary link containing
&action=edit
or
&redirect=no
in the URL query string. These kinds of links can be helpful in user pages. Also, a redirect page can have categories and you might wish to view or edit these in a single click.
The following syntax shows the use of the
magic word
fullurl
as it would appear in a template constructed to append
action=edit
to the URL query string:
{{fullurl:{{{1}}}|action=edit}}
{{{1}}}
Note that this will render as an external link rather than as an internal link and for this reason it might not appear in what-links-here queries associated with the target page.
Link reports
संपादन करीं
For more details on this topic, see
Help:What links here
The navigable links to a page are wikilinks, redirects, and external-styled wikilinks.
The
orphan
tag can be placed on pages with no incoming wikilinks.
To a page
संपादन करीं
Each link to a page is a link to a
name
No one report shows all links to the
content
The
What links here
tool, on every page,
will report all wikilinks and all redirects to the
content
of that page.
(You get the wikilinks to the redirects too.)
The
parameter
linksto
will find wikilinks only.
Both report (invisible) wikilinks placed by a transclusion through a {
template
}}.
The difference between them is that
linksto
reports a count of links to
a page name
while
WhatLinksHere
reports a map of links to
the page as content
To a section
संपादन करीं
The navigable links to a section of a page are wikilinks, redirects, and URL-styled wikilinks.
The difference between a redirect and a wikilink is most pronounced where a redirect targets a section,
when you cannot add your own
section
to it
even though it appears as
page name
]]
A wikilink that links to a section
and
that appears as
page name
section name
]]
can link to that section through the canonical page name (the title on the page with the actual content)
or through the page name of any redirect to it, in which case the page name is the name of a redirect page.
To find wikilinks to a section requires two or more reports.
Show redirects only
, an external tool available from the
What
links
here
page, reports redirects to the
content
of a section. (No matter which page
name
you give it, you get all the redirect page names.) Look past any "
No anchor or section
" group of redirects, and any "invalid" sections, to see if your particular section name is explicitly listed, because then the redirect pages under it can have incoming links that will then go to that section.
("What Links Here" also has a "show redirects" report, but it doesn't specify if the redirect goes to any particular section.)
Use "What Links Here" on any redirect pages found in the previous step.
Use
Links to
to create a group of search links that will each report some links to a section. It can work with only one page name at a time. For each search link given, just change the page name in the query to each redirect in turn.
The more redirects there are, the more reports there are to run.
If there are no redirects involved, one report from "Links to" is enough.
From a page
संपादन करीं
To report links
from
a page, you just list all the wikilinks on that page.
Wikipedia:Tools/Editing tools §
Relink
can count wikilinks from a copy of the wikitext on your local machine.
Some
text editors support
the counting and highlighting of the
[...]]
pattern occurrences.
The Wikipedia
web API
accepts queries by URL.
One way to send a query to the API is by creating an external link (
External links
).
For example, using an external link very much like a search link, you can
send the API a request to list the link properties of "
wp:example
".
It should interpret it correctly as "Wikipedia:Example",
pageid 25263910
What you type
fullpagename
your label
What you get when fullpagename is
wp:example
your label
The report is in
JSON
format, as is usual for RESTful APIs.
The pageid is available from
Page information
on every page.
The
titles
parameter is plural. (It is designed to take multiple fullpagenames or pageid, delimited by the | pipe character.)
The number of links returned by this query is limited to 500, per the URL you created. See
mw:API:Query
for how to safely get more. For example,
Operating system
has 510 wikilinks.
To make a page register as a link to a page, but without actually showing the link,
make a link to it, but label it with a space character using the pipe trick:
pagename
]]
Additional link-related functions
संपादन करीं
For the effect that links have on date formatting, see
Help:Date formatting and linking
Another link-dependent feature is
related changes
, which make it possible to view recent changes to all pages which are linked from the current page (or which are members of the category, if it is a category page).
For information on how to link to pages from an image, see
mw:Extension:ImageMap
Several
templates
have been created to make linking easier (although they are not usually used in article space). These include
tl
and
tlx
for linking to templates, and
cl
and
lc
for linking to categories. More can be found in
Category:Internal link templates
Conversion to canonical form
संपादन करीं
आगे पढ़ीं:
mw:Manual:Title.php §
Canonical forms
As
described previously
, if a link target begins with a lower case letter, it will be interpreted as if it began with the equivalent capital letter. If the target contains a
namespace
prefix, then the whole prefix and the first character after the colon are case-insensitive (so
uSeR:jimbo Wales
links to
User:Jimbo Wales
).
In link targets, spaces and underscores (which are effectively equivalent) are ignored if they come at the start, at the end, or immediately before or after the colon following a namespace prefix. Consecutive spaces / underscores are treated as a single space. Hence
_User_: Jimbo_ __ Wales__
links to
User:Jimbo Wales
Also,
HTML character references
and
percent-encoded
characters are replaced with their raw character. For example,
[[d
eacute;partement]]
produces
département
, and
[[%40]]
produces
. Links which resolve to
invalid page titles
are displayed as unmarked-up wikitext.
Titles indicated by wikilinks are displayed in canonical form (with correction of capitalization and excess spaces / underscores removed, as described previously) in the following places:
In
transclusion
tags for non-existent pages:
{{qwsazx}}
gives
टेम्पलेट:qwsazx
which links to non-existent page.
In tooltips and in the status bar (if applicable for the browser) when the mouse cursor is moved over the link.
On
redirect
pages.
In the
category
box.
The prefixes in
interwiki links
are treated similarly to namespace prefixes: they are insensitive to case and to spaces before and after the colon. However the first character after the colon is
not
automatically capitalized (whether it is interpreted as a capital depends on the configuration of the target wiki).
इहो देखल जाय
संपादन करीं
Find link tool
: a simple tool that lets you search for articles to consider adding links to.
Clean linking
MediaWiki help page on links
Help:Link color
: the color of a
link
shows the status of the corresponding target page.
Help:Pipe trick
: uses the
pipe character
("
") to save typing the label of a piped link.
Help:Permanent link
: creating a permanent link to a page revision.
Smart Linking tool
: a tool for linking and previewing the linked article above the text box with the wiki code.
Help:Self link
: self links is a link to the page itself. A self-link to a page appears as bold text when the article is viewed.
Wikipedia:Shortcut
: a specialized type of redirect page that provides an abbreviated wikilink to a project page.
Help:Colon trick
: a trick when providing category, image or interwiki links.
Wikipedia:Orphan §
Step 2: Finding related articles
Notes and references
संपादन करीं
The aliases for the namespace part of the name are recognized in
wikilinks and in the parser functions that create URL style links – canonicalurl and fullurl.
They are also recognized in the navigation box, and in Search,
except for the
insource
parameter.
"What Links Here" does not report URL-style links to a page.
Redirects that link to a section are part of a valiant effort to enable changing a section heading without breaking a link to the
name
. That effort also must ask editors who want to link to a section to always check the wikitext of the target section, and there find, read and understand the plan to link to a single redirect page instead. Then that redirect page links to the section. ("Invalid" redirects to a non-existing anchor or section occur when this is overlooked.)
If you will use the API heavily or professionally you should follow its currently listed recommendations at
API
(Use
continue=
, use
formatversion2
, use multiple pages at once, etc.)
दे
बा
सं
Wikipedia help pages
Visit the
Teahouse
if you are a new editor looking for interactive help, or the
Help desk
for an interactive
Q & A
forum.
Noticeboards
(?)
FAQs
(?)
Reference desks
(?)
The Missing Manual
(?)
Directories
(?)
About Wikipedia
Principles
Wikipedia in brief
Policies and guidelines
What Wikipedia is not
Disclaimer
parental advice
Making requests
where to ask questions
contact Wikipedia directly
Who writes Wikipedia?
Why create an account?
Help for readers
FAQ
Books
Glossary
Mobile access
Other languages
Searching
Students
Viewing media
Contributing
to Wikipedia
A plain and simple overview
A primer for newcomers
Asking for help
Advice for young editors
Avoiding common mistakes
Etiquette
community expectations
Learning the ropes
Instructional material
Simplified Manual of Style
Simplified rule-set
"Ignore all rules"
"The rules are principles"
Style-tips
Tip of the day
Job Center
Your first article
article wizard
Vandalism
Getting started
Wikipedia intro
Wikipedia tutorial
The Wikipedia Adventure
Newcomers' training
New contributors' help page
Manual of Style intro
Graphics tutorials
Picture tutorial
Uploading intro
IRC
(live chat)
tutorial
Navigating intro
Policies intro
Referencing intro
Tables intro
Talk pages intro
VisualEditor user guide
How-to pages
and
information pages
Appealing blocks
Article deletion
Categories
Citations
references
Referencing for beginners
Citation Style 1
Cite errors
References and page numbers
Diff
Editing
toolbar
edit conflict
Email confirmation
Find sources
Files
Footnotes
Image deletion
Infoboxes
Linking
link color
Logging in
Merging
Namespaces
Page name
Redirect
Renaming pages
Passwords
Reverting
Talk pages
archiving
URL
User contributions
User page design center
Coding wiki markup
Wiki markup
cheatsheet
Barcharts
Calculations
Characters
Citation templates
Columns
HTML
Lists
Magic words
introduction
Music symbols
Sections
Sounds
Tables
introduction
Templates
documentation
messages
Transclusion
Visual files
Wiki tools
Directories
Abbreviations
Departments
Editor's index
Essays
FAQs
Glossary
Guidelines
Help menu
Manual of Style
Policies
Shortcuts
Tips
Ask for help on your talk page
दे
बा
सं
Wikipedia technical help
Get personal technical help at
the Teahouse
Help desk
Village pump (technical)
talk pages
or
IRC
General technical
help
Multilingual support
Special Characters
Entering
Browser notes
Troubleshooting
Bypass cache
Mobile access
Printing
Keyboard shortcuts
Editing
Edit toolbar
CharInsert
Edit conflict
VisualEditor
User guide
Create a page
Page history
Reverting
Page name
Introduction
User access levels
Editnotice
IRC
Tutorial
Special page
related
Searching
Advanced search
Logging in
Reset passwords
Notifications/Echo
FAQ
Moving a page
Fix cut-and-paste moves
Watching pages
User contributions
Emailing users
Random pages
Logs
What links here
Related changes
Recent changes
Pending changes
Page Curation
Linksearch
Page import
Edit filter
Wiki markup
Wiki markup main page
Cheatsheet
Colours use
Columns
Line-break handling
Lists
Magic words
For beginners
Conditional expressions
Switch parser function
Time function
Redirects
Sections and TOCs
Tables
Introduction
Conditional tables
Sorting
Collapsing
Advanced table formatting
Links
and diffs
URLs
Links
Permanent link
Interwikimedia links
Interlanguage links
Link color
Pipe trick
Colon trick
Magic links
Diffs
Simplest diff guide
Simple diff and link guide
Complete diff and link guide
Images, videos
and sounds
Media help
Options to hide an image
Uploading images
Introduction
Creation and usage of media files
Moving files to the Commons
Visual file markup
Images
Preparing images for upload
Picture tutorial
Extended image syntax
Gallery tag
Graphics tutorials
Basic bitmap image editing
How to improve image quality
Graphics Lab resources
Sound file markup
SVG help
Other graphics
Family trees
Graphs and charts
How to create
To scale charts
Barcharts
Math formula
Math symbols
Rendering math
LaTeX symbols
Musical scores
Musical symbols
Timeline
EasyTimeline syntax
WikiHiero syntax
Templates
and
Lua
modules
Templates
Template messages
Citation templates
Transclusion
Labeled section
Substitution
Advanced template coding
Template limits
Template sandbox and test cases
Template documentation
Purge
Lua project
Lua help
To do
Requests
Resources
Guide to Scribbling
Namespaces
Main/Article
Talk namespaces
Archiving
User
Page design
Project/Wikipedia
File
MediaWiki
Bug reports and feature requests
Template
Help
Category
Portal
Book
Draft
Education Program
TimedText
Module/Lua
Topic/Flow
Special
Media
HTML
and
CSS
HTML in wikitext
Markup validation
Span tags
Cascading Style Sheets
Catalogue of CSS classes
Useful styles
Classes used in microformats
Ambox classes
Common.js and common.css
Customisation
and tools
Preferences
Skins
Customizing watchlists
Hide pages
Gadgets
Beta Features
User scripts
Guide
Techniques
IRC Scripts
User styles
Tools
Navigation shortcuts
Browser tools
Alternative browsing
Editing tools
Optimum tool set
Cleaning up vandalism tools
Citation tools
Wikimedia Labs
Toolserver
Automating editing
Bots
Creating
Twinkle
FurMe
NPWatcher
HotCat
WPCleaner
igloo
AutoWikiBrowser
STiki
AfC helper script
Huggle
" से लिहल गइल
श्रेणीसभ
Wikipedia how-to
विकिपीडिया कड़ी मदद
विकिपीडिया कड़ी
छिपावल गइल श्रेणी:
Pages using RFC magic links
मदद
Link
बिसय जोड़ीं