0 Votes

Wiki source code of Sandbox

Last modified by Ryan C on 2025/03/13 01:36

Show last authors
1 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!
2 {{velocity}}
3 #set($currentDoc = $doc)
4 #set($attachments = $currentDoc.getAttachmentList())
5
6 **Attachments for This Page:**
7 #foreach($attachment in $attachments)
8 - #if($attachment.getMimeType().startsWith("image/"))
9 ![$attachment.getFilename()]($currentDoc.getURL("download", $attachment.getFilename()))
10 #else
11 [$attachment.getFilename()]($currentDoc.getURL("download", $attachment.getFilename()))
12 #end
13 #end
14
15 **Attachments from Subpages:**
16 #set($children = $currentDoc.getChildren())
17 #foreach($child in $children)
18 #set($childDoc = $xwiki.getDocument($child))
19 #set($childAttachments = $childDoc.getAttachmentList())
20
21 **$childDoc.getTitle()**:
22 #foreach($attachment in $childAttachments)
23 - #if($attachment.getMimeType().startsWith("image/"))
24 ![$attachment.getFilename()]($childDoc.getURL("download", $attachment.getFilename()))
25 #else
26 [$attachment.getFilename()]($childDoc.getURL("download", $attachment.getFilename()))
27 #end
28 #end
29 #end
30 {{/velocity}}
31
32 {{info}}
33 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.
34 {{/info}}
35
36 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.
37
38 Here are a number of test pages you can play with:
39
40 * [[Sandbox Test Page 1>>Sandbox.TestPage1]]
41 * [[Sandbox Test Page 2>>Sandbox.TestPage2]]
42 * [[Sandbox Test Page 3>>Sandbox.TestPage3]]
43
44 Below is a demonstration of the [[XWiki Syntax>>XWiki.XWikiSyntax]] you can use in wiki pages (headings, images, tables).
45
46 == Headings ==
47
48 XWiki offers 6 levels of headings. You can use them to structure your pages.
49
50 == Level 2 Heading ==
51
52 === Level 3 Heading ===
53
54 ==== Level 4 Heading 4 ====
55
56 ===== Level 5 Heading 5 =====
57
58 ====== Level 6 Heading 6 ======
59
60 {{info title="Accessibility recommendation"}}
61 In order to provide the best experience for assistive technology users on your wiki, you should avoid using the first level of heading in page content.
62 {{/info}}
63
64 == Styles ==
65
66 Basic styles are supported in XWiki:
67
68 * **Text in Bold**
69 * //Text in Italics//
70 * __Text in Underline__
71 * --Text in Strikethrough--
72 * Text in ,,subscript,,
73 * Text in ^^superscript^^
74
75 == Lists ==
76
77 You can create various types of lists in your wiki pages:
78
79 === Unordered list ===
80
81 * Level 1
82 ** Level 2
83 *** Level 3
84 ** Level 2
85 * Level 1
86
87 === Numbered list ===
88
89 1. Item
90 11. Subitem
91 111. Item
92 1. Subitem
93
94 === Mixed list ===
95
96 1. Item 1
97 11. Item 2
98 11*. Item 3
99 11*. Item 4
100 1. Item 5
101
102 == Tables ==
103
104 You can create tables right into wiki pages:
105
106 === Table with headers in the top row ===
107
108 |= table header |= table header |= table header
109 | cell | cell | cell
110 | cell | cell | cell
111
112 === Table with headers in the top row and left column ===
113
114 |= table header |= table header |= table header
115 |= table header | cell | cell
116 |= table header | cell | cell
117
118 == Links ==
119
120 XWiki allows you to create links to other pages in your wiki or on the web:
121
122 * [[WebHome]] -> links to the homepage of the current space
123 * [[Sandbox Home>>WebHome]] -> links can have labels
124 * [[Wiki Home>>Main.WebHome]] -> a link can use the SpaceName.PageName format to link to a page located in another space
125 * [[http://www.xwiki.org]] -> you can link to wiki pages or to external websites
126 * [[XWiki.org Website>>http://www.xwiki.org]] -> link labels work for exernal links too
127
128 You can also create links to attachments:
129
130 attach:XWikiLogo.png
131
132 == Images ==
133
134 You can insert images in your wiki pages:
135
136 image:XWikiLogo.png
137
138 == Macros ==
139
140 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:
141
142 === Warning Macro ===
143
144 This macro allows you to draw users' attention to a specific piece of information:
145
146 {{warning}}
147 Hello World
148 {{/warning}}
149
150 === Table of Contents ===
151
152 This macro automatically generates a table of contents of your wiki page based on headings:
153
154 {{toc/}}