Wiki source code of Sandbox

Version 13.1 by Drunk Monkey on 2022-11-01 07:44

Hide last authors
Drunk Monkey 2.1 1 = Quagmyre =
2
3 Quagmyre
4
Drunk Monkey 9.1 5 External Link ([[good>>https://files.quagmyre.com/index.html]])
6
Drunk Monkey 10.1 7 External Link ([[bad>>https://files.quagmyre.com/nosuchfile.html]])
Drunk Monkey 9.1 8
Drunk Monkey 10.1 9
10 {{groovy}}
11 import com.xpn.xwiki.web.*
12 import org.xwiki.rendering.transformation.*
13
14 def checker = Utils.getComponent(Transformation.class, "linkchecker")
15
16 print "Link checker queue size = ${checker.linkQueue.size()}"
17 {{/groovy}}
18
Drunk Monkey 13.1 19 Glossary test: {{glossaryReference glossaryId="Glossary" entryId="OTE"}}OTE{{/glossaryReference}} is an entry, but OTP is not.
Drunk Monkey 10.1 20
Drunk Monkey 1.1 21 The sandbox is a part of your wiki that you can freely modify. It's meant to let you practice editing. You will discover how page editing works and create new pages. Simply click on **Edit** to get started!
22
23 {{info}}
24 Don't worry about overwriting or losing stuff when editing the page, you can always roll back to the first version of the page from the "History" tab at the bottom of the page.
25 {{/info}}
26
27 If you want to give a look to the underlying [[XWiki Syntax>>XWiki.XWikiSyntax]], you can click on "Wiki code" in the "Show" menu or click on the "Source" tab when editing the page.
28
29 Here are a number of test pages you can play with:
30
31 * [[Sandbox Test Page 1>>Sandbox.TestPage1]]
32 * [[Sandbox Test Page 2>>Sandbox.TestPage2]]
33 * [[Sandbox Test Page 3>>Sandbox.TestPage3]]
34
35 Below is a demonstration of the [[XWiki Syntax>>XWiki.XWikiSyntax]] you can use in wiki pages (headings, images, tables).
36
Drunk Monkey 6.1 37 = {{id name="你好"/}}Headings =
Drunk Monkey 1.1 38
39 XWiki offers 6 levels of headings. You can use them to structure your pages.
40
41 == Level 2 Heading ==
42
43 === Level 3 Heading ===
44
45 ==== Level 4 Heading 4 ====
46
47 ===== Level 5 Heading 5 =====
48
49 ====== Level 6 Heading 6 ======
50
Drunk Monkey 5.1 51 = {{id name="这个"/}}Styles =
Drunk Monkey 1.1 52
53 Basic styles are supported in XWiki:
54
55 * **Text in Bold**
56 * //Text in Italics//
57 * __Text in Underline__
58 * --Text in Strikethrough--
59 * Text in ,,subscript,,
60 * Text in ^^superscript^^
61
Drunk Monkey 3.1 62 = Anchors - ascii =
63
Drunk Monkey 4.1 64 xwiki code: ~{~{id name="ae"/}}
65
Drunk Monkey 3.1 66 {{id name="ae"/}}ae
67
68 = Anchors - non ascii =
69
Drunk Monkey 4.1 70 xwiki code: ~{~{id name="ä"/}}
71
Drunk Monkey 3.1 72 {{id name="ä"/}}ä
73
Drunk Monkey 1.1 74 = Lists =
75
76 You can create various types of lists in your wiki pages:
77
78 == Unordered list ==
79
80 * Level 1
81 ** Level 2
82 *** Level 3
83 ** Level 2
84 * Level 1
85
86 == Numbered list ==
87
88 1. Item
89 11. Subitem
90 111. Item
91 1. Subitem
92
93 == Mixed list ==
94
95 1. Item 1
96 11. Item 2
97 11*. Item 3
98 11*. Item 4
99 1. Item 5
100
101 = Tables =
102
103 You can create tables right into wiki pages:
104
105 == Table with headers in the top row ==
106
107 |= table header |= table header |= table header
108 | cell | cell | cell
109 | cell | cell | cell
110
111 == Table with headers in the top row and left column ==
112
113 |= table header |= table header |= table header
114 |= table header | cell | cell
115 |= table header | cell | cell
116
117 = Links =
118
119 XWiki allows you to create links to other pages in your wiki or on the web:
120
121 * [[WebHome]] -> links to the homepage of the current space
122 * [[Sandbox Home>>WebHome]] -> links can have labels
123 * [[Wiki Home>>Main.WebHome]] -> a link can use the SpaceName.PageName format to link to a page located in another space
124 * [[http://www.xwiki.org]] -> you can link to wiki pages or to external websites
125 * [[XWiki.org Website>>http://www.xwiki.org]] -> link labels work for exernal links too
126
127 You can also create links to attachments:
128
129 attach:XWikiLogo.png
130
131 = Images =
132
133 You can insert images in your wiki pages:
134
Drunk Monkey 9.1 135 [[image:XWikiLogo.png]]
Drunk Monkey 1.1 136
137 = Macros =
138
139 Macros allow you to make wiki content look better and to add additional features to your wiki. Here are 2 examples of how macros can be used in wiki pages:
140
Drunk Monkey 6.2 141 == Box Macro ==
142
Drunk Monkey 6.4 143 {{box}}
Drunk Monkey 6.2 144 box
145 {{/box}}
146
Drunk Monkey 8.1 147 {{box title="**Title**"}}
Drunk Monkey 6.2 148 box
149 {{/box}}
150
Drunk Monkey 6.4 151 == Error Macro ==
Drunk Monkey 6.2 152
Drunk Monkey 6.4 153 {{error}}
154 Error
155 {{/error}}
Drunk Monkey 6.2 156
Drunk Monkey 8.1 157 {{error title="**Title**"}}
Drunk Monkey 6.4 158 Error
159 {{/error}}
Drunk Monkey 6.2 160
161 == Info Macro ==
162
Drunk Monkey 6.4 163 {{info}}
Drunk Monkey 6.2 164 Info
Drunk Monkey 6.3 165 {{/info}}
Drunk Monkey 6.2 166
Drunk Monkey 8.1 167 {{info title="**Title**"}}
Drunk Monkey 6.2 168 Info
Drunk Monkey 6.3 169 {{/info}}
Drunk Monkey 6.2 170
171 == Success Macro ==
172
Drunk Monkey 6.4 173 {{success}}
Drunk Monkey 6.2 174 Success
Drunk Monkey 6.3 175 {{/success}}
Drunk Monkey 6.2 176
Drunk Monkey 8.1 177 {{success title="**Title**"}}
Drunk Monkey 6.2 178 Success
Drunk Monkey 6.3 179 {{/success}}
Drunk Monkey 6.2 180
Drunk Monkey 6.4 181 == Warning Macro ==
Drunk Monkey 6.2 182
Drunk Monkey 6.4 183 {{warning}}
184 Hello World
185 {{/warning}}
186
Drunk Monkey 8.1 187 {{warning title="**Title**"}}
Drunk Monkey 6.4 188 Hello World
189 {{/warning}}
190
Drunk Monkey 1.1 191 == Table of Contents ==
192
193 This macro automatically generates a table of contents of your wiki page based on headings:
194
195 {{toc/}}