Différences entre versions de « Help/Links »

De Rich Annotator System
Ligne 36 : Ligne 36 :
  
 
[[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 du 25 octobre 2020 à 16:20

There are four types of hypertext links:

  1. Internal links to other pages in the Rich Annotator System
  2. External links to pages at other websites
  3. External links to internal pages in the Rich Annotator System
  4. 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 Help/Categories.

Visible link to an image or media file:



Back to contents