Wiki source code of Sandbox

Version 23.9 by Jip-jan Alunkel on May 11, 14:22

Show last authors
1
2 {{velocity}}
3 {{html}}
4
5 $doc.documentReference.extractReference('document')<br />
6 $xwiki.getURL($services.model.resolveDocument('', 'default', $doc.documentReference.extractReference('document')))<br />
7 $xwiki.getURL("xwiki:XWiki.XWikiLogin","loginsubmit")<br />
8 $doc.getURL('loginsubmit')<br />
9 /loginsubmit/XWiki/XWikiLogin<br />
10 current: $!{services.csrf.getToken()}<br />
11 #set($token = "$!{request.getParameter('form_token')}")
12 requested: $request.getParameter("$!{services.csrf.getToken()}")<br />
13 #if($xcontext.user != 'XWiki.XWikiGuest')
14 ##$escapetool.url($doc.getURL('view'))&${qs}
15 ##[logout>https://www.homeoworld.org/logout/XWiki/XWikiLogout?xredirect=%2FSandbox%2F]
16 ##[logout>https://www.homeoworld.org/logout/XWiki/XWikiLogout?xredirect=%2FSandbox%2F]
17
18 #*
19 * De gebruiker is ingelogd.
20 *
21 * --> Een logout link plaatsen
22 *#
23 #if($xcontext.inactiveUserReference)
24 <a href="$xwiki.getURL($xcontext.inactiveUserReference, 'view')" class="brand-user" id="tmUser">$!xwiki.getUserName($xcontext.inactiveUserReference, false)</a>
25 #else
26 <a href="$xwiki.getURL($xcontext.user, 'view')" class="brand-user" id="tmUser">$!xwiki.getUserName($xcontext.user, false)</a>
27 #end
28 <a href="$xwiki.getURL('XWiki.XWikiLogout', 'logout', "xredirect=$escapetool.url($xwiki.relativeRequestURL)")" id="tmLogout" rel="nofollow">$services.icon.renderHTML('log-out') $escapetool.xml($services.localization.render('logout'))</a>
29
30 ## #if($request.xredirect)
31 #set($requested = "$!(request.getParameter('${token}'))")
32 #if($requested == "xlogin")
33 #*
34 * De pagina is geladen t.g.v. submit van het login formulier. Aangezien de
35 * loginpagina in de header besloten ligt en daarmee dus beschikbaar is op
36 * iedere pagina is er geen noodzaak meer voor een redirect.
37 *
38 * --> Een bevestiging van login wordt gedaan.
39 *#
40
41
42
43
44 ## $response.sendRedirect($request.xredirect)
45 #end
46 #else
47 #*
48 * De gebruiker is niet ingelogd.
49 *
50 * --> Een login link plaatsen met het login formulier
51 *#
52 [Open login modal]
53 <form id="loginForm" action="$xwiki.getURL("xwiki:XWiki.XWikiLogin","loginsubmit")" method="post" class="xform">
54 <input type="hidden" name="$!{services.csrf.getToken()}" value="xlogin" />
55 #if($xcontext.user != 'XWiki.XWikiGuest')
56 <input type="hidden" name="logged_in" value="true" />
57 #end
58 <input type="hidden" name="xredirect" value="$!{escapetool.xml($request.xredirect)}"/>
59 #if("$!request.srid" != '')
60 <input type="hidden" name="srid" value="$!escapetool.xml($request.srid)"/>
61 #end
62 <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}"/>
63
64 #xwikimessageboxstart($services.localization.render('login') '')
65 #set($message = $xcontext.message)
66 #if($message)
67 <!-- previous login errors -->
68 #error($services.localization.render($message))
69 #end
70 #set($authFailureStrategyMessage = $services.security.authentication.getErrorMessage($request.j_username))
71 #if ("$!authFailureStrategyMessage" != '')
72 #error($authFailureStrategyMessage)
73 #end
74 #set ($supplementaryForm = $services.security.authentication.getForm($request.j_username))
75 <label for="j_username">$services.localization.render('username')</label>
76 #set ($forgotUsernameURL = $services.security.authentication.getAuthenticationURL('retrieveusername', $NULL))
77 #if("$!forgotUsernameURL" != "")
78 <span class="xAdditional"><a href="$forgotUsernameURL" tabindex="500">$services.localization.render('xe.admin.forgotUsername.loginMessage')</a></span>
79 #end
80 <span class="input-group">
81 <span class="input-group-addon">$services.icon.renderHTML('user')</span>
82 <input class="form-control" type="text" id="j_username" size="60" name="j_username" value="" tabindex="100"/>
83 </span>
84 <label for="j_password">$services.localization.render('password')</label>
85 #set ($resetPasswordUrl = $services.security.authentication.getAuthenticationURL('resetpassword', $NULL))
86 #if("$!resetPasswordUrl" != '')
87 <span class="xAdditional"><a href="$resetPasswordUrl" tabindex="600">$services.localization.render('xe.admin.passwordReset.loginMessage')</a></span>
88 #end
89 <span class="input-group">
90 <span class="input-group-addon">$services.icon.renderHTML('lock')</span>
91 <input type="password" id="j_password" size="60" name="j_password" value="" tabindex="200"/>
92 </span>
93 <label class="xHint" for="rememberme">
94 <input id="rememberme" type="checkbox" name="j_rememberme" value="true" tabindex="300"/> $services.localization.render('remembermeonthiscomp')
95 </label>
96 #if ("$!supplementaryForm" != "")
97 <div id="dedicated-auth-failures-field">
98 $supplementaryForm
99 </div>
100 #end
101 <input type="submit" class="btn btn-primary col-xs-12" value="$services.localization.render('login')" tabindex="400"/>
102 #xwikimessageboxend()
103 </form>
104
105 ## Ensure that the username field of the login form has the focus to make it easy for users to log in quickly
106 <script type="javascript">
107 //<![CDATA[
108 document.forms.loginForm.j_username.focus();
109 //]]>
110 </script>
111 ## #template("endpage.vm")
112 #end
113
114 {{/html}}
115 {{/velocity}}
116
117
118 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!
119
120 {{info}}
121 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.
122 {{/info}}
123
124 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.
125
126 Here are a number of test pages you can play with:
127
128 * [[Sandbox Test Page 1>>Sandbox.TestPage1]]
129 * [[Sandbox Test Page 2>>Sandbox.TestPage2]]
130 * [[Sandbox Test Page 3>>Sandbox.TestPage3]]
131
132 Below is a demonstration of the [[XWiki Syntax>>XWiki.XWikiSyntax]] you can use in wiki pages (headings, images, tables).
133
134 = Headings =
135
136 XWiki offers 6 levels of headings. You can use them to structure your pages.
137
138 == Level 2 Heading ==
139
140 === Level 3 Heading ===
141
142 ==== Level 4 Heading 4 ====
143
144 ===== Level 5 Heading 5 =====
145
146 ====== Level 6 Heading 6 ======
147
148 = Styles =
149
150 Basic styles are supported in XWiki:
151
152 * **Text in Bold**
153 * //Text in Italics//
154 * __Text in Underline__
155 * --Text in Strikethrough--
156 * Text in ,,subscript,,
157 * Text in ^^superscript^^
158
159 = Lists =
160
161 You can create various types of lists in your wiki pages:
162
163 == Unordered list ==
164
165 * Level 1
166 ** Level 2
167 *** Level 3
168 ** Level 2
169 * Level 1
170
171 == Numbered list ==
172
173 1. Item
174 11. Subitem
175 111. Item
176 1. Subitem
177
178 == Mixed list ==
179
180 1. Item 1
181 11. Item 2
182 11*. Item 3
183 11*. Item 4
184 1. Item 5
185
186 = Tables =
187
188 You can create tables right into wiki pages:
189
190 == Table with headers in the top row ==
191
192 |= table header |= table header |= table header
193 | cell | cell | cell
194 | cell | cell | cell
195
196 == Table with headers in the top row and left column ==
197
198 |= table header |= table header |= table header
199 |= table header | cell | cell
200 |= table header | cell | cell
201
202 = Links =
203
204 XWiki allows you to create links to other pages in your wiki or on the web:
205
206 * [[WebHome]] -> links to the homepage of the current space
207 * [[Sandbox Home>>WebHome]] -> links can have labels
208 * [[Wiki Home>>Main.WebHome]] -> a link can use the SpaceName.PageName format to link to a page located in another space
209 * [[http://www.xwiki.org]] -> you can link to wiki pages or to external websites
210 * [[XWiki.org Website>>http://www.xwiki.org]] -> link labels work for exernal links too
211
212 You can also create links to attachments:
213
214 attach:XWikiLogo.png
215
216 = Images =
217
218 You can insert images in your wiki pages:
219
220 [[image:XWikiLogo.png]]
221
222 = Macros =
223
224 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:
225
226 == Warning Macro ==
227
228 This macro allows you to draw users' attention to a specific piece of information:
229
230 == Table of Contents ==
231
232 This macro automatically generates a table of contents of your wiki page based on headings:
233
234 {{toc/}}