Wiki source code of Sandbox

Version 21.1 by Jip-jan Alunkel on maio 11, 11:56

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