Links

Put straight quotation marks around the link text, followed immediately by a colon and the URL of the link.

Textile example: Links

"Wikipedia":https://en.wikipedia.org/

Textile input (editable)

Browser output

HTML output


More about: Links

1. A local link:

"link text":/example

2. A link with a title attribute:

"link text(with title)":https://example.com/

3. An email link:

"(classname)link text(title tooltip)":mailto:someone@example.com

4. Combine with a link with an image link:

!carver.png!:https://textpattern.com/

5. Usage of a link alias:

This is "a link to Textpattern":txp, and "another link":txp to the same site.

[txp]https://textpattern.com/

6. If you wish to link to a URL and want the URL itself in the text, you can use the following ‘dollar’ shorthand:

"$":https://textpattern.com/start

7. Class names can be added in parentheses before the link (requires Textile v2.5.1 or later):

"(various fancybox.iframe)Cats and cheese":https://example.com/video/cheesecatvideo?autoplay=1

8 For links and URLs containing parentheses, such as https://fr.wikipedia.org/wiki/Page_(livre) you have to use a combination of HTML and HEX codes, like so:

"https://fr.wikipedia.org/wiki/Page_(livre)":http://fr.wikipedia.org/wiki/Page_%28livre%29

9. In cases where note references – or other markup – directly follow links, the alternative, more Markdown-like link format can be used:

["Roses":https://example.com][#red]

The same also works for spans and other inline markup:

%["red":https://example.com].%

Further reading: Links

  1. MDN: The HTML <a> element

See something wrong in this page? Outdated info, a broken link, faulty code example, or whatever? Please write an issue and we’ll fix it.