"උදවු:සබැඳි" හි සංශෝධන අතර වෙනස්කම්

Reverted to revision 276500 by Wim b: rm vandal. (TW)
(Requesting speedy deletion with rationale "mistake". (TW))
(Reverted to revision 276500 by Wim b: rm vandal. (TW))
{{db-reasonshortcut|1=mistakeH:L}}
[[File:How to link text.ogv|thumb|300px|A video screencast showing how to create links]]
පුෂ්පයක් යනු විකරණය වූ ප්‍රරෝහයකි .එනම් අංකුරයක් වැඩී ප්‍රරෝහයක් ඇති කරනු වෙනුවට එය විකරණය වී මලක් සාදයි.පුෂ්පය ශාක කඳට සවි වන්නේ වෘන්තය හෙවත් නැතුව මගිනි.වෘන්තයේ පුෂ්පයට සවිවන අග්‍රය තරමක් විශාල වී ඇත.මෙය ග්‍රාහකය ලෙස හදුන්වනු ලැබේ.පුෂ්පයෙහි සියලු කොටස්
{{About|how to markup links|various URLs of Wikipedia and other Wikimedia servers|Help:URL}}
ග්‍රාහක මත වලයාකාරව පිහිටයි.දර්ශනීය පුෂ්පයක පුෂ්ප
[[ගොනුව:පුෂ්ප|thumbnail|පුෂ්ප]]
කොටස් වර්ග හතරක් වලයන් හතරක පිහිටා ඇති අයුරු හඳුනා ගත හැකිය.ඒවා නම් මනිය,මුකුටය,පුමන්ගය හා ජායාන්ගය වේ.
 
This page '''Help:Link''' explains how to make the '''wikilink''', '''interwiki link''', or external '''web link''' (as [[hyperlink]]s) connections on Wikipedia, which give readers one-click access to other Wikipedia pages, other Wikimedia projects, and external websites.
[[ප්‍රවර්ගය:ජීවමාන භාෂාවක භාෂාව පෝෂණය කරන රසවත් භාෂා උපාංග අතර සාම්ප්‍රදායික යෙදුම් වර්ග කිහිපයකි. ප්‍රස්ත පිරුළු, රූඩි හා ආත්තෝපදේශ ලෙස දැක්වෙන මේ යෙදුම් වලින් පවසන අදහස වඩා රසවත්ව පැහැදිලිව ඉදිරිපත් වේ.]]
 
[[ප්‍රවර්ගය:/Users/imeshnirmalaranatungajayasekarakoralage/Desktop/ආසනික් - හෙළ සුවය.pdf]]
A link has various (changeable) appearances on the "anchor" page, and the "target" page which owns the "backlinks" 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 ==
{{see also|Wikipedia:Manual of Style/Linking}}
A '''wikilink''' (or '''internal link''') links a page to another page within English Wikipedia. Links are enclosed in doubled square brackets like this:
* <code><nowiki>[[abc]]</nowiki></code> 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:
* <code><nowiki>[[a|b]]</nowiki></code> is labelled "[[a|b]]" on this page but links to page "[[a]]".
* <code><nowiki>[[a]]b</nowiki></code> gives [[a]]b. So does <code><nowiki>[[a|ab]]</nowiki></code>: [[a|ab]]. The code <code><nowiki>[[a|b]]c</nowiki></code> gives [[a|b]]c, just like <code><nowiki>[[a|bc]]</nowiki></code> does. However, all four of these examples will link to page "[[a]]".
* <code><nowiki>a[[b]]</nowiki></code> gives a[[b]].
* <code><nowiki>[[a]]:b</nowiki></code> gives [[a]]:b since the colon is outside the end brackets. The same goes for <code><nowiki>[[Washington]]'s</nowiki></code> or <code><nowiki>e-[[mail]]</nowiki></code>.
* <code><nowiki>[[a]]''b''</nowiki></code> gives [[a]]''b''. (Double apostrophes turn on and off italics.)
* <code><nowiki>''[[a]]''b</nowiki></code> gives ''[[a]]''b.
* <code><nowiki>[[a|b]]</nowiki>cd</code> gives [[a|b]]cd.
 
