2016-05-03 02:28:06 +00:00
caption: Linking
2013-12-05 16:21:10 +00:00
created: 20131205155230596
2016-05-03 02:28:06 +00:00
modified: 20160607095245257
2014-09-11 08:15:58 +00:00
tags: WikiText
2013-12-05 16:21:10 +00:00
title: Linking in WikiText
type: text/vnd.tiddlywiki
2014-07-06 14:37:50 +00:00
A key capability of WikiText is the ability to make links to other tiddlers or to external websites.
! Manual Links
2013-12-05 16:21:10 +00:00
2014-05-06 19:05:51 +00:00
Link to a tiddler by title:
```
[[Tiddler Title]]
```
To link to a tiddler and specify the text of the link:
```
[[Displayed Link Title|Tiddler Title]]
```
2016-07-05 17:06:52 +00:00
You can also create a link from the editor toolbar. Click ''link'' ({{$:/core/images/link}}), and search and select a tiddler.
2016-05-03 02:28:06 +00:00
2014-07-06 14:37:50 +00:00
! ~CamelCase Links
For tiddler titles that match the CamelCase rules, just typing the title without double square brackets will automatically create a link.
You can suppress a link from being recognised by preceding it with `~`. For example:
<<wikitext-example src:"* ~HelloThere is not a link
* ~http://google.com/ is not a link">>
! External Links
2014-05-06 19:05:51 +00:00
2015-04-03 03:11:37 +00:00
To link to an external [[resource|https://en.wikipedia.org/wiki/Web_resource]] such as a website or a file, type its //full// [[URL|https://en.wikipedia.org/wiki/URL]], including the [[URI scheme|https://en.wikipedia.org/wiki/URI_scheme]] such as a protocol (e.g. `http://`, `file://`) or `mailto`:
2014-05-06 19:05:51 +00:00
```
2017-11-11 11:56:20 +00:00
https://tiddlywiki.com/
2014-05-06 19:05:51 +00:00
2017-11-11 11:56:20 +00:00
[[TW5|https://tiddlywiki.com/]]
2015-04-03 03:11:37 +00:00
[[Mail me|mailto:me@where.net]]
```
2016-05-03 02:28:06 +00:00
For this syntax to work, the URL has to be recognisable as a URL. Otherwise, it is treated as a tiddler title. As a result, in case you want to link to a resource locatable using a relative path, use the extended syntax:
2015-04-03 03:11:37 +00:00
```
[ext[Open file|index.html]]
[ext[Open file|./index.html]]
[ext[Open file|../README.md]]
2014-05-06 19:05:51 +00:00
```
2015-04-03 03:11:37 +00:00
The extended syntax still works with full URLs, although in that case it is not necessary:
2014-05-06 19:05:51 +00:00
```
2017-11-11 11:56:20 +00:00
[ext[https://tiddlywiki.com]]
2014-05-06 19:05:51 +00:00
2017-11-11 11:56:20 +00:00
[ext[TW5|https://tiddlywiki.com]]
2015-04-03 03:11:37 +00:00
```
2014-05-06 19:05:51 +00:00
2015-04-03 03:11:37 +00:00
You can also use the extended syntax to force an external link:
```
2014-05-06 19:05:51 +00:00
[ext[Donate|bitcoin:1aabbdd....?amount=0.001]]
```
2013-12-05 16:21:10 +00:00
2014-07-06 14:37:50 +00:00
! Customising Tiddler Links
See the LinkWidget for details of the underlying widget used to implement tiddler links, including macros that can be used to customise its behaviour.
2013-12-05 16:21:10 +00:00