forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: xml-forrest/src/core/context/resources/chaperon/wiki broken.txt index.txt rules.txt selftest.txt
Date Fri, 23 Jan 2004 09:49:37 GMT
nicolaken    2004/01/23 01:49:37

  Added:       src/core/context/resources/chaperon/wiki broken.txt
                        index.txt rules.txt selftest.txt
  Update chaperon block
  Revision  Changes    Path
  1.1                  xml-forrest/src/core/context/resources/chaperon/wiki/broken.txt
  Index: broken.txt
  ! Boken page
  Here comes a text with __an inclomplete element.
  ! Next section
  1.1                  xml-forrest/src/core/context/resources/chaperon/wiki/index.txt
  Index: index.txt
  ! Introduction
  This is a little example how easy it is to write a wiki engine 
  using the Chaperon parser and Apache Cocoon.
  Here are some example sites:
  * [Rule of the wiki|rules]
  * [Test document|selftest]
  * [Broken page|broken]
  * [New page|new]
  You can edit the page with the little "edit" under the Cocoon logo.
  Stephan Michels.
  1.1                  xml-forrest/src/core/context/resources/chaperon/wiki/rules.txt
  Index: rules.txt
  When you've figured out how the editor works, then you should read [WikiEtiquette] so that
you would know how to use
  your newly acquired skills...
  !Quick reference
  ----       = Make a horizontal ruler. Extra '-' is ignored.
  \\         = force a line break, \\\=force line break and clear.
  [link]     = creates a hyperlink to an internal WikiPage called 'Link'.
  [this is also a link] = creates a hyperlink to an internal WikiPage called
  [click here|link] = creates a hyperlink to an internal WikiPage called
  'Link', but displays the text 'click here' to the
  user instead of 'Link'.
  [1]        = Makes a reference to a footnote numbered 1.
  [#1]       = Marks the footnote number 1.
  [[link]    = creates text '[link]'.
  !heading   = small heading with text 'heading'
  !!heading  = medium heading with text 'heading'
  !!!heading = large heading with text 'heading'
  ''text''   = prints 'text' in italic.
  __text__   = prints 'text' in bold.
  {{text}}   = prints 'text' in monospaced font.
  * text     = makes a bulleted list item with 'text'
  # text     = makes a numbered list item with 'text'
  ;term:ex   = makes a definition for 'term' with the explanation 'ex'
  !Writing text
  You don't need to know anything about the Wiki text formatting rules to use Wiki.  Just
write normal text, and then use
  an empty line to mark a paragraph.
  It's just like writing an email.
  You can always Edit this page (look at the left sidebar) to see how the different
  effects on this page are used.
  The link can also be a direct URL starting with http:, ftp:, mailto:, https:, or news:,
in which case the link points to
  an external entity. For example, to point at the home page, use [[],
which becomes
  [] or [[Java home page|], which becomes [Java home
  To add a new page you just create a link to it from somewhere else. After all, there isn't
much point in having a page
  if you can't access it! You'll then see a small question mark after the page name when you
return to that page. Then
  click on it and you have created a new page!
  It's allowed to use almost any kind of characters inside a [WikiName], as long
  as they are letters or numbers.
  Note also that this Wiki can be configured to support standard CamelCase linking (if it's
supported, the word CamelCase
  should be a link).  It's off by default, but if your friendly administrator has turned it
on, then well, CamelCase all
  you want =).
  These are a special kind of hyperlink.  By using nothing but a number inside
  a hyperlink you create a reference to a footnote, like this [[1], which 
  creates a footnote[1].  To make the actual footnote, you just put a [[#1]
  where you want that footnote to point at.  Look below to find the footnote.
  You can also make a named footnote, just as if you were doing a normal hyperlink.  For example,
this refers to the same
  footnote[Footnote number 1|1] as the footnote above, but this refers to another footnote[2].
  !InterWiki links
  You can also do links between different Wikis without knowing the URL.  Just use a link
in the form [[Wiki:WikiPage] and
  JSPWiki will create a link for you.  For example, this link points to the [JSPWiki TextFormatting
  rules|JSPWiki:TextFormattingRules]. Check the [SystemInfo] page for more information on
which Wiki links are available.
  If an InterWiki link is not supported, you'll get a notification of it on the page when
  you save your page.
  !Adding pictures
  For security reasons uploading images is not permitted, but you can embed
  any image in the wiki code by putting the image available somewhere on the web in one of
the allowed formats, and then
  just linking to it.
  For example, this is an inlined [PNG] image: [].
  If you specify a link text ([[this one here|]) it becomes
  the ALT text for those who either can't or don't want to view images.
  The list of accepted image types depends on the Wiki.  See the [SystemInfo]
  page for a list of the different image types.
  !Bulleted lists
  Use an asterisk (*) in the first column to make bulleted lists. Use more asterisks for deeper
indentation. For example:
  * One
  * Two
  * Three
  ** Three.One}}}
  * One
  * Two
  * Three
  ** Three.One
  !Numbered lists
  Just like with bulleted lists, but use a hash (#) instead of the asterisk. Like this:
  # One
  # Two
  # Three
  ## Three.One
  # One
  # Two
  # Three
  ## Three.One
  If you want to write the list item on multiple lines, just add one or more spaces on the
next line and the line will be
  automatically added to the
  previous item.  If this sounds complicated, edit this page for an example, below.
  * This is a single-line item.
  * This is actually a multi-line item.
    We continue the second sentence on a line on a line of its own.
    We might as well do a third line while we're at it...
    Notice, however, as all these sentences get put inside a single item!
  * The third line is again a single-line item for your convinience.
  !Definition lists and comments
  A simple way to make definition lists is to use the ';:' -construct:
  ;__Construct__:''Something you use to do something with''
  Another nice use for the ';:' is that you can use it to comment shortly on other people's
text, by having an empty
  'term' in the definition, like this:
  ;:''Comment here.''
  Which would be seen as
  ;:''Comment here.''
  !Text effects
  You may use __bold__ text or ''italic'' text, by using two underscores (_) and two single
quotes ('), respectively. If
  you're on a Windows computer, make sure that you are using the correct quote sign, as there
is one that looks the same,
  but really isn't.
  !Preformatted text
  If you want to add preformatted text (like code) just use three consecutive braces ({) to
open a block, and three
  consecutive braces (}) to close a block. Edit this page for an example.
  You can do simple tables by using using pipe signs ('|').  Use double pipe
  signs to start the heading of a table, and single pipe signs to then
  write the rows of the table.  End with a line that is not a table.
  For example:
  || Heading 1 || Heading 2
  | ''Gobble'' | Bar
  | [Main]     | [SandBox]
  gives you the following table.  Note how you can use links also inside tables.
  || Heading 1 || Heading 2
  | ''Gobble'' | Bar
  | [Main]     | [SandBox]
  If someone happens to edit the same page as you at the same time, JSPWiki will prevent you
from doing changes and show a
  conflict page instead. Sorry to say, but the first one to make changes wins...
  __A word of warning:__ If you use the Back button of your browser to go into the Edit page,
you will almost certainly
  get a conflict. This is because the browser thinks its still editing an earlier copy of
the page.
  !Deleting pages
  This is not possible. You can, of course, remove all the links to that page, which makes
it inaccesible. Or you can
  email the administrator, and I'll remove the page.
  !Adding new pages
  Create a link that points to a new (not existing) page using its [WikiName].
  Click that new link, which should now have a question mark (?) suffix and
  you will get an editor for the new page. -- [Asser]
  !Attaching files
  If the administrator of the wiki has configured it, there is a "Attach file..." link at
the bottom of every page.
  Clicking it allows you to attach files into pages.  For more information, please see [WikiAttachments].
  !Inserting variables
  There are many possible variables you can insert on a page.  The basic form is:
  {{ [[{$variablename}], }}
  where ''variablename'' is the name of the variable you want to insert.  Note that variable
names are case-insensitive -
  that is, "pagename" is the same as "paGeNamE" and "PageName".
  You can see the list of available of variables at [WikiVariables].
  !Inserting plugins
  The basic incantation to insert a plugin looks like this:
  [[{INSERT <plugin class> WHERE param1=value, param2=value, ...}]
  There is more information in [JSPWikiPlugins].
  [#1] Here's the footnote I mentioned.
  [The other footnote|#2] The other footnote.  Note how it's name is different?
  1.1                  xml-forrest/src/core/context/resources/chaperon/wiki/selftest.txt
  Index: selftest.txt
  This wiki document is a self-describing test of the Cocoon Chaperon wiki grammar. Reading
what follows 
  should tell you if the tests are successful.
  The page should be kept in sync
with this so as 
  to be able to compare the output of both, as the Chaperon wiki grammar is meant to emulate
the JSPWiki syntax 
  used by the Cocoon wiki.
  The "content", "parser-output" and "xdoc" views can be used to check the various stages
of parsing and conversion.
  Lines like -- THIS TEXT -- are comments about this test, they must appear as is.
  This must be followed by a section title and a bullet list with some items.
  Currently this test shows the following problems:
  * 0.1 This bullet list is invisible in the html output if there is no section title (3 bangs)
before it
  * 1.1 Headings must be used in the usual order (big contains medium contains small), otherwise
unpredictable results can occur due to the conversion from the linear wiki model to the nested
xdocs model. 
  * 5.1 relative link points to (but is it by design?)
  -- 1.HEADINGS --
  Test 1.1 headings in the usual order (from big to small): below you should see 3 headings,
big, medium, small:
  ! big heading #1
  !! medium heading #1
  !!! small heading #1
  Test 1.2 same headings with text in-between
  ! big heading #2
  Text after big heading.
  !! medium heading #2
  Text after medium heading.
  !!! small heading #2
  Text after small heading.
  ! new big heading
  The above heading starts a new section in the xdocs version of this document.
  Test 2.1 This should be followed by a list that counts from one to four:
  # one
  #  two
  # three
  -- 3.BULLET LISTS --
  Test 3.1 This should be followed by four bullet points:
  * Bullet one
  * Bullet two
  * Bullet three with a longer text, something like the quick brown fox stuff that you know
and like
  * Bullet four
  Test 3.2 This should be followed by two bullet points with one line of text in between:
  * Bullet one, JSPWiki ends bullet at newline so this is the end.
  and this is not part of bullet one.
  * But this is bullet two.
  Test 4.1 The words __bold__, ''italic'' and {{monospaced}} in this phrase should be displayed
with the corresponding attributes.
  Test 4.2 In test 4.1 all words of the phrase should be followed by a space. 
  Test 4.3 Same as 4.1 but words with attributes are repeated twice: __bold bold__, ''italic
italic'' and {{monospaced monospaced}}.
  Test 4.4 The block of text that follows should be shown in the source code style:
  	boolean didThisWork() {
  	  return !failed();
  -- 5.LINKS --
  Test 5.1 Here a link to this same page: [wikitest.html]
  Test 5.2 Link to []
  Test 5.3 A link to another wiki site [Text formating rules|rules].
  Test 6.1 This paragraph should be followed by a horizontal ruler line.
  Test 6.2 There should be a line break between the words one and two that follow: 
  -- 7. TEXT RUNS --
  Test 7.1 In this paragraph all
  words should be
  followed by a single space.

View raw message