MoinMoin   Wiki Text Formatting Test Page UserPreferences
 
Help Info Print View Search Diffs Edit
 À妽º   µµ¿ò¸»   Ã£±â   ´ë¹®   ¹Ù²ï±Û 

Revised 1/05/01, 5:45 PM EST -- adding "test" links in double square brackets, as TWiki allows.

This page originated on [Wiki]WardsWiki, and the most up-to-date copy resides there. This page has been copied here in order to make a quick visual determination of which ?TextFormattingRules work for this wiki. Currently it primarily determines how text formatted using the original [Wiki]WardsWiki text formatting rules is displayed. See http://www.c2.com/cgi/wiki?WikiOriginalTextFormattingRules.

If you want to see how this text appears in the original [Wiki]WardsWiki, see http://www.c2.com/cgi/wiki?WikiEngineReviewTextFormattingTest

People reviewing this wiki from the original [Wiki]WardsWiki will be referred to this page. If you want to see the review, go to http://www.c2.com/cgi/wiki?WikiEngineReview.

Other places this page appears (perhaps as an older version):

http://narasimha.tangentially.com/cgi-bin/n.exe?twiky%20editWiki(%22WikiEngineReviewTextFormattingTest%22)

This page contains sample marked up text to make a quick visual determination as to which [Wiki]TextFormattingRules work for a given wiki. To use the page, copy the text from the edit window, and paste it in the wiki under test. Then read it.

And, the next logical thing to do is put a page like this on a public wiki running each [Wiki]WikiEngine, and link to it from the appropriate [Wiki]WikiReview page, as has been done in some cases -- see above.

The next line (4 dashes) should show up as a horizontal rule. In a few wikis, the width of the rule is controlled by the number of dashes. That will be tested in a later section of this test page.


[Wiki]WikiOriginalTextFormattingRules

This first section will test the [Wiki]WikiOriginalTextFormattingRules.

If a wiki properly interprets the [Wiki]WikiOriginalTextFormattingRules, the text will appear as described here.

This should appear as plain variable width text, not bold or italic.

The original [Wiki]WardsWiki text formatting rules make no provision for headings. They can be simulated by applying emphasis. See the next several lines.

'This text, enclosed within in 1 set of single quotes, should appear as normal text surrounded by 1 set of single quotes.'

This text, enclosed within in 2 sets of single quotes, should appear in italics.

This text, enclosed within in 3 sets of single quotes, should appear in bold face type.

'This text, enclosed within in 4 sets of single quotes, should appear in bold face type surrounded by 1 set of single quotes.'

This text, enclosed within in 5 sets of single quotes, should appear in bold face italics.

This text, enclosed within in 6 sets of single quotes, should appear as normal text.

This
should
appear
as
a
single
wrapped
sentence
/
paragraph
even
though
each
word
is
on
a
separate
line.

In this sentence, bold should appear as bold, and italic should appear as italic.

The next phrase, even though enclosed in triple quotes, will not display in bold because
I've broken the phrase across a line
boundary by inserting a <return>.

If I don't break the phrase by inserting a <return>, the bold portion can start and end on different lines, as this does.

Note that the logic seems to be easily confused. In the next paragraph I combine the two sentences (with no other changes). Notice the results. (The portion between the "innermost" set of triple quotes, and nothing else, is bold.)

The next phrase, even though enclosed in triple quotes, will not display in bold because
I've broken the phrase across a line
boundary by inserting a <return>. If I don't break the phrase by inserting a <return>, the bold portion can start and end on different lines, as this does.

I don't know if [Wiki]WardCunningham considers this the desired behavior.


This is a multilevel bulleted list:

This is another bulleted list, formatted the same way but with shortened lines to display the behavior when nested and when separated by blank lines.

The following nested list is numbered. Numbers are created by replacing the "*" with "1."

  1. Top level
    1. Second level
    2. Second level
      1. Third level
      2. Third level
        1. Fourth level
          1. Fifth level
    3. Second level
      1. Third level
        1. Sixth level
          1. Seventh level
            1. Eighth level
              1. Ninth level
                1. Tenth level
  2. Top level
    1. Second level
      1. Third level
        1. Fourth level
          1. Fifth level
            1. Sixth level
              1. Seventh level
                1. Eighth level
                  1. Ninth level
                    1. Tenth level
  3. Top level

View the page in the original [Wiki]WardsWiki, note the numbering, and then compare it to what it looks like in the wiki being tested.

Aside: I wonder if any wikis provide multilevel numbering -- I know that [Wiki]MicrosoftWord, even back to the Dos 3.0 version, can number an outline with multiple digits, in "legal" or "outline" style numbering. I forget which is which -- one is like 2.1.2.4, the other is like II.A.3.c., and I think there is another one that includes ii.


Definition Lists:


Indented Paragraphs (For quotations)


Weighted horizontal lines.

The next 10 double spaced lines are a succession of lines with an increasing number of dashes on each line, in other words, the first line is one dash, the second is two, ... until the tenth is 10 dashes.

