~kosova/+junk/tuxfamily-twiki

« back to all changes in this revision

Viewing changes to foswiki/data/System/WikiSyntax.txt

  • Committer: James Michael DuPont
  • Date: 2009-07-18 19:58:49 UTC
  • Revision ID: jamesmikedupont@gmail.com-20090718195849-vgbmaht2ys791uo2
added foswiki

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.1" version="$Rev$"}%
 
2
---+ Shorthand Basics
 
3
%TOC%
 
4
 
 
5
%STARTINCLUDE%
 
6
_If you can enter text, you're ready for Foswiki. With a few simple rules, you'll be able to use plain text to create well-styled postings, instantly. What you are going to learn here is called <b>T</b>opic <b>M</b>arkup <b>L</b>anguage, or simply TML. So here comes a fast-track guide to shorthand basics:_
 
7
 
 
8
---++ General text formatting
 
9
 
 
10
   * Separate each *paragraph* with a blank line.
 
11
 
 
12
   * To display a *bold type* word or phrase, use asterisks: =*bold type*=.
 
13
 
 
14
   * To display an _italic_ word or phrase, use underscores: =_italic_=.
 
15
 
 
16
   * To display __bold with italics__ word or phrase, use _double_ underscores: =__bold italic__=.
 
17
 
 
18
   * To display a word or phrase in =MONOSPACED TYPE=, use equal signs: =<nop>=like this==.
 
19
 
 
20
   * Use =<nop>=<nop>=double equal signs=== for bold: ==bold mono==.
 
21
 
 
22
   * To display colored text, enter:__ =%<nop>RED% red text %<nop>ENDCOLOR% and %<nop>GREEN% green text %<nop>ENDCOLOR%= to get %RED% red text %ENDCOLOR% and %GREEN% green text %ENDCOLOR%.
 
23
      * =%&lt;color&gt;%= text must end with =%<nop>ENDCOLOR%=. If you want to switch from one color to another one you first need to end the active color with =%<nop>ENDCOLOR%=, e.g. write =%<nop>RED% some text %<nop>ENDCOLOR% %<nop>GREEN% more text %<nop>ENDCOLOR%=.
 
24
      * DefaultPreferences defines some commonly used colors: *%YELLOW% %<nop>YELLOW%%ENDCOLOR%, %RED% %<nop>RED%%ENDCOLOR%, %PINK% %<nop>PINK%%ENDCOLOR%, %PURPLE% %<nop>PURPLE%%ENDCOLOR%, %TEAL% %<nop>TEAL%%ENDCOLOR%, %NAVY% %<nop>NAVY%%ENDCOLOR%, %BLUE% %<nop>BLUE%%ENDCOLOR%, %AQUA% %<nop>AQUA%%ENDCOLOR%, %LIME% %<nop>LIME%%ENDCOLOR%, %GREEN% %<nop>GREEN%%ENDCOLOR%, %OLIVE% %<nop>OLIVE%%ENDCOLOR%, %MAROON% %<nop>MAROON%%ENDCOLOR%, %BLACK% %<nop>BLACK%%ENDCOLOR%, %GRAY% %<nop>GRAY%%ENDCOLOR%, %SILVER% %<nop>SILVER%%ENDCOLOR%* and *%<nop>ENDCOLOR%*.
 
25
 
 
26
   * To display headings, type (from the beginning of a line) three dashes (-), from one to six plus signs (+), a space, and your heading text.
 
27
      * The quantity of plus signs is related to the size of the heading - the more plus signs you use, the smaller the heading.
 
28
      * You can insert a nested table of contents, generated from headings, by placing =%<nop>TOC%= wherever you like on a page (see [[%SYSTEMWEB%.Macros]] for more =%<nop>TOC%= options).
 
29
 
 
30
   * Use ==&lt;verbatim&gt;== to enclose code excerpts, filenames, and other unformatted text:%BR%
 
31
     =<b>&lt;verbatim&gt;</b>= %BR%
 
