Différences entre versions de « Help/Links »

De Rich Annotator System
 
(5 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
 
__NOTOC__
 
__NOTOC__
There are four types of hypertext links:
+
There are basically three types of hypertext links:
# '''Internal links''' to other pages in the Rich Annotator System
+
# '''[[#Internal links|Internal links]]''' to other pages of the Rich Annotator System
# '''External links''' to pages at other websites
+
# '''[[#External links|External links]]''' to pages at other websites
# '''External links to internal pages''' in the Rich Annotator System
 
 
# '''[[Help/Interlanguage links|Interlanguage links]]''' to other pages registered as different language versions of the current page
 
# '''[[Help/Interlanguage links|Interlanguage links]]''' to other pages registered as different language versions of the current page
 
Please note that this list does not include [[Help/Categories|category links]] and [[Help/Images|file links]], which are used to place pages into categories and display images or other media files, respectively.
 
Please note that this list does not include [[Help/Categories|category links]] and [[Help/Images|file links]], which are used to place pages into categories and display images or other media files, respectively.
Ligne 27 : Ligne 26 :
 
To link to an anchor at another page, use e.g. <code><nowiki>[[Help/Formatting#VisualEditor|VisualEditor]]</nowiki></code>, which gives [[Help/Formatting#VisualEditor|VisualEditor]].
 
To link to an anchor at another page, use e.g. <code><nowiki>[[Help/Formatting#VisualEditor|VisualEditor]]</nowiki></code>, which gives [[Help/Formatting#VisualEditor|VisualEditor]].
  
Visible link to a '''category page''': <code><nowiki>[[:Category:Help]]</nowiki></code>. Without the leading colon the link would not be visible and the page would instead be placed into the category; this is a very common mistake. See also [[Help/Categories]].
+
Visible link to a '''category page''': <code><nowiki>[[:Category:Help]]</nowiki></code>, which gives [[:Category:Help]]. Without the leading colon the link would not be visible and the page would instead be placed into the category; this is a very common mistake. See also [[Help/Categories|Categories]].
  
Visible link to an '''image''' or '''media file''':
+
Visible link to an '''image''' or '''media file''': <code><nowiki>[[:File:Example.jpg]]</nowiki></code>. Without the leading colon on the "File:" examples, the images would actually be displayed. See also [[Help/Images|Images]].
  
  
 +
====External links====
 +
To create an external link, usually to a page at a different website, enclose the URL followed by space and the link text in single square brackets (see examples below). When you save or preview the page, you will see a link rendered slightly differently than an internal wikilink: it will be a slightly different color and followed by an arrow icon to show that it leads to another site.
 +
{| class="wikitable" style="text-align:left;"
 +
! Description !! You type !! You get
 +
|-
 +
| External link with specified link text || <code><nowiki>[https://ras.ppke.hu Rich Annotator System]</nowiki></code> || [https://ras.ppke.hu Rich Annotator System]
 +
|-
 +
| Numbered external link || <code><nowiki>[https://ras.ppke.hu]</nowiki></code><div style="background:#f6efe5; border: 1px solid #ac6600; padding: 8px; margin: 8px 0 8px 0;">{{#far:bell}} This is what happens if you omit the link text. Multiple links of this type on the same page are numbered sequentially.</div> || [https://ras.ppke.hu]
 +
|-
 +
| Bare external link || <code><nowiki>https://ras.ppke.hu</nowiki></code><div style="background:#f6efe5; border: 1px solid #ac6600; padding: 8px; margin: 8px 0 8px 0;">{{#far:bell}} URLs beginning with "<code><nowiki>http://</nowiki></code>" and "<code><nowiki>https://</nowiki></code>" are automatically linked, even when no brackets are used.</div> || https://ras.ppke.hu
 +
|-
 +
| Avoiding auto-linked URLs || <code><nowiki><nowiki>https://ras.ppke.hu</nowiki></nowiki></code> || <nowiki>https://ras.ppke.hu</nowiki>
 +
|}
  
 +
 +
====See also====
 +
[[Help/Interlanguage links|Interlanguage links]]
  
  
 
[[User help|{{#fas:caret-left}} Back to contents]]
 
[[User help|{{#fas:caret-left}} Back to contents]]
 
+
[[Category:Help]]
 
{{interlanguagelink:en|Help-Links}}
 
{{interlanguagelink:en|Help-Links}}

Version actuelle datée du 2 novembre 2020 à 17:57

There are basically three types of hypertext links:

  1. Internal links to other pages of the Rich Annotator System
  2. External links to pages at other websites
  3. Interlanguage links to other pages registered as different language versions of the current page

Please note that this list does not include category links and file links, which are used to place pages into categories and display images or other media files, respectively.

Internal links

To create a so-called internal link to a page in the Rich Annotator System, use double square brackets wiki markup, [[like this]]. When you preview or save your changes, you will see a link that can be followed to the target page. If the page exists the link is displayed in blue; if the page does not exist, the link appears red. Following such a "redlink" to a missing page will usually enable the user to create the page.

To markup any arbitrary string of text (not necessarily a page title) as a link, use a "vertical bar" or "pipe" character, like this: [[Help/Categories|category links]] results in the link category links.

If the page title you are linking to is that of the page you are editing, the result is not a hyperlink at all but simply bold text (for example, on this page the markup [[Help/Links]] gives the result Help/Links).

If you want to link to a specific section or to an anchor within the same page, use the # symbol, like this: [[#External links]], which gives #External links.

Anchors are provided automatically on section headings and to the top of the page.

You can also set an anchor for incoming links:

  • <div id="Unique anchor name 1">optional text</div>, rendered block-level;
  • <span id="Unique anchor name 2">optional text</span>, rendered inline.

Doing this would allow for [[#Unique anchor name 1]] on the same page or [[Help/Links#Unique anchor name 1]] on a different page. Omit the "optional text" for an invisible anchor.

You can set an anchor in a section heading: ==<span id="Alternate Section Title"></span>Section heading==. Note the placement. This must be a "span" tag, not a "div". (Such anchors allow sections to be retitled without breaking incoming links.)

To link to an anchor at another page, use e.g. [[Help/Formatting#VisualEditor|VisualEditor]], which gives VisualEditor.

Visible link to a category page: [[:Category:Help]], which gives Category:Help. Without the leading colon the link would not be visible and the page would instead be placed into the category; this is a very common mistake. See also Categories.

Visible link to an image or media file: [[:File:Example.jpg]]. Without the leading colon on the "File:" examples, the images would actually be displayed. See also Images.


External links

To create an external link, usually to a page at a different website, enclose the URL followed by space and the link text in single square brackets (see examples below). When you save or preview the page, you will see a link rendered slightly differently than an internal wikilink: it will be a slightly different color and followed by an arrow icon to show that it leads to another site.

Description You type You get
External link with specified link text [https://ras.ppke.hu Rich Annotator System] Rich Annotator System
Numbered external link [https://ras.ppke.hu]
This is what happens if you omit the link text. Multiple links of this type on the same page are numbered sequentially.
[1]
Bare external link https://ras.ppke.hu
URLs beginning with "http://" and "https://" are automatically linked, even when no brackets are used.
https://ras.ppke.hu
Avoiding auto-linked URLs <nowiki>https://ras.ppke.hu</nowiki> https://ras.ppke.hu


See also

Interlanguage links


Back to contents