Wiki source code of Main
Last modified by Ludovic Dubost on 2011/05/25 17:28
Hide last authors
author | version | line-number | content |
---|---|---|---|
2.1 | 1 | =Wiki Creole Sandbox | |
1.1 | 2 | ||
11.1 | 3 | This page runs Wiki Creole Syntax on XWiki Enterprise 1.6 Milestone 1. You can switch syntax when editing by choosing your syntax on the right of the edit zone. You can view below the test case page for the Wiki Creole (www.wikicreole.org/wiki/Creole1.0TestCases). The implementation is not yet 100% complete (links and tables are not working) but this will be fixed for XWiki Enterprise 1.6 Final release. | |
4.1 | 4 | ||
2.1 | 5 | = Top-level heading (1) | |
6 | == This a test for creole 0.1 (2) | ||
7 | === This is a Subheading (3) | ||
8 | ==== Subsub (4) | ||
9 | ===== Subsubsub (5) | ||
1.1 | 10 | ||
2.1 | 11 | The ending equal signs should not be displayed: | |
1.1 | 12 | ||
2.1 | 13 | = Top-level heading (1) = | |
14 | == This a test for creole 0.1 (2) == | ||
15 | === This is a Subheading (3) === | ||
16 | ==== Subsub (4) ==== | ||
17 | ===== Subsubsub (5) ===== | ||
1.1 | 18 | ||
2.1 | 19 | You can make things **bold** or //italic// or **//both//** or //**both**//. | |
1.1 | 20 | ||
2.1 | 21 | Character formatting extends across line breaks: **bold, | |
22 | this is still bold. This line deliberately does not end in star-star. | ||
1.1 | 23 | ||
2.1 | 24 | Not bold. Character formatting does not cross paragraph boundaries. | |
1.1 | 25 | ||
2.1 | 26 | You can use [[internal links]] or [[http://www.wikicreole.org|external links]], | |
27 | give the link a [[internal links|different]] name. | ||
1.1 | 28 | ||
2.1 | 29 | Here's another sentence: This wisdom is taken from [[Ward Cunningham's]] | |
30 | [[http://www.c2.com/doc/wikisym/WikiSym2006.pdf|Presentation at the Wikisym 06]]. | ||
1.1 | 31 | ||
2.1 | 32 | Here's a external link without a description: [[http://www.wikicreole.org]] | |
1.1 | 33 | ||
2.1 | 34 | Be careful that italic links are rendered properly: //[[http://my.book.example/|My Book Title]]// | |
1.1 | 35 | ||
2.1 | 36 | Free links without braces should be rendered as well, like http://www.wikicreole.org/ and http://www.wikicreole.org/users/~example. | |
1.1 | 37 | ||
2.1 | 38 | Creole1.0 specifies that http://bar and ftp://bar should not render italic, | |
39 | something like foo://bar should render as italic. | ||
40 | |||
41 | You can use this to draw a line to separate the page: | ||
42 | ---- | ||
43 | |||
44 | You can use lists, start it at the first column for now, please... | ||
45 | |||
46 | unnumbered lists are like | ||
47 | * item a | ||
48 | * item b | ||
49 | * **bold item c** | ||
50 | |||
51 | blank space is also permitted before lists like: | ||
52 | * item a | ||
53 | * item b | ||
54 | * item c | ||
55 | ** item c.a | ||
56 | |||
57 | or you can number them | ||
58 | # [[item 1]] | ||
59 | # item 2 | ||
60 | # // italic item 3 // | ||
61 | ## item 3.1 | ||
62 | ## item 3.2 | ||
63 | |||
64 | up to five levels | ||
65 | * 1 | ||
66 | ** 2 | ||
67 | *** 3 | ||
68 | **** 4 | ||
69 | ***** 5 | ||
70 | |||
71 | * You can have | ||
72 | multiline list items | ||
73 | * this is a second multiline | ||
74 | list item | ||
75 | |||
76 | You can use nowiki syntax if you would like do stuff like this: | ||
77 | |||
78 | {{{ | ||
79 | Guitar Chord C: | ||
80 | |||
81 | ||---|---|---| | ||
82 | ||-0-|---|---| | ||
83 | ||---|---|---| | ||
84 | ||---|-0-|---| | ||
85 | ||---|---|-0-| | ||
86 | ||---|---|---| | ||
87 | ~}}} | ||
88 | |||
89 | Note: if you look at the source code of the above, you see the escape char (tilde, ~ ) | ||
90 | being used to escape the closing triple curly braces. This is to do nowiki nesting in this | ||
91 | wiki which doesn't follow Creole 1.0 yet (closing triple curly braces should be indented | ||
92 | by one space). | ||
93 | |||
94 | You can also use it inline nowiki {{{ in a sentence ~}}} like this. | ||
95 | |||
96 | = Escapes = | ||
97 | Normal Link: http://wikicreole.org/ - now same link, but escaped: ~http://wikicreole.org/ | ||
98 | |||
99 | Normal asterisks: ~**not bold~** | ||
100 | |||
101 | a tilde alone: ~ | ||
102 | |||
103 | a tilde escapes itself: ~~xxx | ||
104 | |||
105 | === Creole 0.2 === | ||
106 | |||
107 | This should be a flower with the ALT text "this is a flower" if your wiki supports ALT text on images: | ||
108 | |||
109 | {{Red-Flower.jpg|here is a red flower}} | ||
110 | |||
111 | === Creole 0.4 === | ||
112 | |||
113 | Tables are done like this: | ||
114 | |||
115 | |=header col1|=header col2| | ||
116 | |col1|col2| | ||
117 | |you |can | | ||
118 | |also |align\\ it. | | ||
119 | |||
120 | You can format an address by simply forcing linebreaks: | ||
121 | |||
122 | My contact dates:\\ | ||
123 | Pone: xyz\\ | ||
124 | Fax: +45\\ | ||
125 | Mobile: abc | ||
126 | |||
127 | === Creole 0.5 === | ||
128 | |||
129 | |= Header title |= Another header title | | ||
130 | | {{{ //not italic text// ~}}} | {{{ **not bold text** ~}}} | | ||
131 | | //italic text// | ** bold text ** | | ||
132 | |||
133 | === Creole 1.0 === | ||
134 | |||
10.1 | 135 | If interwiki links are setup in your wiki, this links to the WikiCreole page about Creole 1.0 test cases: [[WikiCreole:Main.WebHome]]. | |
2.1 | 136 | ||
137 | |||
138 | |||
139 |