Документ взят из кэша поисковой машины. Адрес оригинального документа : http://dualopt1.cmm.msu.ru/bin/rdiff/TWiki/TextFormattingRules?rev1=18;rev2=14;skin=kubrick.nat%2Cnat%2C%20pattern;sortcol=0;table=2;up=0
Дата изменения: Unknown
Дата индексирования: Mon Mar 3 01:59:26 2014
Кодировка:
%TOPICTITLE% (14 vs. 18) - TWiki
Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs...
View   r18  >  r17  >  r16  >  r15  >  r14  ...
TextFormattingRules 18 - 2001-06-28 - PeterThoeny
Line: 1 to 1
 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.
Changed:
<
<

LINKS

>
>
On this page:

Links

  The Collaborative Work Area is a bunch of related links that are editable through your web browser.
Changed:
<
<
The TWiki web has the following types of internal links:
>
>

TWiki Internal Links

 
  • GoodStyle is a WikiWord that links to the GoodStyle topic located in the current TWiki 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!)
Changed:
<
<

External links:

>
>

External Links

 
  • http://..., https://..., ftp://... and mailto:...@... are linked automatically.
  • Email addresses like name@domain.com are linked automatically.
Changed:
<
<

EDITING

>
>

Editing

 
Line: 52 to 54
 

Changed:
<
<

Sushi

>
>
---++ Sushi
 
Changed:
<
<

Maguro

>
>
---+++ Maguro
 
Changed:
<
<

Sushi

>
>

Sushi

 
Changed:
<
<

Maguro

>
>

Maguro

 
Line: 373 to 375
 
Changed:
<
<

HTML

>
>

Using 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.
Changed:
<
<
>
>
 
Changed:
<
<

WIKI VARIABLES

>
>

TWiki Variables

  Variables are names that are enclosed in percent signs; they get expanded on the fly.
Added:
>
>
  • %TOC% : The table of content, is based on headings in a topic.
 
  • %WEB% : The current web, is TWiki .
  • %TOPIC% : The current topic name, is TextFormattingRules .
  • %ATTACHURL% : The attachment URL of the current topic. Example usage: If you attach a file to a topic you can refer to it as %ATTACHURL%/image.gif to show the URL of the file or the image in your text.
  • %INCLUDE{"SomeTopic"}% : Server side include, includes another topic. The current TWiki web is the default web. Example: %INCLUDE{"TWiki.TWikiWebsTable"}%
  • There are many more variables, see TWikiVariables.
Added:
>
>

"Gotchas" when Editing Text

The formatting rules are fairly simple to use and fast to type. However, there are some things to watch out for:

  • Q: Text enclosed in angle brackets like <filename> is not displayed. How can I show it as it is?
    • A: The '<' and '>' characters have a special meaning in HTML, they define HTML tags. You need to escape them, so write '&lt;' instead of '<', and '&gt;' instead of '>'.
      Example: Type 'prog &lt;filename&gt;' to get 'prog <filename>'.

  • Q: Why is the '&' character sometimes not displayed?
    • A: The '&' character has a special meaning in HTML, it starts a so called character entity, i.e. '&copy;' is the © copyright character. You need to escape '&' to see it as it is, so write '&amp;' instead of '&'.
      Example: Type 'This &amp; that' to get 'This & that'.

 
Changed:
<
<

TWiki PLUGINS

>
>

TWiki Plugins

  TWiki Plugins offer additional text formatting rules. Plugins currently installed are:

TextFormattingRules 17 - 2001-04-05 - PeterThoeny
Line: 253 to 253
 
Table:
Optional spaces followed by the cells enclosed in vertical bars.
Changed:
<
<
Note: In case you have a long row and you want it to be more readable when you edit the table you can split the row into lines that end with a '\' backslash character.
>
>
Note: | *bold* | cells are rendered as table headers.
Note: |   spaced   | cells are rendered center aligned.
Note: |     spaced | cells are rendered right aligned.
Note: | 2 colspan || cells are rendered as multi-span columns.
Note: In case you have a long row and you want it to be more readable when you edit the table you can split the row into lines that end with a '\' backslash character.
 

Changed:
<
<
A1 B1 C1
A2 B2 C2
| A3 \
>
>
L
<-- -->
Sorted ascending
C R
A2 2 2
A3 3 3
multi span
| A4 \
  | next \
next
Changed:
<
<
A1 B1 C1
A2 B2 C2
| A3
>
>
L C R
A2 2 2
A3 3 3
multi span
| A4
 
next next

TextFormattingRules 16 - 2001-03-16 - PeterThoeny
Line: 1 to 1
 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.
