DokuWiki

It's better when it's simple

User Tools

Site Tools


link

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
link [2022-02-27 19:01] – Use the playground to try the wiki bactramlink [2024-01-17 11:29] (current) – old revision restored (2023-02-09 09:47) Aleksandr
Line 1: Line 1:
 +====== Links ======
 +
 +If a link in a wiki is nothing more or less than any other link on any other HTML page on the web, the linking system within a wiki, and especially [[DokuWiki]], is quite an important feature.
 +
 +You can create several type of links within DokuWiki, the [[wiki:syntax#Links]] section of the syntax page will give you an example of it. However, here we will distinguish two types of links, the [[#internal link]] and the [[#external link]].
 +
 +===== Link syntax =====
 +
 +The link syntax is explained within the syntax [[wiki:syntax#Links]] section. The page to pages is explained at [[pagename]] and [[namespaces]].
 +
 +===== Link types =====
 +
 +==== Internal link ====
 +
 +An internal link is a link to a page that is within your own DokuWiki installation. For example, this is an internal [[link]]. Creating such a link will of course create an HTML link to the linked page, however it will also inform the linked page that some other page is linking to it. This feature is called [[backlink]]. A page that has no backlink is called an [[backlink#orphan]].
 +
 +You can make a link to page in //namespace// with name //page// and link to section //here// using a //title// like this:
 +  [[namespace:page#here|title]]
 +
 +Namespace and section links and title are optional.
 +  [[page]] displays the text "page" for the link.
 +  
 +Note that titles are very desirable when using long page names or long link addresses in general.  The title should be human readable.  For example, links cannot contain spaces (instead replace white space by underscore), but titles can.
 +
 +=== Section link ===
 +
 +Inside a wiki, the links can be made not only on a [[page]] but also on [[page#sections]]. Look at [[wiki:syntax#Internal]] to find out how this is done.
 +
 +=== Existing vs non-existing pages ===
 +
 +When links are edited, they are checked to see if the linked page exists or not. If the page doesn't exist, the link is given a specific style, i.e. [[:red and underlined]] in the default template (see also [[CSS]]).
 +
 +==== External link ====
 +
 +External links have no real extra functions as the sites they link to are external. This is an example of an [[https://github.com/|external link]].
 +
 +==== Interwiki links ====
 +
 +See [[interwiki]].
  
link.1645984895.txt.gz · Last modified: 2022-02-27 19:01 by bactram

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki