... |
... |
@@ -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 |
== == |
... |
... |
@@ -350,10 +350,6 @@ |
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 == |
358 |
358 |
|
359 |
359 |
The following example demonstrates how to present complex information cleanly using ` |
... |
... |
@@ -428,5 +428,3 @@ |
428 |
428 |
{{/expandable}} |
429 |
429 |
{{/example}} |
430 |
430 |
|
431 |
|
- |
432 |
|
- |