1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-09 03:19:56 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/workingwithtw/Formatting text in TiddlyWiki.tid

56 lines
1.8 KiB
Plaintext
Raw Normal View History

2014-09-12 15:54:32 +00:00
created: 20140908131500000
2014-09-19 22:02:03 +00:00
modified: 20140919214820549
2014-09-10 20:56:54 +00:00
tags: [[Working with TiddlyWiki]]
2014-09-12 15:54:32 +00:00
title: Formatting text in TiddlyWiki
type: text/vnd.tiddlywiki
2014-09-19 20:56:07 +00:00
Within the text of a tiddler you can use special formatting called WikiText to control how the text is displayed.
2014-09-19 22:02:03 +00:00
! Simple Formatting
At its simplest, WikiText lets you use familiar word-processing features like bold, italic, lists and tables. For example:
```
The ''quick'' brown ~~flea~~ fox //jumps// over the `lazy` dog
```
2014-12-22 17:05:08 +00:00
… displays as:
2014-09-19 22:02:03 +00:00
The ''quick'' brown ~~flea~~ fox //jumps// over the `lazy` dog
! Working with Tiddlers
2014-12-22 17:05:08 +00:00
In WikiText, you can link to tiddlers using double square brackets, or by taking advantage of the automatic linking of CamelCase words:
2014-09-19 22:02:03 +00:00
```
This is a link to HelloThere, and one to [[History of TiddlyWiki]]
```
2014-12-22 17:05:08 +00:00
… displays as:
2014-09-19 22:02:03 +00:00
This is a link to HelloThere, and one to [[History of TiddlyWiki]]
! Macros
Macros let you package repetitive fragments of WikiText so that you can easily reuse them.
2014-12-22 17:05:08 +00:00
For example, here is the definition of a macro that generates a ~YouTube video URL from its unique identifier:
2014-09-19 22:02:03 +00:00
```
\define youtube(video)
https://www.youtube.com/watch?v=$video$
\end
```
With that definition in place, `<<youtube 1g66s7UbyuU>>` generates the URL https://www.youtube.com/watch?v=1g66s7UbyuU
! Advanced WikiText
Advanced WikiText features allow you to produce automated lists and interactive features like dropdown menus. In fact, the entire user interface of TiddlyWiki itself is written in WikiText, so any feature that you see in TiddlyWiki can be adapted for use in your own wikis.
Some of the advanced features require complex coding. TiddlyWiki includes several built-in macros that simplify common user interface tasks, like tabs, tables of content, and lists of tiddlers.
! Find out more
See [[WikiText]] for a detailed introduction to writing WikiText.