Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| doc:links [2026/03/31 06:56] – Simon Grant | doc:links [2026/04/04 18:58] (current) – Simon Grant | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ====== Links ====== | ====== Links ====== | ||
| - | Try out all these techniques below in the [[playground: | + | //Try out all these techniques below in the [[playground: |
| ---- | ---- | ||
| Line 10: | Line 10: | ||
| There are a pair of icons on the toolbar: {{link-icons.png|this is just a demo, don't click here!}} | There are a pair of icons on the toolbar: {{link-icons.png|this is just a demo, don't click here!}} | ||
| - | The one on the left is for internal links – that is, links to other wiki pages – and the one on the right for external links. | + | The one on the left is for internal links – that is, links to other pages in **this** wiki – and the one on the right for external links. |
| - | ==== Internal links to other pages in the wiki ==== | + | ==== Internal links to other pages in this wiki ==== |
| We recommend this as the way to link to existing pages, because of the help that is provided when you click on the internal link icon. A 'Link Wizard' | We recommend this as the way to link to existing pages, because of the help that is provided when you click on the internal link icon. A 'Link Wizard' | ||
| Line 27: | Line 27: | ||
| To create an internal link, you put the [[namespace]] and the page name you want to link to in double square brackets. For example, if you want to link to the page on Alpacas, writing `[[alps: | To create an internal link, you put the [[namespace]] and the page name you want to link to in double square brackets. For example, if you want to link to the page on Alpacas, writing `[[alps: | ||
| - | Some page names are not quite as displayed in the page title. So, for instance, the page with the title " | + | Some page names vary slightly from what is displayed in the page title. So, for instance, the page with the title " |
| | | ||
| The way this works, needing to include the namespace, can be a bit tricky, and is why we recommend using the Wizard as above. | The way this works, needing to include the namespace, can be a bit tricky, and is why we recommend using the Wizard as above. | ||
| ==== External links ==== | ==== External links ==== | ||
| - | + | - An example of the general case is `[[https:// | |
| - | 1. An example of the general case is `[[https:// | + | |
| - | 2. For a few particular cases, especially Wikipedia, there is a nice short cut. For instance, `[[wp> | + | - For Wikipedia, `[[wp> |
| + | - We try not to support Big Tech, but if you really want a Google search, it can be done as `[[google> | ||
| + | - You can refer to DokuWiki' | ||
| ---- | ---- | ||
| Line 45: | Line 47: | ||
| You can use the same idea as in DokuWiki, but with Markdown syntax, like this: | You can use the same idea as in DokuWiki, but with Markdown syntax, like this: | ||
| - | * `[Low-impact | + | * `[Low-impact |
| * `[](alps: | * `[](alps: | ||
| Line 51: | Line 53: | ||
| Using the above example here is is `[P2P Foundation wiki](https:// | Using the above example here is is `[P2P Foundation wiki](https:// | ||
| - | However, the DokuWiki short cuts, to Wikipedia, Google, etc., are not available in Markdown. | + | DokuWiki short cuts, to Wikipedia, Google, etc., are also available in Markdown, with a few more characters. |
| + | |||
| + | `[Commons on Wikipedia](wp> | ||
| ---- | ---- | ||
| Line 57: | Line 61: | ||
| ===== General points about links ===== | ===== General points about links ===== | ||
| + | For all links, you have the option of specifying the link text that is displayed as the link. | ||
| + | * In DokuWiki, put `|link text` directly after the URL and before the `]]`. | ||
| + | * In Markdown, put the link text between the `[` and the `]`. | ||
| ==== Internal links ==== | ==== Internal links ==== | ||
| - | Internal links to pages that exist are currently shown in green, with no extra decoration. Internal links to pages that don't exist are currently shown in [[red]] (there isn't a page called ' | + | Internal links to pages that exist are currently shown in green, with no extra decoration. Internal links to pages that don't exist are currently shown in [[red like this]] (there isn't a page called ' |
| When you create an internal link, the backlinks on the page you link to will include the page you are on at present. You can see this if you go to the examples on this page. When you click on the Backlinks icon on those pages, the list includes `doc: | When you create an internal link, the backlinks on the page you link to will include the page you are on at present. You can see this if you go to the examples on this page. When you click on the Backlinks icon on those pages, the list includes `doc: | ||
| Line 65: | Line 72: | ||
| ==== External links ==== | ==== External links ==== | ||
| - | In general, external links are shown in green, with a globe icon in front of them, unlike internal links that have no extra icon. There is no obvious indication whether the URL linked to has a page or not. You just have to try it and see: if it's not there, you might get a ' | + | In general, external links are shown in green, with a globe icon in front of them, unlike internal links that have no extra icon. There is no obvious indication whether the URL linked to has a page or not. You just have to try it and see: if it's not there, you might get a ' |
| - | When you create an external link, there is no mechanism for creating a backlink, so it's practically impossible to see that you have linked to it. | + | When you create an external link, there is no mechanism for creating a backlink, so it's practically impossible to see from the other page that you have linked to it. |
| ---- | ---- | ||