Links with a specified label are said to be "[[Help:Piped link|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 <code><nowiki>[[atom]]</nowiki></code> links to "[[Atom]]" but <code><nowiki>[[ATom]]</nowiki></code> does not). Other ways in which link targets are reinterpreted are described further: [[#Conversion to canonical form|Conversion to canonical form]].
 
If the target of a wikilink does not exist, it is displayed in red color, and is called a "[[Wikipedia:Red link|red link]]". If a red link is clicked, the user is taken to a blank page where it is possible to create a page using that redlinked title. While on that blank page, other red links to this (non-existent) title can be detected using the "[[Help:What links here|What links here]]" feature.
 
If the target of a link is the same as the page on which it appears (a [[Help:Self link|self-link]]), it is displayed in bold font, as with: [[Help:Link]].
 
Attempting to link normally to an [[Wikipedia:Images|image]] page, [[Wikipedia:Categorization|category]] page or [[Help:Interlanguage links|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 <code><nowiki>[[:File:Mediawiki.png]]</nowiki></code>, <code><nowiki>[[:Category:Help]]</nowiki></code>, <code><nowiki>[[:fr:Help:Link]]</nowiki></code>.
 
== Interwiki links ==
 
* ''See also [[meta:Help:Interwiki linking]].''
 
An [[Help:Interwiki linking|interwiki link]] links to a page on another Wikimedia project website, such as [[Meta-Wiki|Meta]] or another language Wikipedia. The target site must be on the [[m:Interwiki map|interwiki map]] specified for the source wiki. These links have the same <nowiki>[[...]]</nowiki> syntax as wikilinks (see previously), but take a prefix ":x:" which specifies the target site.
 
For example, <code><nowiki>[[m:Help:Link]]</nowiki></code> links to the "Help:Link" page on Meta, while <code><nowiki>[[:commons:Athens]]</nowiki></code> links to page "Athens" on [[Wikimedia Commons]] as: [[:commons:Athens]].
 
Interwiki links can be piped, just as with wikilinks. Remember that an [[Help:Interlanguage links|interlanguage link]] should be preceded by a colon if it is to be displayed, where it is inserted in the text, as an [[Help:Interlanguage_links#Inline_interlanguage_links|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 [[Help:Link#Pipe_trick|pipe trick]]), <code><nowiki>[[:ja:Wikilink|]]</nowiki></code> would be used to link to Wikilink on Japanese Wikipedia. Example: (<code><nowiki>[[:ja:URL|]]</nowiki></code> links to [[:ja:URL|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 ==
 
External links use absolute [[URL]]s to link directly to any Web page. These links have the associated CSS class "external". External links are in the form <code><nowiki>[http://www.example.org link name]</nowiki></code> (resulting in [http://www.example.org link name]), with the link name separated from the URL by a space and followed by an [[Help:external link icons|external link icon]]. Links without link names appear numbered: <code><nowiki>[http://www.example.org]</nowiki></code> becomes: [http://www.example.org]. Links with no square brackets display in their entirety: http://www.example.org.
 
See [[Help:URL#Linking to URLs]] for more detailed information.
 
[[Special:LinkSearch]] finds all pages linking to a given site.
 
The external link syntax can also be used to link to particular page versions within Wikipedia that are not accessible by wikilinks, such as [[Help:Page history|page history]], edit view, an old version of a page, the [[WP:Diff|diff]] between two versions, etc. It can also be used to create a [[m: Help:Navigational image|navigational image]].
 
To display a link without the arrow icon, place the external link syntax between {{tag|span|params=class="plainlinks"}} tags.
 
Registered users at the English Wikipedia can select "Open external links in a new tab/window" under Gadgets at [[Help:Preferences|user preferences]]. It is not possible to make an external link open in a new tab / window for others.
 
=== Dropping http: and https: ===
 
If you make an external style link using square brackets <nowiki>[...]</nowiki> ''from a Wikimedia page to other Wikimedia page'', including Wikipedia of course, it's better to drop the protocol <code>http:</code> or <code>https:</code>, so that the [[URL]] begins with <code>//...</code>, e.g. <code>//en.wikipedia.org/w/index.php?title=Help:URL</code>.
 
Otherwise, readers are forced to use the specified connection method. If you don't specify the protocol, readers can continue to use the protocol to read that page.
 
The URL returned by {{tnull|SERVER}} [[H:MW|magic word]] begins with <code>//</code>.
 
* Example: <code><nowiki>[//en.wikipedia.org/w/index.php?title=Help:Link no protocol]</nowiki></code>
* Result: [//en.wikipedia.org/w/index.php?title=Help:Link no protocol] (read this page both with http and https)
 
== What is an "anchor"? ==
 
The word "anchor" has 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 {{tl|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) ==
{{shortcut|WP:ANCHOR}}
 
<!-- Not very helpful...
To make a link to a section of a page, use the following syntax:
* <nowiki>[[#B1]]</nowiki> where B1 is B with blanks replaced by underbars, links to the section titled "B" on the current page (for example, [[#External_links]] links to the External links section on this page).
* <nowiki>[[A#B1]]</nowiki> where B1 is B with blanks replaced by underbars, links to the section titled "B" on page "A".
-->
To link to a section in the same page, you can use: {{nowrap|<code><nowiki>[[#section name|displayed text]]</nowiki></code>}}, and to link to a section in another page: {{nowrap|<code><nowiki>[[page name#section name|displayed text]]</nowiki></code>}}.
 
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, append to the linked title _2, _3, and so on, without 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", and so on.
 
The section title in fact points to an anchor on the target page. It [[Wikipedia:Manual_of_Style/Linking#Piped_links_to_sections_of_articles|may be preferable]] to define [[Template:Anchor|anchors other than explicit section titles]], using the [[HTML]] {{nowrap|code <code><nowiki><span id="anchor_name">...</span></nowiki></code>}}, or {{nowrap|<code><nowiki>{{Anchor|anchor name}}</nowiki></code>}} (see {{tl|Anchor}} syntax). To create an anchor for a row of a table see [[Help:Table#Section link to a row]]. However <code><nowiki>[[#top]]</nowiki></code> and <code><nowiki>[[#toc]]</nowiki></code> are reserved names that link to the top of a page and the table of contents, respectively.
 
Section links still work if the wikilink is a [[Help:Redirect|redirect]]. For example, if [[Danzig]] redirects to [[Gdańsk]], then [[Danzig#History]] will link to the "History" section of the article Gdańsk. It is also possible to put section links inside redirects (these work only if JavaScript is enabled). For example, [[Wikipedia:Section link]] redirects to [[Help:Link#Section linking (anchors)]] using <code><nowiki>#redirect</nowiki></code> processing. Note that an explicit section link overrides any section link in a redirect, so [[Wikipedia:Section link#Interwiki links]] will go to the "Interwiki links" section of this page.
 
For more information, see [[Help:Section]]. See also [[WP:TARGET]].
 
Anchor links can also be added to external URLs and to interwiki links, again using the # syntax. Note that if the page name is automatically converted, then the section link still works, but disappears from the address bar (this makes it more difficult to bookmark the section itself).
 
== Subpage links ==
 
A [[Help:subpage|subpage]] is an acceptable construct, except not in article space, but it is acceptable in article talk space. When this happens, links to and from a subpage are very convenient, even if there is an entire array of subpages in a tree-like structure. The convenience is that rather than requiring a page name in the link, a ''relative'' reference to its ''parent'' page is denoted "<code><big>..</big></code>" in a wikilink on that (''child'') subpage, and a closing "<code><big>/</big></code>" is required. The link will display the actual page name, not the dots.
 
For example, a {{search link|Prefix: Wikipedia: Manual of style/|search for subpages of}} the ''Manual of style'' shows that it has a total of 138 subpages. But these are arranged in a subpage-tree structure, having 97 branches, 35 of which have two subpages, and 5 of which have three subpages. Surely these six pages of the ''Manual of style'' are interlinked using the subpage links as in the table that follows. <br />
<blockquote>Wikipedia:Manual of Style<mark>/</mark>Accessibility <br />
Wikipedia:Manual of Style<mark>/</mark>Accessibility<mark>/</mark>Data tables tutorial <br />
Wikipedia:Manual of Style<mark>/</mark>Accessibility<mark>/</mark>Signatures <br />
Wikipedia:Manual of Style<mark>/</mark>Accessibility<mark>/</mark>Data tables tutorial<mark>/</mark>Internal guidelines <br /></blockquote>
 
Given the seven page names Fullpagename/A/B/C plus Fullpagename/S/T/V:
 
{| class="wikitable"
|-
! On page !! Wikilink !! Displays !! Description
|-
| Fullpagename/A/B || <big><code><nowiki>[[../]]</nowiki></code></big> || <span style="color: #0645AD">Fullpagename/A</span>|| Parent
|-
| Fullpagename/A/B/C|| <big><code>[[../../]]</code></big> || <span style="color: #0645AD">Fullpagename/A</span> || Grandparent
|-
| Fullpagename/A/B|| <big><code><nowiki>[[/C]]</nowiki></code></big> || <span style="color: #0645AD">/C</span>|| Child
|-
| Fullpagename/A/B|| <big><code><nowiki>[[/C/]]</nowiki></code></big> || <span style="color: #0645AD">C</span>|| Child
|-
| Fullpagename/A|| <big><code><nowiki>[[../S]]</nowiki></code></big> || <span style="color: #0645AD">Fullpagename/S</span>|| Sibling
|-
| Fullpagename/A|| <big><code><nowiki>[[../S/]]</nowiki></code></big> || <span style="color: #0645AD">S</span>|| Sibling
|-
| Fullpagename/A/B|| <big><code><nowiki>[[../../S/T]]</nowiki></code></big> || <span style="color: #0645AD">Fullpagename/S/T</span>|| Cousin
|}
 
Linking to a section heading or {{tl|anchor}} also works. The syntax is <big><code><nowiki>[[</nowiki>''..''/#''Section name'']]</code></big>.
 
Because any [[WP:AT|title can have]] a "/" in it, it is not clear from a {{nowrap|title ''Page name/a/b/c/d''}} whether {{nowrap|''Page name/a/b/c''}} has one or two ''parent'' pages (unless the search / navigation box is used). {{what}} Where an article title ''starts'' with the "/" character, the workaround uses the {{nowrap|syntax <big><code><nowiki>[[:</nowiki>''Page name'']]</code></big>}}, where the first character of the page name is "/". (An initial colon is ''always'' allowed in links to, and inclusions from, article namespace to denote "mainspace". Use only when needed.)
 
For more information:
* The process of ''creating'' a subpage is described at ''[[Help:Red link]]''.
* See [[m:Help:Link#Subpage feature]].
* See also the example pages [[m:Link/a/b]] and [[m:Help:Link/a/b]].
 
== ISBN, RFC and PMID automatic links ==
{{details|Help:Magic links}}
 
Key words ISBN, PMID and RFC will generate internal or external links automatically:
 
{| class="wikitable"
|-
! What you type !! How it renders !! Description
|-
| <code><nowiki>ISBN 978-0-12-345678-9</nowiki></code> || ISBN 978-0-12-345678-9
| An internal [[Wikipedia:ISBN|ISBN]] link to [[Special:Booksources/9780123456789]]
|-
| <code><nowiki>RFC 4321</nowiki></code>|| RFC 4321
| A [[Request for Comments]] externally linked to http://tools.ietf.org/html/rfc4321
|-
| <code><nowiki>PMID 12345678</nowiki></code>
| PMID 12345678|| A [[PubMed]] document externally linked to http://www.ncbi.nlm.nih.gov/pubmed/12345678?dopt=Abstract
|}
 
To prevent such automatic linking, use an {{xtag|nowiki|s}} between the identifier and the value or a [[WP:NBSP|non breaking space]].
 
== Piped link ==
 
A '''piped link''' is an internal [[Help:Link|link]] or [[Help:Interwiki linking|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. 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 [[Help:Preferences|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:
 
<code><nowiki>[[coffeehouse setup|How to set up a coffee house]]</nowiki></code> <br />
will show: [[coffeehouse setup|How to set up a coffee house]]
 
Another example would be <code><nowiki>[[train station|station]]</nowiki></code> rendering as [[train station|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 an other use of it; see [[w:en:Pipe (computing)|Pipe (computing)]].
 
=== Using a redirect as alternative ===
 
An alternative to a piped link is simply using [[Help:Redirect|redirect pages]]. To create [[How to set up a coffee house]], use <code><nowiki>[[How to set up a coffee house]]</nowiki></code> 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
* "[[Help:Related changes|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, f.e. the following pipe to a redirect <code><nowiki>[[United Nations Organization|UNO]]</nowiki></code> will display a tooltip "United Nations Organization" when hovering over [[United Nations Organization|UNO]], thereby explaining the abbreviation.
 
=== Automatic conversion of the wikitext ===
 
==== Pipe trick ====
{{See also|Help:Pipe trick}}
 
If in a piped link the part after the "|" is left empty, it is [[Help:Automatic conversion of wikitext|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 <code>subst</code>, 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.
 
===== Examples =====
 
====== Colon ======
 
* <code><nowiki>[[Help:Template|]]</nowiki></code> is converted to <nowiki>[[Help:Template|Template]]</nowiki>, which is rendered as [[Help:Template|Template]].
* <code><nowiki>[[Music: My life|]]</nowiki></code> is converted to <nowiki>[[Music: My life| My life]]</nowiki>, which is rendered as [[Music: My life| My life]] — although "Music:" is not a namespace (therefore the space after the colon is not automatically removed), the shortcut works anyway.
* <code><nowiki>[[w:en:Pipe (computing)|]]</nowiki></code> is converted to <nowiki>[[w:en:Pipe (computing)|en:Pipe]]</nowiki>, which is rendered as [[w:en:Pipe (computing)|en:Pipe]].
 
====== Case ======
* <code><nowiki>[[pipe (computing)|]]</nowiki></code> is converted to <nowiki>[[pipe (computing)|pipe]]</nowiki> which is rendered as [[pipe (computing)|pipe]].
* <code><nowiki>[[Pipe (computing)|]]</nowiki></code> is converted to <nowiki>[[Pipe (computing)|Pipe]]</nowiki> which is rendered as [[Pipe (computing)|Pipe]].
 
====== Comma ======
* <code><nowiki>[[commons:Boston, Massachusetts|]]</nowiki></code> is converted to <nowiki>[[commons:Boston, Massachusetts|Boston]]</nowiki>, which is rendered as [[commons:Boston, Massachusetts|Boston]].
 
====== Other ======
 
[[Help:Templates#Parameters|Parameters]] and [[Help:magic words#Variables|variables]]:
 
*<code><nowiki>[[w:{{{1}}}|]]</nowiki></code> does ''not'' give <nowiki>[[w:{{{1}}}|{{{1}}}]]</nowiki>.
*: Calling the template with a value of parameter 1 gives a working link in the case of substitution only.
*<code><nowiki>[[w:en:{{FULLPAGENAME}}|]]</nowiki></code> does ''not'' give <nowiki>[[w:en:{{FULLPAGENAME}}|en:{{FULLPAGENAME}}]]</nowiki>.
*: <code><nowiki>[[m:{{FULLPAGENAME}}|]]</nowiki></code> does ''not'' give <nowiki>[[m:{{FULLPAGENAME}}|{{FULLPAGENAME}}]]</nowiki>
See also [[#Limitation|Limitation]] further.
 
<pre>
* [[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}}]]
</pre>
 
Which looks like:
 
* [[project:a (b)|a]]
* [[w:project:a (b)|project:a]]
* [[:de:project:a (b)|project:a]]
* [[wiktionary:project:a (b)|project:a]]
* [[wiktionary:de:project:a (b)|de:project:a]]
* [[wikibooks:project:a (b)|project:a]]
* [[wikiquote:project:a (b)|project:a]]
* [[wikisource:project:a (b)|project:a]]
* [[w:en:{{FULLPAGENAME}}|]]
** [[w:en:{{FULLPAGENAME}}|en:{{FULLPAGENAME}}]]
* [[m:{{FULLPAGENAME}}|]]
** [[m:{{FULLPAGENAME}}|{{FULLPAGENAME}}]]
 
===== 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.
 
==== Limitation ====
* <code><nowiki>[[Help:L{{tc}}k|]]</nowiki></code> using {{links-small|template|tc}} is not converted, so the result is rendered as [[Help:L{{tc}}k|]] and not as a working link. This is because the pipe trick expansion, like substitution, occurs before ordinary expansion of templates, etc., while the pipe trick does not work if the linked page contains invalid characters. Thus, while ordinarily the acceptability of the target page name is judged after template expansion, the pipe trick expansion judges it before, the braces are considered invalid characters in the page name. Instead one can use a template like {{links-small|template|pipe trick}}: <code><nowiki>{{pipe trick|Help:|L{{tc}}k}}</nowiki></code> gives {{pipe trick|Help:|L{{tc}}k}}. {{what}}
 
==== Inverse pipe trick ====
 
On page "A (c)", <code><nowiki>[[|b]]</nowiki></code> is automatically converted to <nowiki>[[b (c)|b]]</nowiki>.
 
Similarly, on page "A, c", <code><nowiki>[[|b]]</nowiki></code> is automatically converted to <nowiki>[[b, c|b]]</nowiki>.
 
[[Help:Pipe_trick#Reverse_pipe_trick|For examples, see here.]]
 
== Changing link appearance ==
 
The ways that various links are displayed in browsers, as described above, are the default display styles in the default [[WP:Skin|skin]]. Users can change the way they see links:
* By selecting a different skin.
* By applying a [[Help:User style|user style]] using CSS.
* By changing the "Underline links" or "Format broken links like this" value on the Appearance tab of [[Help:Preferences|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]] <code>title</code> 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 [[Help:Preferences|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 {{tl|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 [[Help:Special characters|non-literal characters]] in wiki and interwiki links. For example, "<code><nowiki>[[Help:Page%20name]]</nowiki></code>" 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".
 
A code like <code>%70</code> 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 <code>&action=edit</code> or <code>&redirect=no</code> 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 [[Help:Magic words|magic word]] '''fullurl''' as it would appear in a template constructed to append <code>action=edit</code> 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.
 
== Links to and from a page ==
 
To list pages which link ''to'' the current page (backlinks), use the [[Help:What links here|What links here]] feature. The {{tl|orphan}} tag can be placed on pages with no incoming links.
 
To make the current page show up at "What links here" for a certain other page without creating a working link to that other page, use a link with a space following the pipe, as in <code><nowiki>[[Main page| ]]</nowiki></code>.
 
To list all pages which are linked ''from'' a particular page, enter the following URL, using the page title (with spaces replaced by underscores) in place of PAGENAME:
 
<pre>http://en.wikipedia.org/w/api.php?action=query&prop=links&pllimit=500&titles=PAGENAME</pre>
 
The number of links returned is limited to 500.
 
== Additional link-related functions ==
 
For the effect that links have on date formatting, see [[Help:Date formatting and linking]].
 
Another link-dependent feature is [[Help:Related changes|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|tl}} and {{tl|tlx}} for linking to templates, and {{tl|cl|}} and {{tl|lc}} for linking to categories. More can be found in [[:Category:Internal link templates]].
 
== Conversion to [[canonical form]] ==
 
{{See|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 [[Help:Namespace|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 reference]]s and [[percent encoding|percent-encoded]] characters are replaced with their raw character. For example, <code><nowiki>[[d&amp;eacute;partement]]</nowiki></code> produces [[d&eacute;partement]], and <code><nowiki>[[%40]]</nowiki></code> produces [[%40]]. Links which resolve to [[Help:Page name#Invalid page names|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 [[Help:Transclusion|transclusion]] tags for non-existent pages: <code><nowiki>{{qwsazx}}</nowiki></code> gives {{qwsazx}}.
* In tooltips and in the status bar (if applicable for the browser) when the mouse cursor is moved over the link.
* On [[Help:Redirect|redirect]] pages.
* In the [[WP:Category|category]] box.
 
The prefixes in [[Help:Interwiki linking|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).
 
== See also ==
* [[Help:Link color]]
* [[Help:Pipe trick]]
* [[User:Edward/Find link|Find link tool]]
** [[mw:Help:Links|MediaWiki help page on links]]
** [[:m:Clean linking|Clean linking]]
 
{{Help navigation}}
 
[[Category:Wikipedia link help]]

සංස්කරණ

21,815

ක්

"https://si.wikipedia.org/wiki/විශේෂ:MobileDiff/343984" වෙතින් සම්ප්‍රවේශනය කෙරිණි