summaryrefslogtreecommitdiff
path: root/TWiki/TextFormattingRules.mdwn
blob: 3c0aa3ca93f3aaa7a097cd782e7fbb3ec75e511c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
It is easy to collaborate, just type your text. You don't need to know HTML at all, though you can use it if you prefer. Links to topics will be created automatically as long as you follow these simple Text Formatting Rules. [[TextFormattingFAQ]] has answers to frequently asked questions about text formatting.

**LINKS**

The Collaborative Work Area is a bunch of related links that are editable through your web browser.

The %WIKITOOLNAME% web has the following types of **_internal links:_**

* [[GoodStyle]] is a [[WikiWord]] that links to the GoodStyle topic located in the current %WIKITOOLNAME% web.
* [[NotExistingYet]] is a topic waiting to be written. You could create that topic by clicking on the question mark. (Do not create that topic, you would wreck this example!)

**_External links:_**

* `http://...`, `https://...`, `ftp://...` and `mailto:...@...` are linked automatically.
* Email addresses like `name@domain.com` are linked automatically.

**EDITING**

* CapitalizedWordsStuckTogether (or [[WikiWords]]) will produce a link automatically. In case you want to link to a topic in a different %WIKITOOLNAME% web write `Web.TopicName`, i.e. write `Know.ReadmeFirst` to link to [[Know/ReadmeFirst]] located in the Know web.
* You can create a forced internal link by enclosing words in double square brackets, i.e. write <code>[[text formatting FAQ]]</code> to get [[TextFormattingFAQ]] that links to topic [[TextFormattingFAQ]]. Text within the brackets may contain optional spaces; the topic name is formed by capitalizing the initial letter and by removing the spaces. You can also refer to a different web, i.e. <code>[[%MAINWEB%.TWiki users]]</code> points to %MAINWEB%.TWikiUsers in the %MAINWEB% web.
* Blank lines will create new paragraphs.
* Words get **bold** by enclosing them in **\*** asterisks
* Words get _italic_ by enclosing them in **\_** underscores
* Words get **_bold italic_** by enclosing them in **\_\_** double-underscores
* Words get shown in `fixed font` by enclosing them in = equal signs
* Note for **bold** , _italic_ , **_bold italic_** and `fixed font` text:
  * Make sure to "stick" the `* _ =` signs to the characters, e.g.
    * _This works_
    * \_This does not get italic because there is a space between the last word and the underline character \_
  * Example text to enter:
    * Writing \*bold text\* , \_italic text\_ and =fixed== monospaced text
  * Example text gets rendered as:
    * Writing **bold text** , _italic text_ and `fixed=` monospaced text
* Separator: at least four dashes at the beginning of a line: &lt;--------&gt;
* List Item: 3 spaces and an asterisk: &lt;   \*&gt;
* Nested Item: 6 spaces and an asterisk: &lt;      \*&gt;
* Ordered List: 3 spaces and a number: &lt;   1&gt;
* Definition: 3 spaces, the term, a colon, followed by the definition.
* Table: Optional spaces followed by the cells enclosed in vertical bars: &lt;   | cell 1 | cell 2 | cell 3 | ... |&gt;

**HTML**

Most HTML tags will work, but it's almost always preferable not to use HTML, so that the markup remains easy for everyone to edit.

* Overview of all HTML elements at <http://www.htmlhelp.com/reference/wilbur/overview.html>
* HTML 3.2 Reference Specification at <http://www.w3.org/TR/REC-html32.html>

**WIKI VARIABLES**

Variables are names that are enclosed in percent signs; they get expanded on the fly.

* <code>%WEB%</code> : The current web, is **%WEB%** .
* <code>%TOPIC%</code> : The current topic name, is **%TOPIC%** .
* <code>%ATTACHURL%</code> : The attachment URL of the current topic. Example usage: If you attach a file to a topic you can refer to it as <code>**%ATTACHURL%/image.gif**</code> to show the URL of the file or the image in your text.
* <code>%INCLUDE\{"SomeTopic"\}%</code> : Server side include, includes another topic. The current %WIKITOOLNAME% web is the default web. Example: <code>**%INCLUDE\{"%TWIKIWEB%.TWikiWebsTable"\}%**</code>
* There are many more variables, see [[TWikiVariables]].