Wiki source code of Sandbox

Version 20.4 by Jip-jan Alunkel on maio 08, 18:28

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