0 Votes

Changes for page Start here if you're new

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

From version 23.1
edited by Ryan C
on 2025/05/14 15:33
Change comment: There is no comment for this version
To version 28.1
edited by Ryan C
on 2025/05/14 15:42
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -14,9 +14,9 @@
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 ----
17 +----
18 18  
19 -## 🧪 1. **Macro Showcase: Source-to-Output Toggle**
19 +## 🧪 1. **Macro Showcase: Source-to-Output Toggle**##
20 20  
21 21  Show how a macro works without cluttering the page with raw syntax.
22 22  
... ... @@ -24,16 +24,15 @@
24 24  == Gallery Macro ==
25 25  
26 26  {{example}}
27 -
28 28  {{gallery}}
29 29  [[image:photo1.jpg]]
30 30  [[image:photo2.jpg]]
31 31  {{/gallery}}
32 -
33 33  {{/example}}
34 34  
35 35  
36 36  == Boilerplate Box ==
35 +
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 ==
43 +
44 44  {{example}}
45 45  {{velocity}}
46 46  #set($name = "Visitor")
... ... @@ -50,19 +50,28 @@
50 50  
51 51  
52 52  == Info vs Warning ==
53 +
53 53  {{example}}
54 -{{info}}This is an info box.{{/info}}
55 +{{info}}
56 +This is an info box.
57 +{{/info}}
55 55  
56 -{{warning}}This is a warning box.{{/warning}}
59 +{{warning}}
60 +This is a warning box.
61 +{{/warning}}
57 57  {{/example}}
58 58  
59 59  == Footnote Demo ==
65 +
60 60  {{example}}
61 -This claim needs a source{{footnote}}Here it is.{{/footnote}}.
67 +footnote{{footnote}} https://www.thewhitearchive.org/bin/view/Guides%20and%20Help/Start%20here%20if%20you're%20new/#edit{{/footnote}}
68 +
62 62  {{putFootnotes/}}
63 63  {{/example}}
64 64  
72 +
65 65  == Groovy Lookup ==
74 +
66 66  {{example}}
67 67  {{groovy}}
68 68  def now = new Date()
... ... @@ -71,15 +71,8 @@
71 71  {{/example}}
72 72  
73 73  
74 -== Access Current User ==
75 -{{example}}
76 -{{velocity}}
77 -Current user: **$xcontext.user**
78 -{{/velocity}}
79 -{{/example}}
80 -
81 -
82 82  == Expandable Summary ==
84 +
83 83  {{example}}
84 84  {{expandable summary="🧠 Study Summary"}}
85 85  Key findings go here.
... ... @@ -87,15 +87,18 @@
87 87  {{/example}}
88 88  
89 89  == List Formatting ==
92 +
90 90  {{example}}
91 91  *Bad formatting*
95 +
92 92  * use - inconsistently
93 93  ** Good formatting:
94 - * Consistent bullet style
95 - * Indented items properly
98 +* Consistent bullet style
99 +* Indented items properly
96 96  {{/example}}
97 97  
98 98  == Python Code ==
103 +
99 99  {{example}}
100 100  {{code language="python"}}
101 101  def greet():
... ... @@ -104,6 +104,7 @@
104 104  {{/example}}
105 105  
106 106  == Audio Embedding ==
112 +
107 107  {{example}}
108 108  {{html}}
109 109  <audio controls>
... ... @@ -112,10 +112,10 @@
112 112  </audio>
113 113  {{/html}}
114 114  {{/example}}
115 -
121 +
116 116  This page covers all the essential steps and tips you need to create great content in XWiki without any confusion.
117 117  
118 -== ==
124 +== ==
119 119  
120 120  == 📎 **Attachments and Images** ==
121 121  
... ... @@ -134,6 +134,8 @@
134 134  1. Upload or select the image.
135 135  1. Choose the **Thumbnail option** to create a clickable enlargable preview automatically.
136 136  
143 +[[image:1747262485678-297.png||data-xwiki-image-style="thumbnail-clickable" width="200"]]
144 +
137 137  ----
138 138  
139 139  == ⚡ **Using the / Macro Shortcut** ==
... ... @@ -214,7 +214,7 @@
214 214  
215 215  
216 216  
217 -*
225 +*
218 218  ** (((
219 219  === **Bold**: Surround text with double asterisks. ===
220 220  )))
... ... @@ -224,7 +224,7 @@
224 224  {{/code}}
225 225  
226 226  
227 -*
235 +*
228 228  ** (((
229 229  === **Italics**: Use double underscores. ===
230 230  )))
... ... @@ -234,7 +234,7 @@
234 234  {{/code}}
235 235  
236 236  
237 -*
245 +*
238 238  ** (((
239 239  === **Underline**: Enclose text with double tildes. ===
240 240  )))
... ... @@ -244,7 +244,7 @@
244 244  {{/code}}
245 245  
246 246  
247 -*
255 +*
248 248  ** (((
249 249  === **Unordered List**: Begin lines with asterisk (*) or hyphen (-). ===
250 250  )))
... ... @@ -255,7 +255,7 @@
255 255  {{/code}}
256 256  
257 257  
258 -*
266 +*
259 259  ** (((
260 260  === **Ordered List**: Start lines with a number followed by a period. ===
261 261  )))
... ... @@ -363,12 +363,12 @@
363 363  == Example Macro ==
364 364  
365 365  The example macro displays the output of a macro or script or anything that you like
374 +
366 366  == Expandable Macro ==
367 367  
368 368  The following example demonstrates how to present complex information cleanly using `
369 369  
370 370  {{example}}
371 -
372 372  {{expandable summary="Study: The Wilson Effect: The Increase in Heritability of IQ With Age"}}
373 373  **Source:** *Twin Research and Human Genetics (Cambridge University Press)*
374 374  **Date of Publication:** *2013*
... ... @@ -438,4 +438,4 @@
438 438  {{/example}}
439 439  
440 440  
441 -
449 +
1747262485678-297.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AdminAngriff
Size
... ... @@ -1,0 +1,1 @@
1 +1.6 MB
Content