%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.0" version="48"}% %TOC{depth="4"}% %STARTINCLUDE% ---# TWiki Text Formatting Working in TWiki is as easy as typing in text. You don't need to know HTML, though you can use it if you prefer. Links to topics are created automatically when you enter WikiWords. And TWiki shorthand gives you all the power of HTML with a simple coding system that takes no time to learn. It's all laid out below. #TWikiShorthand ---++ TWiki Editing Shorthand %TABLE{}%
| Formatting Command: | You write: | You get: |
|---|---|---|
| *Paragraphs:* %BR% Blank lines will create new paragraphs. |
| 1st paragraph 2nd paragraph |
|
*Headings:* %BR%
Three or more dashes at the beginning of a line, followed by plus signs and the heading text. One plus creates a top level heading, two pluses a second level heading, etc. The maximum heading depth is 6.
You can create a table of contents with the [[TWikiVariables#VarTOC][% |
|
SushiMaguroNot in TOC |
| *Bold Text:* %BR% Words get shown in *bold* by enclosing them in =*= asterisks. |
| *Bold* |
| *Italic Text:* %BR% Words get shown in _italic_ by enclosing them in =_= underscores. |
| _Italic_ |
| *Bold Italic:* %BR% Words get shown in __bold italic__ by enclosing them in =__= double-underscores. |
| __Bold italic__ |
|
*Fixed Font:* %BR%
Words get shown in =fixed font= by enclosing them in = |
| =Fixed font= |
|
*Bold Fixed Font:* %BR%
Words get shown in ==bold fixed font== by enclosing them in == |
| ==Bold fixed== |
| %T% You can follow the closing bold, italic, or other (=* _ __ = ===) indicator with normal punctuation, such as commas and full stops. %X% Make sure there is no space between the text and the indicators. |
| _This works_,%BR% _this does not _ |
| *Verbatim (Literal) Text:* %BR% Surround code excerpts and other formatted text with =<verbatim>= and =</verbatim>= tags.%BR% %T% =verbatim= tags disable HTML code. Use =<pre>= and =</pre>= tags instead if you want the HTML code within the tags to be interpreted.%BR% __%X% NOTE:__ Preferences variables (* Set NAME = value) are set within verbatim tags. |
}
}
|
}
}
|
| *Separator (Horizontal Rule):* %BR% Three or more three dashes at the beginning of a line.. |
| ------- |
| *Bulleted List:* %BR% Multiple of three spaces, an asterisk, and another space.%BR% %H% For all the list types, you can break a list item over several lines by indenting lines after the first one by *at least 3 spaces*. |
| * level 1 * level 2 * back on 1 * A bullet broken over three lines * last bullet |
| *Numbered List:* %BR% Multiple of three spaces, a type character, a dot, and another space. Several types are available besides a number: | *Type* | *Generated Style* | *Sample Sequence* | | 1. | Arabic numerals | 1, 2, 3, 4... | | A. | Uppercase letters | A, B, C, D... | | a. | Lowercase letters | a, b, c, d... | | I. | Uppercase Roman Numerals | I, II, III, IV... | | i. | Lowercase Roman Numerals | i, ii, iii, iv... | |
| 1. Sushi 1. Dim Sum 1. Fondue A. Sushi A. Dim Sum A. Fondue i. Sushi i. Dim Sum i. Fondue |
| *Definition List:* %BR% Three spaces, a dollar sign, the term, a colon, a space, followed by the definition. |
| $ Sushi: Japan $ Dim Sum: S.F. |
|
*Table:* %BR%
Each row of the table is a line containing of one or more cells. Each cell starts and ends with a vertical bar '|'. Any spaces at the beginning of a line are ignored.
* =| |
| | *L* | *C* | *R* | | A2 | B2 | C2 | | A3 | B3 | C3 | | multi span ||| | A5-7 | 5 | 5 | |^| six | six | |^| seven | seven | | split\ | over\ | 3 lines | | A9 | B9 | C9 | |
|
* |
| WebStatistics Sandbox.WebNotify Sandbox.%HOMETOPIC% |
|
*Anchors:* %BR%
You can define a reference inside a TWiki topic (called an anchor name) and link to that. To __define__ an anchor write =#AnchorName= at the beginning of a line. The anchor name must be a WikiWord. To __link to__ an anchor name use the =[ |
| [[WikiWord#NotThere]] [[#MyAnchor][Jump]] #MyAnchor To here |
|
#HeRe
*Forced Links:* %BR%
You can create a forced internal link by enclosing words in double square brackets.
%BR%
Text within the brackets may contain optional spaces; the topic name is formed by capitalizing the initial letter and by removing the spaces; for example, =[ |
| [[wiki syntax]] [[%MAINWEB%.TWiki users]] escaped: ![[wiki syntax]] |
|
*Specific Links:* %BR%
You can create a link where you specify the link text and the URL separately using nested square brackets =[ |
| [[WikiSyntax][wiki syntax]] [[http://gnu.org][GNU]] |
| *Prevent a Link:* %BR% Prevent a WikiWord from being linked by prepending it with an exclamation point. |
| !SunOS |
| *Disable Links:* %BR% You can disable automatic linking of WikiWords by surrounding text with =<noautolink>= and =</noautolink>= tags.%BR% %H% It is possible to turn off all auto-linking with a NOAUTOLINK preferences setting. |
|
|
|
*Mailto Links:* %BR%
E-mail addresses are linked automatically. To create e-mail links that have more descriptive link text, specify subject lines or message bodies, or omit the e-mail address, you can write =[ |
| a@b.com [[mailto:a@b.com]\ [Mail]] [[mailto:?subject=Hi][Hi]] |