Wiki source code of Sandbox

Version 23.6 by Jip-jan Alunkel on maio 11, 14:20

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