Changed:
<
<
LINKS
>
>

LINKS

  The Collaborative Work Area is a bunch of related links that are editable through your web browser.
Line: 9 to 9
 
  • GoodStyle is a WikiWord that links to the GoodStyle topic located in the current TWiki 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!)
Changed:
<
<
External links:
>
>

External links:

 
  • http://..., https://..., ftp://... and mailto:...@... are linked automatically.
  • Email addresses like name@domain.com are linked automatically.
Changed:
<
<
EDITING
>
>

EDITING

 
Line: 364 to 365
 
Changed:
<
<
HTML
>
>

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.

Changed:
<
<
WIKI VARIABLES
>
>

WIKI VARIABLES

  Variables are names that are enclosed in percent signs; they get expanded on the fly.
Line: 380 to 382
 
  • %ATTACHURL% : The attachment URL of the current topic. Example usage: If you attach a file to a topic you can refer to it as %ATTACHURL%/image.gif to show the URL of the file or the image in your text.
  • %INCLUDE{"SomeTopic"}% : Server side include, includes another topic. The current TWiki web is the default web. Example: %INCLUDE{"TWiki.TWikiWebsTable"}%
  • There are many more variables, see TWikiVariables.
Added:
>
>

TWiki PLUGINS

TWiki Plugins offer additional text formatting rules. Plugins currently installed are:

  • DefaultPlugin : The default plugin is used for some depreciated rendering of older TWiki versions.

Learn more about plugins in TWikiPlugins and TWikiPreferences.


TextFormattingRules 15 - 2001-03-02 - PeterThoeny
Line: 46 to 46
 
Added:
>
>
Headings:
At least three dashes at the beginning of a line, followed by plus signs and the heading text. One plus creates a level 1 heading (most important), two pluses a level 2 heading; the maximum is level 6. Note: A Table of Content can be created automatically with the %TOC% variable, see TWikiVariables.
---++ Sushi

---+++ Maguro

Sushi

Maguro

 Bold Text:
Words get bold by enclosing them in * asterisks.
Line: 158 to 176
 
Separator:
Changed:
<
<
At least four dashes at the beginning of a line.
>
>
At least three dashes at the beginning of a line.
 

Line: 292 to 310
 
Specific Links:
Changed:
<
<
Create a link where you can specify the link text and the link reference separately, using nested square brackets like [[text][reference]]. Internal link references (i.e. WikiSyntax) and external link references (i.e. http://TWiki.org/) are supported. The same Forced Links rules apply for internal link references. Anchor names can be added as well, like [[go home][WebHome@MyAnchor]] and [[Yahoo!][http://www.yahoo.com/#somewhere]].
>
>
Create a link where you can specify the link text and the link reference separately, using nested square brackets like [[reference][text]]. Internal link references (i.e. WikiSyntax) and external link references (i.e. http://TWiki.org/) are supported. The same Forced Links rules apply for internal link references. Anchor names can be added as well, like [[WebHome#MyAnchor][go home]] and [[http://www.yahoo.com/#somewhere][Yahoo!]].
 

Changed:
<
<
WikiSyntax
>
>
syntax
 
Changed:
<
<
http://gnu.org
>
>
GNU
 
Changed:
<
<
WikiSyntax
>
>
syntax
 
Changed:
<
<
http://gnu.org
>
>
GNU
 
Anchors:
Changed:
<
<
You can define a link 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 [[MyTopic@MyAnchor]] syntax. You can omit the topic name if you want to link within the same topic.
>
>
You can define a link 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 [[MyTopic#MyAnchor]] syntax. You can omit the topic name if you want to link within the same topic.
 

Changed:
<
<
WebHome@NotThere
>
>
WebHome#NotThere
 
Changed:
<
<
@MyAnchor
>
>
Jump
 
Changed:
<
<
@MyAnchor To here
>
>
To here
 
Changed:
<
<
WebHome@NotThere
>
>
WebHome#NotThere
 
Changed:
<
<
@MyAnchor
>
>
Jump
 
Changed:
<
<
@MyAnchor To here
>
>
To here
 

Revision 18r18 - 2001-06-28 - 22:15:10 - PeterThoeny
Revision 17r17 - 2001-04-05 - 07:31:04 - PeterThoeny
Revision 16r16 - 2001-03-16 - 00:07:53 - PeterThoeny
Revision 15r15 - 2001-03-02 - 01:23:27 - PeterThoeny
Revision 14r14 - 2001-02-25 - 03:14:21 - PeterThoeny
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TextFormattingRules
Syndicate this site RSSATOM