0 Votes

Changes for page Start here if you're new

Last modified by Ryan C on 2025/06/28 04:59

From version 24.1
edited by Ryan C
on 2025/05/14 15:36
Change comment: There is no comment for this version
To version 32.1
edited by Ryan C
on 2025/05/14 15:58
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -14,26 +14,50 @@
14 14  
15 15  The example macro in XWiki is an underrated powerhouse—great for *teaching*, *showcasing macros*, *hiding complex markup*, and *letting users play with source-output pairs*. Here are some **highly effective and interesting uses**:
16 16  
17 ----
18 18  
19 -## 🧪 1. **Macro Showcase: Source-to-Output Toggle**
20 20  
21 -Show how a macro works without cluttering the page with raw syntax.
19 +== **Using the / Macro Shortcut** ==
22 22  
21 +The / macro shortcut is a powerful and quick way to insert macros while editing pages in XWiki's WYSIWYG editor:
23 23  
24 -== Gallery Macro ==
23 +* Simply type / and start typing the macro name or feature you want to add.
24 +* You'll see suggestions appear as you type. Select the macro to insert it directly without manual syntax.
25 +* Example macros include:
26 +** /toc – Table of Contents
27 +** /box – Insert Box Macro
28 +** /gallery – Image Gallery
29 +** /footnote – Add footnotes to your text
30 +** /code – Code blocks for programming snippets
25 25  
26 -{{example}}
32 +This shortcut dramatically speeds up editing, no need to memorize complicated wiki syntax
27 27  
34 +----
35 +
36 +## 🧪 1. **Macro Showcase: Source-to-Output Toggle**##
37 +
38 +In this section we will go over many of the common macros used. The source code is how you use the macro editing in Wiki mode. If you are doing standard WYSIWYG edit mode (the default mode you get when you click edit instead of the dropdown), you can call most of these macros by simply typing /thecommand
39 +
40 +
41 +== Gallery Macro `/gallery` ==
42 +
43 +{{example}}
28 28  {{gallery}}
29 -[[image:photo1.jpg]]
45 +[[1747262485678-297.png]]
30 30  [[image:photo2.jpg]]
31 31  {{/gallery}}
32 -
33 33  {{/example}}
34 34  
35 35  
51 +== Alternatively `/carousel` ==
52 +
53 +{{example}}
54 +{{carousel/}}
55 +
56 +
57 +{{/example}}
58 +
36 36  == Boilerplate Box ==
60 +
37 37  {{example}}
38 38  {{box cssClass="highlight"}}
39 39  Insert your highlighted content here.
... ... @@ -41,6 +41,7 @@
41 41  {{/example}}
42 42  
43 43  == Velocity Greeting ==
68 +
44 44  {{example}}
45 45  {{velocity}}
46 46  #set($name = "Visitor")
... ... @@ -49,18 +49,29 @@
49 49  {{/example}}
50 50  
51 51  
52 -== Info vs Warning ==
77 +== Info vs Warning `/info box` ==
78 +
53 53  {{example}}
54 -{{info}}This is an info box.{{/info}}
80 +{{info}}
81 +This is an info box.
82 +{{/info}}
55 55  
56 -{{warning}}This is a warning box.{{/warning}}
84 +{{warning}}
85 +This is a warning box.
86 +{{/warning}}
57 57  {{/example}}
58 58  
59 -== Footnote Demo ==
89 +== Footnote Demo `/footnote and /put footnotes` put the put footnotes macro at the bottom where you want the references ==
60 60  
61 -footnote
91 +{{example}}
92 +footnote{{footnote}} https://www.thewhitearchive.org/bin/view/Guides%20and%20Help/Start%20here%20if%20you're%20new/#edit{{/footnote}}
62 62  
94 +{{putFootnotes/}}
95 +{{/example}}
96 +
97 +
63 63  == Groovy Lookup ==
99 +
64 64  {{example}}
65 65  {{groovy}}
66 66  def now = new Date()
... ... @@ -69,7 +69,8 @@
69 69  {{/example}}
70 70  
71 71  
72 -== Expandable Summary ==
108 +== Expandable Summary `/expandable`  VERY USEFUL MACRO ==
109 +
73 73  {{example}}
74 74  {{expandable summary="🧠 Study Summary"}}
75 75  Key findings go here.
... ... @@ -77,15 +77,18 @@
77 77  {{/example}}
78 78  
79 79  == List Formatting ==
117 +
80 80  {{example}}
81 81  *Bad formatting*
120 +
82 82  * use - inconsistently
83 83  ** Good formatting:
84 - * Consistent bullet style
85 - * Indented items properly
123 +* Consistent bullet style
124 +* Indented items properly
86 86  {{/example}}
87 87  
88 88  == Python Code ==
128 +
89 89  {{example}}
90 90  {{code language="python"}}
91 91  def greet():
... ... @@ -93,21 +93,9 @@
93 93  {{/code}}
94 94  {{/example}}
95 95  
96 -== Audio Embedding ==
97 -{{example}}
136 +== ==
98 98  
99 -{{html}}
100 -<audio controls>
101 - <source src="/bin/download/Sandbox/TestPage2/Anti-Black%20racial%20slur%20was%20found%20written%20on%20high%20school%20desk%20in%20Rockville.mp3" type="audio/mpeg">
102 - Your browser does not support the audio element.
103 -</audio>
104 -{{/html}}
105 -{{/example}}
106 106  
107 -This page covers all the essential steps and tips you need to create great content in XWiki without any confusion.
108 -
109 -== ==
110 -
111 111  == 📎 **Attachments and Images** ==
112 112  
113 113  You can easily upload files and images directly from the WYSIWYG editor:
... ... @@ -119,6 +119,19 @@
119 119  * Drag-and-drop or select your file to upload it instantly.
120 120  * Uploaded files will automatically be listed as attachments at the bottom of your page.
121 121  
150 +== Audio Embedding for attached media its better to use the code sometimes but you can embed media with `/embed content` for external media and `/embed JWPlayer` ==
151 +
152 +{{example}}
153 +{{html}}
154 +<audio controls>
155 + <source src="/bin/download/Sandbox/TestPage2/Anti-Black%20racial%20slur%20was%20found%20written%20on%20high%20school%20desk%20in%20Rockville.mp3" type="audio/mpeg">
156 + Your browser does not support the audio element.
157 +</audio>
158 +{{/html}}
159 +{{/example}}
160 +
161 +This page covers all the essential steps and tips you need to create great content in XWiki without any confusion.
162 +
122 122  === **Inserting Images with Enlargable Thumbnails** ===
123 123  
124 124  1. In the editor, click the **"Insert Image"** icon from the toolbar.
... ... @@ -125,25 +125,27 @@
125 125  1. Upload or select the image.
126 126  1. Choose the **Thumbnail option** to create a clickable enlargable preview automatically.
127 127  
128 -----
169 +[[image:1747262485678-297.png||data-xwiki-image-style="thumbnail-clickable" width="200"]]
129 129  
130 -== **Using the / Macro Shortcut** ==
171 +== ==
131 131  
132 -The / macro shortcut is a powerful and quick way to insert macros while editing pages in XWiki's WYSIWYG editor:
173 +(((
174 +=== **You can also use this format to insert images** ===
133 133  
134 -* Simply type / and start typing the macro name or feature you want to add.
135 -* You'll see suggestions appear as you type. Select the macro to insert it directly without manual syntax.
136 -* Example macros include:
137 -** /toc – Table of Contents
138 -** /box – Insert Box Macro
139 -** /gallery – Image Gallery
140 -** /footnote – Add footnotes to your text
141 -** /code – Code blocks for programming snippets
176 +{{example}}
177 +~[~[image~:1747262485678-297.png]]
178 +{{/example}}
142 142  
143 -This shortcut dramatically speeds up editing, no need to memorize complicated wiki syntax.
180 +
181 +)))
144 144  
145 -----
183 +{{code}}
184 + [[image:example.jpg]]
185 +{{/code}}
146 146  
187 +
188 +== ==
189 +
147 147  == ✏️** Basic Formatting and Links (Quick Guide)** ==
148 148  
149 149  * **Bold text**: Select text, click the **Bold** button or press Ctrl + B.
... ... @@ -186,7 +186,6 @@
186 186  
187 187  * **WYSIWYG (What You See Is What You Get) Editor**: Ideal for users unfamiliar with wiki syntax, this editor provides a user-friendly interface resembling traditional word processors. It allows for straightforward text formatting, image insertion, and link creation without delving into markup language. citeturn0search0
188 188  * **Wiki Editor**: This mode enables direct editing using XWiki’s markup syntax. It’s suitable for users comfortable with wiki syntax and those requiring precise control over the content structure.
189 -* **Inline Form Editing**: Used primarily for pages containing structured data or custom applications, this mode presents editable fields directly within the page view, streamlining data entry and updates.
190 190  
191 191  == **Essential Formatting Options** ==
192 192  
... ... @@ -201,62 +201,6 @@
201 201  {{/code}}
202 202  
203 203  
204 -=== **Text Formatting** ===
205 -
206 -
207 -
208 -*
209 -** (((
210 -=== **Bold**: Surround text with double asterisks. ===
211 -)))
212 -
213 -{{code}}
214 -**bold text**
215 -{{/code}}
216 -
217 -
218 -*
219 -** (((
220 -=== **Italics**: Use double underscores. ===
221 -)))
222 -
223 -{{code}}
224 -__italic text__
225 -{{/code}}
226 -
227 -
228 -*
229 -** (((
230 -=== **Underline**: Enclose text with double tildes. ===
231 -)))
232 -
233 -{{code}}
234 -~~underlined text~~
235 -{{/code}}
236 -
237 -
238 -*
239 -** (((
240 -=== **Unordered List**: Begin lines with asterisk (*) or hyphen (-). ===
241 -)))
242 -
243 -{{code}}
244 -* Item 1
245 -* Item 2
246 -{{/code}}
247 -
248 -
249 -*
250 -** (((
251 -=== **Ordered List**: Start lines with a number followed by a period. ===
252 -)))
253 -
254 -{{code}}
255 -1. First item
256 -2. Second item
257 -{{/code}}
258 -
259 -
260 260  == **Links** ==
261 261  
262 262  
... ... @@ -276,14 +276,9 @@
276 276  {{/code}}
277 277  
278 278  (((
279 -=== **Images** ===
265 +=== ===
280 280  )))
281 281  
282 -{{code}}
283 - [[image:example.jpg]]
284 -{{/code}}
285 -
286 -
287 287  == **Utilizing XWiki Macros** ==
288 288  
289 289  Macros are powerful tools in XWiki that allow for dynamic content inclusion and advanced formatting. Here are ten notable macros to consider:
... ... @@ -354,12 +354,12 @@
354 354  == Example Macro ==
355 355  
356 356  The example macro displays the output of a macro or script or anything that you like
338 +
357 357  == Expandable Macro ==
358 358  
359 359  The following example demonstrates how to present complex information cleanly using `
360 360  
361 361  {{example}}
362 -
363 363  {{expandable summary="Study: The Wilson Effect: The Increase in Heritability of IQ With Age"}}
364 364  **Source:** *Twin Research and Human Genetics (Cambridge University Press)*
365 365  **Date of Publication:** *2013*
... ... @@ -429,4 +429,4 @@
429 429  {{/example}}
430 430  
431 431  
432 -
413 +
1747262485678-297.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AdminAngriff
Size
... ... @@ -1,0 +1,1 @@
1 +1.6 MB
Content