In at least one wiki (which? ?PikiPiki, and thus MoinMoin), the weight (thickness) of the lines increases based on the number of dashes (starting at 4 dashes).

-

--

---








(the following line has 80 dashes)


End of line weight test.


I inserted 8 blank lines after this, to see if whitespace is "contracted".


Headings

As stated earlier, the original [Wiki]WardsWiki does not handle headings except by a workaround using emphasis. Some other wikis do.

Some use a prefix of exclamation points, others use other methods. As I find those methods, I will expand this section accordingly.

Here is a test of headings using "!"

This works for:

!Top level

!!Second level

!!!Third level

!!!!Fourth level

!!!!!Fifth level

Here is a test of headings enclosed in equal signs (=), one for the top level, one more for each lower level. Whitespace is not allowed outside of the equals signs, while whitespace is required on the inside (separating the header text and the equals signs).

This works for:

Top level

Second level

Third level

Fourth level

Fifth level

An older version of ?WardsWiki engine, as used at the CLUG Wiki (http://www.clug.org/cgi/wiki.cgi?RandyKramer), creates headings as shown below. I don't know whether this is part of what Ward wrote or an enhancement by ?JimWeirich (or somebody else).


:: Major Heading -- four dashes, two colons, and a space


: Minor Heading -- four dashes, one colon, and a space

Swiki uses equal signs as prefixes, no space before the heading text -- actually this is not working in Swiki -- tried with and without spaces, now without

=Top level (one equal sign)

==Second level

===Third level

====Fourth level

=====Fifth level (five equal signs)

======Sixth level (six equal signs)


?WikiNameTest

This area will test WikiName validity.

?ThisIsValidInTheOriginalWiki

T?HisIsNotValidInTheOriginalWiki -- Adjacent caps

?This8IsNotValidInTheOriginalWiki -- Numbers

YAGNI -- All caps

?YAGNI -- All caps, enclosed in single square brackets

[[YAGNI]] -- All caps, enclosed in double square brackets

?This8isNotValidInTheOriginalWiki --

?T8HisNotValidInTheOriginalWiki --

?This Is Not Valid In The Original Wiki -- Separated by spaces, enclosed in square brackets.

?ThisIsNotValidInTheOriginalWiki -- Enclosed in square brackets -- this is valid in the original wiki.

?ThisIsNotValid_InTheOriginalWiki -- Enclosed in square brackets, with underbar.

?ThisIsNotValid8InTheOriginalWiki -- Enclosed in square brackets, with number.

?ThisIsNotValidTInTheOriginalWiki -- Enclosed in square brackets, with doubled caps.

?This Is Not Valid In The Original Wiki -- Separated by spaces, enclosed in square brackets and quotes.

[[This Is Not Valid In The Original Wiki]] -- Separated by spaces, enclosed in double square brackets.

[[?ThisIsNotValidInTheOriginalWiki]] -- Enclosed in double square brackets -- this is valid in the original wiki.

[[?ThisIsNotValid_?InTheOriginalWiki]] -- Enclosed in double square brackets, with underbar.

[[?ThisIsNotValid8InTheOriginalWiki]] -- Enclosed in double square brackets, with number.

[[?ThisIsNotValidT?InTheOriginalWiki]] -- Enclosed in double square brackets, with doubled caps.

?This Is Not Valid In The Original Wiki -- Separated by spaces, enclosed in square brackets and quotes.

*This Is Not Valid In The Original Wiki* -- Separated by spaces, enclosed in asterisks, valid in Swiki

Some?PartOfThisIsValidInTheOriginalWiki -- Attempted to invalidate putting 6 single quotes between the first pair of words.

ThisIsIntentionallyNotValidInTheOriginalWiki -- Invalidated by 6 single quotes between every pair of words.

Remote references are created by inserting a number in square brackets, they are not automatically numbered. To make these links work, you must go to [Wiki]EditLinks and fill in URLs.

[1]

[2]

If a remote reference ends in .gif, the image is inlined.

Here is a .gif URL for testing: http://c2.com/sig/wiki.gif (This link disabled by 6 single quotes after the http.)

In ?WardsWiki the URL for a remote reference in the ?number syntax must be entered using ?EditLinks. The image is placed where the ?number is located.

[3]

Simply typing a link (starting with http: and ending in .gif) also works.

Will pictures overlap? In ?WardsWiki, these 4 pictures form two rows of two pictures, separated by a horizontal blank line.

?3][3

?3][3

http://c2.com/

ftp://

mailto://rhkramer@fast.net

ISBN Links (to a bookseller) -- several variations

[ISBN]0137483104 -- ISBN followed by colon, followed by 10 digits ([Wiki]InterWiki style)

ISBN: 0-13-748310-4 -- ISBN followed by optional colon, followed by 10 digits with optional hyphens

?ISBN 0-13-748310-4 -- ISBN, no colon, followed by 10 digits with optional hyphens, entire string surrounded by square brackets

?ISBN: 0-13-748310-X -- ISBN, with colon, entire string surrounded by square brackets, followed by 10 digits with optional hyphens, last digit an X "X" is the "digit" ten (the roman numeral, actually), which is a possible value for the checksum (last) digit.


Twiki formatting (just a few samples)

*This, embedded between asterisks, should be bold*

_This, embedded between single "underbars" should be italic_

__This, embedded between double "underbars" should be bold and italic__

<H1>A heading embedded between HTML H1 tags</H1>

<H2>A heading embedded between HTML H2 tags</H2>

<H3>A heading embedded between HTML H3 tags</H3>

<H4>A heading embedded between HTML H4 tags</H4>

<H5>A heading embedded between HTML H5 tags</H5>

<H6>A heading embedded between HTML H6 tags</H6>

Trying angle brackets and escape notation:

>< -- arrows in

<> -- arrows out

<enclosing text> -- enclosing text -- text is hidden in TWiki

&lt &gt -- escape (ampersand) lt and gt

I think there is (or will be) another way to mark up headings -- this might require that the ?TocPlugin be installed. (The following does not work, either because it hasn't been implemented (yet), the ?TocPlugin is not installed, or because I haven't stumbled across exactly the right syntax.)

| *You type* | *You see* | *Note* | | =\tab+++ title= | <h3>title</h3> | (we count "+") | | =\tab\tab+ title= | <h2>title</h2> | (we count tabs) | | =\tab*H4: title= | <h4>title</h4> |

+A line preceded by one "+"

\ +A line preceded by \tab+

=\ \ + A line preceded by

Just showing how TWiki displayed something that looked like headings, but by using preformatted HTML.

<pre>
<nop> + Heading 1
<nop> + Heading 2
<nop> + Heading 3
<nop> ... and so on
</pre>


_ An underscore at the beginning of a line makes a horizontal line in Swiki
Swiki Formatting (started by copying their text formatting rules page,
http://rhkswikitest.swiki.net/.format

Note: I've noticed some inconsistency with Swiki in handling this page, maybe because of the size? Earlier, headings did not work properly, but bulleted lists did. (The numbered and nested lists were added later.) Now headings are working but lists are not. (And I won't be surprised if, when I save this page either everything works, or something different breaks -- no headings still work, lists do not, but I wonder about the next save?)

Lists

Bulleted lists start with a dash, with no space before the text.

-Red
-Blue
-Green

Numbered lists start each line with '#', with no space before the text.

#Blue
#Green
#Red

Lists can be nested. Thus, a line starting with '#-' is an element of a bulleted list that is part of an ordered list.

Now some nesting:

#Blue
>
 
 
IndexError
Python 2.3.2
/home/bin/python

A problem occurred while running a Python script. Here is the sequence of function calls leading up to the error, with the most recent (innermost) call last.

/home/hosting_users/sjy8282/www/MoinMoin/cgimain.py in run()
  166         try:
  167             from MoinMoin.support import cgitb
  168             cgitb.handler()
       cgitb = <module 'MoinMoin.support.cgitb' from '/home/hosting_users/sjy8282/www/MoinMoin/support/cgitb.pyc'>, handler = undefined
  169         except:
  170             cgi.print_exception()

/home/hosting_users/sjy8282/www/MoinMoin/Page.py in send_page(self=<MoinMoin.Page.Page instance>, form=FieldStorage(None, None, []), msg='', **keywords={})
  291             # parse the text and send the page content
  292             #sys.stdout.write("!!!%s<br>"%Parser) #TEST
  293             Parser(body).format(self.formatter, form)
       Parser = <class MoinMoin.parser.wiki.Parser>, body = 'Revised 1/05/01, 5:45 PM EST -- adding "test" l...G:TopicUsingWiki, CLUG:TopicWikiEditingTraps\r\n', global format = undefined, self = <MoinMoin.Page.Page instance>, global formatter = undefined, form = FieldStorage(None, None, [])
  294 
  295         # end document output

/home/hosting_users/sjy8282/www/MoinMoin/parser/wiki.py in format(self=<MoinMoin.parser.wiki.Parser instance>, formatter=<MoinMoin.formatter.text_html.Formatter instance>, form=FieldStorage(None, None, []))
  495                 _toPrint=re.sub(self.__class__.scan_re, self.replace, line + " ")
  496                 if config.auto_line_break and not self.in_pre: #when auto_line_break is on and not in pre mode
  497                     _isEndingHTML=string.rstrip(_toPrint)[-1] in ('>','\n') and \
       _isEndingHTML = False, global string = <module 'string' from '/usr/local/lib/python2.3/string.pyc'>, global rstrip = undefined, _toPrint = ''
  498                                   not string.rstrip(_toPrint)[-2] == 'a' #or\
  499                                   #string.lstrip(_toPrint)[:3] == '<li'

IndexError: string index out of range
      __doc__ = 'Sequence index out of range.'
      __getitem__ = <bound method IndexError.__getitem__ of <exceptions.IndexError instance at 0x403a672c>>
      __init__ = <bound method IndexError.__init__ of <exceptions.IndexError instance at 0x403a672c>>
      __module__ = 'exceptions'
      __str__ = <bound method IndexError.__str__ of <exceptions.IndexError instance at 0x403a672c>>
      args = ('string index out of range',)