From d2a0cf624a44fa47aaa274a017524bc8af9ec19d Mon Sep 17 00:00:00 2001 From: PeterThoeny Date: Fri, 2 Mar 2001 02:05:13 +0000 Subject: [PATCH] none --- TWiki/TWikiVariables.mdwn | 34 +++++++++++++++++++++++++++++----- TWiki/TextFormattingRules.mdwn | 36 +++++++++++++++++++++++++----------- 2 files changed, 54 insertions(+), 16 deletions(-) diff --git a/TWiki/TWikiVariables.mdwn b/TWiki/TWikiVariables.mdwn index 7f78355..4e0d981 100644 --- a/TWiki/TWikiVariables.mdwn +++ b/TWiki/TWikiVariables.mdwn @@ -83,7 +83,7 @@ %GMTIME% - GM time, is 29 Jun 2010 - 15:25 + GM time, is 29 Jun 2010 - 15:26 %GMTIME{"format"}% @@ -133,15 +133,15 @@ 2 digit year 99 - Variables can be shortened to 3 characters. Example:
%GMTIME{"$day $month, $year - $hour:$min:$sec"}% is
29 Jun, 2010 - 15:25:46 + Variables can be shortened to 3 characters. Example:
%GMTIME{"$day $month, $year - $hour:$min:$sec"}% is
29 Jun, 2010 - 15:26:06 %SERVERTIME% - Server time, is 29 Jun 2010 - 11:25 + Server time, is 29 Jun 2010 - 11:26 %SERVERTIME{"format"}% - Formatted server time.
Example: %SERVERTIME{"$hou:$min"}% is 11:25 + Formatted server time.
Example: %SERVERTIME{"$hou:$min"}% is 11:26 %HTTP_HOST% @@ -172,6 +172,30 @@ If present in included topic, stop to include text at this location and ignore the remaining text. A normal view of the topic shows everyting exept the %STOPINCLUDE% variable itself. + %TOC% + Table of Content of current topic. + + + %TOC{"SomeTopic" ...}% + Table of Content. Shows a TOC that is generated automatically based on headings of a topic. Headings in [[Main/WikiSyntax]] ("---++ text") and HTML ("<h2>text<h2>") are taken into account. Parameter is composed of the topic name, followed by optional name="value" pairs: + + + + + + + + + + + + + + + +
Pair: Description: Default:
web="Name" Name of web Current web
depth="2" Limit depth of headings shown in TOC 6
Examples: %TOC{depth="2"}%, %TOC{"TWikiDocumentation" web="TWiki"}% + + %SEARCH{"str" ...}% Inline search, shows a search result embedded in a topic. Parameter is composed of the search string, followed by optional name="value" pairs: @@ -365,4 +389,4 @@ Additional variables are defined in the preferences ( site-level ( **_SL_** ) in - Additional preferences variables can be defined on all three level as needed. Example: - `Set MYLOGO = %PUBURLPATH%/%MAINWEB%/LogoTopic/logo.gif` --- [[PeterThoeny]] - 19 Jan 2001
+-- [[PeterThoeny]] - 01 Mar 2001
diff --git a/TWiki/TextFormattingRules.mdwn b/TWiki/TextFormattingRules.mdwn index 29979e6..f0dfc62 100644 --- a/TWiki/TextFormattingRules.mdwn +++ b/TWiki/TextFormattingRules.mdwn @@ -33,6 +33,20 @@ The %WIKITOOLNAME% web has the following types of **_internal links:_** + + + + + - + @@ -205,26 +219,26 @@ Know.ReadmeFirst - + - - + - -- 1.9.4
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 [[Main/TWikiVariables]].
+---++ Sushi
+
+---+++ Maguro
+
+

Sushi

+

+

+

Maguro

+
Bold Text:
Words get bold by enclosing them in * asterisks.
 *Bold*
@@ -95,7 +109,7 @@ class CatAnimal {
 
Separator:
At least four dashes at the beginning of a line.
Separator:
At least three dashes at the beginning of a line.
 -------
 
Specific Links:
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. [[Main/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]].
Specific Links:
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. [[Main/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!]].
-[[syntax][WikiSyntax]]
+[[WikiSyntax][syntax]]
 
-[[GNU][http://gnu.org]]
+[[http://gnu.org][GNU]]
 
[[Main/Syntax]]

[[Main/GNU]]

+
[[Main/WikiSyntax]]

GNU

Anchors:
You can define a link reference inside a %WIKITOOLNAME% 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 [[Main/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.
Anchors:
You can define a link reference inside a %WIKITOOLNAME% 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 [[Main/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.
-[[WebHome@NotThere]]
+[[WebHome#NotThere]]
 
-[[Jump][@MyAnchor]]
+[[#MyAnchor][Jump]]
 
-@MyAnchor To here
+#MyAnchor To here
 
[[Main/WebHomeNotThere]]

[[Main/Jump]]

-

@MyAnchor To here

+
[[Main/WebHome#NotThere]]

[[Main/WebHome#MyAnchor]]

+

To here