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 17.1
edited by Ryan C
on 2025/05/14 13:33
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -12,98 +12,6 @@
12 12  
13 13  == Getting Started with XWiki ==
14 14  
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 -
17 ----
18 -
19 -## 🧪 1. **Macro Showcase: Source-to-Output Toggle**
20 -
21 -Show how a macro works without cluttering the page with raw syntax.
22 -
23 -
24 -== Gallery Macro ==
25 -
26 -{{example}}
27 -
28 -{{gallery}}
29 -[[image:photo1.jpg]]
30 -[[image:photo2.jpg]]
31 -{{/gallery}}
32 -
33 -{{/example}}
34 -
35 -
36 -== Boilerplate Box ==
37 -{{example}}
38 -{{box cssClass="highlight"}}
39 -Insert your highlighted content here.
40 -{{/box}}
41 -{{/example}}
42 -
43 -== Velocity Greeting ==
44 -{{example}}
45 -{{velocity}}
46 -#set($name = "Visitor")
47 -Hello, $name!
48 -{{/velocity}}
49 -{{/example}}
50 -
51 -
52 -== Info vs Warning ==
53 -{{example}}
54 -{{info}}This is an info box.{{/info}}
55 -
56 -{{warning}}This is a warning box.{{/warning}}
57 -{{/example}}
58 -
59 -== Footnote Demo ==
60 -
61 -footnote
62 -
63 -== Groovy Lookup ==
64 -{{example}}
65 -{{groovy}}
66 -def now = new Date()
67 -println("Current time: " + now)
68 -{{/groovy}}
69 -{{/example}}
70 -
71 -
72 -== Expandable Summary ==
73 -{{example}}
74 -{{expandable summary="🧠 Study Summary"}}
75 -Key findings go here.
76 -{{/expandable}}
77 -{{/example}}
78 -
79 -== List Formatting ==
80 -{{example}}
81 -*Bad formatting*
82 -* use - inconsistently
83 -** Good formatting:
84 - * Consistent bullet style
85 - * Indented items properly
86 -{{/example}}
87 -
88 -== Python Code ==
89 -{{example}}
90 -{{code language="python"}}
91 -def greet():
92 - print("Hello World")
93 -{{/code}}
94 -{{/example}}
95 -
96 -== Audio Embedding ==
97 -{{example}}
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 -
107 107  This page covers all the essential steps and tips you need to create great content in XWiki without any confusion.
108 108  
109 109  == ==
... ... @@ -205,7 +205,7 @@
205 205  
206 206  
207 207  
208 -*
116 +*
209 209  ** (((
210 210  === **Bold**: Surround text with double asterisks. ===
211 211  )))
... ... @@ -215,7 +215,7 @@
215 215  {{/code}}
216 216  
217 217  
218 -*
126 +*
219 219  ** (((
220 220  === **Italics**: Use double underscores. ===
221 221  )))
... ... @@ -225,7 +225,7 @@
225 225  {{/code}}
226 226  
227 227  
228 -*
136 +*
229 229  ** (((
230 230  === **Underline**: Enclose text with double tildes. ===
231 231  )))
... ... @@ -235,7 +235,7 @@
235 235  {{/code}}
236 236  
237 237  
238 -*
146 +*
239 239  ** (((
240 240  === **Unordered List**: Begin lines with asterisk (*) or hyphen (-). ===
241 241  )))
... ... @@ -246,7 +246,7 @@
246 246  {{/code}}
247 247  
248 248  
249 -*
157 +*
250 250  ** (((
251 251  === **Ordered List**: Start lines with a number followed by a period. ===
252 252  )))
... ... @@ -350,16 +350,12 @@
350 350  {{video url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"/}}
351 351  {{/example}}
352 352  
353 -
354 -== Example Macro ==
355 -
356 -The example macro displays the output of a macro or script or anything that you like
357 357  == Expandable Macro ==
262 +The following example demonstrates how to present complex information cleanly using `{{expandable}}` and `{{example}}`.
358 358  
359 -The following example demonstrates how to present complex information cleanly using `
360 -
361 361  {{example}}
362 -
265 +
266 +
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*
... ... @@ -426,7 +426,8 @@
426 426  [[Download Full Study>>attach:10.1017_thg.2013.54.pdf]]
427 427  {{/expandable}}
428 428  {{/expandable}}
429 -{{/example}}
430 430  
431 431  
335 +== See Also: ==
432 432  
337 +[[Syntax Help official documentation for a full list of formatting options>>doc:XWiki.XWikiSyntax]]