32
     =unformatted text!= %BR%
 
33
     =and more of it!= %BR%
 
34
     =<b>&lt;/verbatim&gt;</b>=
 
35
 
 
36
---+++ Macros and special characters (advanced)
 
37
   * <nop>%MACROS% can be set inside verbatim tags - they are not disabled. For more detailed information, see [[Macros]].
 
38
 
 
39
   * If you want to display angle brackets, enter them as HTML codes instead of typing them in directly:
 
40
      * =&amp;lt;= = =&lt;= %BR%
 
41
        =&amp;gt;= = =&gt;=
 
42
      * __You enter:__ =(a &amp;gt; 0)= %BR%
 
43
        __Result:__ =(a &gt; 0)=
 
44
 
 
45
   * Sometimes you will not see the =&= charachter and you need to excape it to see it as it is. The reason behind is that =&= has a special meaning in HTML - it starts so called character entities, like ='&amp;copy;'= which is the =&copy;= copyright character.
 
46
      * Type ='This &amp;amp; that'= to get ='This &amp; that'=.
 
47
 
 
48
---++ Internal and external links
 
49
 
 
50
   * To link to another Wiki topic in the same web, type the WikiWord of that topic: =<nop>%HOMETOPIC%=.
 
51
 
 
52
   * To link to a Wiki topic in a different web, type the name of the web, and a dot, first: =Sandbox.<nop>%HOMETOPIC%=.
 
53
 
 
54
   * A Wiki topic that doesn't exist will appear highlighted, with question mark at the end, prompting you (or someone else) to start that topic by clicking the *?*: ExampleOfANewTopic (click the *?*, but don't save, to preserve the example!).
 
55
 
 
56
   * To create an external link, type the full URL: =http://foswiki.org/=.
 
57
 
 
58
   * To prevent a <nop>WikiWord from becoming a link, place =&lt;nop&gt;= or an exclamation mark (=!=) in front of the <nop>WikiWord: ==&lt;nop&gt;NoLinkPlease== or ==!NoLinkPlease==.
 
59
 
 
60
   * To escape the exclamation mark escape, try prefixing a =&lt;nop>=, e.g. write =A &lt;nop>!=<nop> B= to get "A <nop>!= B". Alternatively, use the HTML entity =&amp;#33;=, which renders as an exclamation mark, e.g. write =A &amp;#33;=<nop> B= to get "A &#33;= B".
 
61
 
 
62
---++ Bullet and numbered lists
 
63
 
 
64
   * To indent with a bullet, enter =[space][space][space][asterisk][space]=.
 
65
      * Use multiples of 3 spaces to *nest bullets*.
 
66
         * That's 3-6-9 spaces...
 
67
 
 
68
   * To create a numbered list:
 
69
      1 Start items in a *numbered list* with =[space][space][space][1][space]=.
 
70
      1 The "1" (or *any number*) will be replaced by a correct numbering order.
 
71
      1 To add a new paragraph without restarting list numbering, use the %<nop>BR% variable, like this:%BR% Text added (in a new paragraph)
 
72
      1 and the numbered list continues.
 
73
 
 
74
Always start *counting* spaces for bullets or numbers from the beginning of a new line.
 
75
 
 
76
---++ Others
 
77
 
 
78
   * To display an image in a topic, [[FileAttachment][attach it]] and type in edit mode: <br /> =%<nop>ATTACHURL%/yourimagefilename.jpg=
 
79
 
 
80
   * Three (or more) consecutive *hyphens* will create a horizontal rule:%BR% =---=
 
81
 
 
82
Follow GoodStyle recommendations when editing topics. In general, it is always nice to add one's signature at the end of a topic or comments. To add your signature, type =%USERSWEB%.YourName=, it will then expand to %USERNAME%.
 
83
 
 
84
See EditingShorthand for the complete set of formatting rules.
 
85
 
 
86
%STOPINCLUDE%
 
87
__Related Topics:__ WikiWords, [[Macros]], EditingShorthand, FileAttachment