Difference: TextFormattingRules (25 vs. 26)

Revision 2607 Sep 2001 - Main.MikeMannix

Line: 1 to 1
 

TWiki Text Formatting

Working in TWiki is as easy as typing in text - exactly like email. 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 layed out below - refer back to this page in a pop-up window from the Edit screen.
Added:
>
>
 

TWiki Editing Shorthand

Line: 288 to 289
 
Changed:
<
<
>
>
#SquareBrackets
 Forced Links:
You can create a forced internal link by enclosing words in double square brackets.
Note: Text within the brackets may contain optional spaces; the topic name is formed by capitalizing the initial letter and by removing the spaces; i.e. [[text formatting FAQ]] links to topic TextFormattingFAQ. You can also refer to a different web and use anchors.
Line: 365 to 366
 

Using HTML

Changed:
<
<
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.
>
>
You can use just about any HTML tag without a problem - however, to keep in mind:
  • On collaboration pages, it's preferable NOT to use HTML, and to use TWiki shorthand instead - this keeps the text uncluttered and easy to edit.
    • NOTE: TWiki converts shorthand notation to XHTML 1.0 for display. To copy a fully marked-up page, simply view source in your browser and save the contents.
    • NOTE: The standard installation TWiki is compatible across a wide range of browsers and computer platforms. If this is important to you, remember that using browser-specific tags or any other mark-up that doesn't degrade well will reduce compatibility.
 

Hyperlinks

Changed:
<
<
Being able to create links without any formatting required is a core TWiki feature, made possible using WikiNames. With the latest version of TWiki linking rules, a simple extension of the syntax provides an new set of flexible linking options.
>
>
Being able to create links without any formatting required is a core TWiki feature, made possible with WikiWords. New TWiki linking rules are a simple extension of the syntax that provide a new set of flexible options.
 

Internal Links

  • GoodStyle is a WikiWord that links to the GoodStyle topic located in the current Proyecto META web.
Changed:
<
<
  • 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!)
>
>
  • NotExistingYet? is a topic waiting to be written. Create the topic by clicking on the ?. (Try clicking, but then, Cancel - creating the topic would wreck this example!)
 

External Links

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

TWiki Variables

Changed:
<
<
Variables are names that are enclosed in percent signs; they get expanded on the fly.
>
>
Variables are names that are enclosed in percent signs % that are expanded on the fly.

  • %TOC% : Automatically generates a table of contents based on headings in a topic - see the top of this page for an example.
 
Deleted:
<
<
  • %TOC% : The table of content, is based on headings in a topic.
 
  • %WEB% : The current web, is TWiki .
Added:
>
>
 
  • %TOPIC% : The current topic name, is TextFormattingRules .
Added:
>
>
 
  • %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.
Deleted:
<
<
  • %INCLUDE{"SomeTopic"}% : Server side include, includes another topic. The current Proyecto META web is the default web. Example: %INCLUDE{"TWiki.TWikiWebsTable"}%
  • There are many more variables, see TWikiVariables.
 
Changed:
<
<

"Gotchas" when Editing Text

>
>
  • %INCLUDE{"SomeTopic"}% : Server side include, includes another topic. The current Proyecto META web is the default web. Example: %INCLUDE{"TWiki.TWikiWebsTable"}%

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

Common Editing Errors

TWiki formatting rules are fairly simple to use and quick to type. However, there are some things to watch out for, taken from the TextFormattingFAQ:

 
  • 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>'.
Line: 403 to 415
 
  • 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'.
Deleted:
<
<
 

TWiki Plugins

Changed:
<
<
Plugins provide additional text formatting rules and can extend the functionality of Proyecto META into many other areas. Available Plugins are located in the Plugins web. Currently enabled plugins on this site are:
>
>
Plugins provide additional text formatting capabilities and can extend the functionality of Proyecto META into many other areas. For example, one optional Plugin lets you create a basic spreadsheet in a similar way to tables. Available Plugins are located in the Plugins web on TWiki.org. Currently enabled plugins on here:
 
  • SpreadSheetPlugin (any TWiki, 10197): Add spreadsheet calculation like "$SUM( $ABOVE() )" to tables located in Proyecto META topics.
  • CommentPlugin (Dakar, 8164): Allows users to quickly post comments to a page without an edit/preview/save cycle.
  • EditTablePlugin (any TWiki, 11706): Edit TWiki tables using edit fields, date pickers and drop down boxes
  • InterwikiPlugin (Dakar, $Rev: 8329$): Link ExternalSite:Page text to external sites based on aliases defined in a rules topic
  • PreferencesPlugin (Dakar, 9839): Allows editing of preferences using fields predefined in a form
  • RenderListPlugin (1.033): Render bullet lists in a variety of formats
  • SlideShowPlugin (Dakar, $Rev: 8154$): Create web based presentations based on topics with headings.
  • SmiliesPlugin (Dakar, 8154): Render smilies as icons, like  :-) for smile or  :cool: for :cool:
  • TablePlugin (Dakar, 8154): Control attributes of tables and sorting of table columns
  • UpdateInfoPlugin (Dakar, 11199): Add a %ISNEW% tag after a WikiWord to get a visual display of whether the linked topic was created or updated recently
  • WebPermissionsPlugin (1.000, $Rev: 11083$): View and edit web permissions
  • WysiwygPlugin (Dakar, 9565): Translator framework and WYSIWYG editor for TWiki topics
 
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Proyecto META? Send feedback