0 Votes

Changes for page Start here if you're new

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

From version 35.1
edited by Ryan C
on 2025/05/14 16:18
Change comment: There is no comment for this version
To version 6.1
edited by Ryan C
on 2025/03/16 01:07
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,204 +1,268 @@
1 -= 📚 Macro Examples & Formatting Guide =
1 += =
2 2  
3 3  ----
4 4  
5 -== 📖 Table of Contents ==
5 +== Getting Started with XWiki ==
6 6  
7 -{{toc/}}
7 +This page covers all the essential steps and tips you need to create great content in XWiki without any confusion.
8 8  
9 +== 📖 Table of Contents: ==
10 +
11 +* [[Editing with the WYSIWYG Editor>>https://chatgpt.com/c/67d66d62-3244-800a-8974-570f38118948#editing-pages]]
12 +* [[Inserting Attachments and Images>>https://chatgpt.com/c/67d66d62-3244-800a-8974-570f38118948#attachments]]
13 +* [[Using the / Macro Shortcut>>https://chatgpt.com/c/67d66d62-3244-800a-8974-570f38118948#macros]]
14 +* [[Basic Formatting and Links>>https://chatgpt.com/c/67d66d62-3244-800a-8974-570f38118948#formatting]]
15 +* [[Useful Tips>>https://chatgpt.com/c/67d66d62-3244-800a-8974-570f38118948#tips]]
16 +
9 9  ----
10 10  
11 -== 🧪 Macro Showcase: Source + Output + Slash Command ==
19 +== 📎 Attachments and Images ==
12 12  
13 -All macros are shown with the WYSIWYG `/command`, an expandable explanation, and an editable source/output block using example
21 +You can easily upload files and images directly from the WYSIWYG editor:
14 14  
15 -----
23 +**Uploading Attachments:**
16 16  
17 -== Table of Contents Macro (`/toc`) ==
25 +* Click **Edit** to enter the WYSIWYG editor.
26 +* Click on the **Attachment** icon (📎 paperclip icon).
27 +* Drag-and-drop or select your file to upload it instantly.
28 +* Uploaded files will automatically be listed as attachments at the bottom of your page.
18 18  
19 -{{expandable summary="📘 Table of Contents Macro (`/toc`)"}}
20 -{{example}}
21 -{{toc/}}
22 -{{/example}}
23 -{{/expandable}}
30 +=== Inserting Images with Enlargable Thumbnails ===
24 24  
32 +1. In the editor, click the **"Insert Image"** icon from the toolbar.
33 +1. Upload or select the image.
34 +1. Choose the **Thumbnail option** to create a clickable enlargable preview automatically.
35 +
25 25  ----
26 26  
27 -== Gallery Macro (`/gallery`) ==
38 +== ⚡ Using the / Macro Shortcut ==
28 28  
29 -{{expandable summary="🖼️ Gallery Macro (`/gallery`)"}}
30 -{{example}}
31 -{{gallery}}
32 -[[1747262485678-297.png]]
33 -[[image:photo2.jpg]]
34 -{{/gallery}}
35 -{{/example}}
36 -{{/expandable}}
40 +The / macro shortcut is a powerful and quick way to insert macros while editing pages in XWiki's WYSIWYG editor:
37 37  
42 +* Simply type / and start typing the macro name or feature you want to add.
43 +* You'll see suggestions appear as you type. Select the macro to insert it directly without manual syntax.
44 +* Example macros include:
45 +** /toc – Table of Contents
46 +** /box – Insert Box Macro
47 +** /gallery – Image Gallery
48 +** /footnote – Add footnotes to your text
49 +** /code – Code blocks for programming snippets
50 +
51 +This shortcut dramatically speeds up editing, no need to memorize complicated wiki syntax.
52 +
38 38  ----
39 39  
40 -== Carousel Macro (`/carousel`) ==
55 +== ✏️ Basic Formatting and Links (Quick Guide) ==
41 41  
42 -{{expandable summary="📽️ Carousel Macro (`/carousel`)"}}
43 -{{example}}
44 -{{carousel/}}
45 -{{/example}}
46 -{{/expandable}}
57 +* **Bold text**: Select text, click the **Bold** button or press Ctrl + B.
58 +* **Italic text**: Select text, click "Italic" in the toolbar or use Ctrl+I.
59 +* **Creating Links**:
60 +** Highlight text and click **"Link"** or use shortcut Ctrl+K.
61 +** Paste or select the page URL to link internally.
47 47  
48 48  ----
49 49  
50 -== Box Macro (`/box`) ==
65 +== 🔍 Useful Tips & Best Practices ==
51 51  
52 -{{expandable summary="📦 Box Macro (`/box`)"}}
53 -{{example}}
54 -{{box cssClass="highlight"}}
55 -Insert your highlighted content here.
56 -{{/box}}
57 -{{/example}}
58 -{{/expandable}}
67 +* **Save drafts frequently:** Press Ctrl+S regularly.
68 +* **Macros** greatly simplify content formatting—use / often.
69 +* **Edit attachments:** Hover attachments directly below your page in view mode to manage or delete them.
70 +* **Use minimal formatting** to ensure readability.
59 59  
60 60  ----
61 61  
62 -== Info and Warning Boxes (`/info`, `/warning`) ==
74 += ⚡Guests can contribute =
63 63  
64 -{{expandable summary="⚠️ Info and Warning Macros (`/info`, `/warning`)"}}
65 -{{example}}
66 -{{info}}This is an info box.{{/info}}
76 +1. Guests can edit pages in the main content area without signing up. If this becomes problematic I'll change it but for now I'd like everyone to have access with as little trouble as possible.
77 +1. Use Your Sandbox on the left, mess around with macros and other editing options. There's a lot of options to customize content.
78 +1. Leave comments, give suggestions, request features.
67 67  
68 -{{warning}}This is a warning box.{{/warning}}
69 -{{/example}}
70 -{{/expandable}}
80 +== Content Guidelines ==
71 71  
72 -----
82 +* Ensure your content is well-researched, you don't need to include references in the format of footnotes for your material, but you should try to include studies or links to give credibility to your claims. For instance, just claiming that [[IQ is genetic>>doc:Main Categories.Science & Research.Race & IQ.WebHome]] is genetic wouldn't be valid unless you provide a study backing up that assertion, or more likely link to a page within this site that explains why IQ is not something that is purely determined by environmental factors. If such a page doesn't exist, create it, and start providing studies that show this.
83 +* Use clear, concise language and avoid using slurs, slang, or troll like language. This isn't supposed to be encyclopedia dramatica, I'd like things to remain relatively mature and well thought out.
73 73  
74 -== Footnotes (`/footnote`, `/put footnotes`) ==
85 +== Directories and Page URLs ==
75 75  
76 -{{expandable summary="🧾 Footnote + PutFootnotes (`/footnote`, `/put footnotes`)"}}
77 -{{example}}
78 -This is a footnoted statement{{footnote}}https://www.example.com{{/footnote}}.
87 +* The categories I have made up should cover most content, but if you feel your content doesn't fit under them, feel free to make a new category. Moving pages and reorganizing content in this wiki is very easy.
79 79  
80 -{{putFootnotes/}}
81 -{{/example}}
82 -{{/expandable}}
89 +Here’s a consolidated guide tailored for your XWiki environment, integrating essential syntax, formatting options, and an overview of notable macros to enhance content creation and management.
83 83  
84 -----
91 +**1. XWiki Editing Modes**
85 85  
86 -== Expandable Macro (`/expandable`) ==
93 +XWiki offers multiple editing modes to accommodate various user preferences and technical requirements:
87 87  
88 -{{expandable summary="🧩 Expandable Macro (`/expandable`)"}}
89 -{{example}}
90 -{{expandable summary="Click to expand"}}
91 -This content is hidden until clicked.
92 -{{/expandable}}
93 -{{/example}}
94 -{{/expandable}}
95 +*. **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
96 +*. **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.
97 +*. **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.
95 95  
96 -----
99 +**Switching Between Syntaxes**
97 97  
98 -== Embed Macro (`/embed content`) ==
101 +XWiki supports multiple syntaxes, including XWiki 2.1, MediaWiki, and others. While it’s possible to switch a page’s syntax, exercise caution, as certain syntaxes may not fully support WYSIWYG editing. For instance, changing a page to MediaWiki syntax might limit the availability of the WYSIWYG editor. citeturn0search6
99 99  
100 -{{expandable summary="🌐 Embed Macro (YouTube etc.) (`/embed content`)"}}
101 -{{example}}
102 -{{embed url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"/}}
103 -{{/example}}
104 -{{/expandable}}
103 +**2. Essential Formatting Options**
105 105  
106 -----
105 +To ensure content is both engaging and accessible, utilize the following formatting techniques:
107 107  
108 -== Code Macro (`/code`) ==
107 +*. **Headings**: Organize content hierarchically using headings. In XWiki syntax, headings are defined by one to six plus signs (+), corresponding to heading levels 1 to 6.
109 109  
110 -{{expandable summary="💻 Code Block Macro (`/code`)"}}
111 -{{example}}
112 -{{code language="python"}}
113 -def hello_world():
114 - print("Hello, world!")
109 +
110 +{{code}}
111 + + Heading Level 1
112 + ++ Heading Level 2
113 + +++ Heading Level 3
115 115  {{/code}}
116 -{{/example}}
117 -{{/expandable}}
118 118  
119 -----
116 +
120 120  
121 -== Image Insert (`[[image:...]]`) ==
118 +*. **Text Formatting**: Apply styles such as bold, italics, and underlining to emphasize text.
122 122  
123 -{{expandable summary="🖼️ Image Macro (`[[image:filename.jpg]]`)"}}
124 -{{example}}
125 -[[image:1747262485678-297.png]]
126 -{{/example}}
127 -{{/expandable}}
120 +**. **Bold**: Surround text with double asterisks.
128 128  
129 -----
130 130  
131 -== Audio Embed (HTML tag or `/embed JWPlayer`) ==
123 +{{code}}
124 +**bold text**
125 +{{/code}}
126 +**. **Italics**: Use double underscores.
132 132  
133 -{{expandable summary="🔊 Audio Embed (`<audio>` tag or `/embed JWPlayer`)"}}
134 -{{example}}
135 -{{html}}
136 -<audio controls>
137 - <source src="/bin/download/Sandbox/TestPage2/Anti-Black%20racial%20slur%20was%20found%20written%20on%20high%20school%20desk%20in%20Rockville.mp3" type="audio/mpeg">
138 - Your browser does not support the audio element.
139 -</audio>
140 -{{/html}}
141 -{{/example}}
142 -{{/expandable}}
143 143  
144 -----
129 +{{code}}
130 +__italic text__
131 +{{/code}}
132 +**. **Underline**: Enclose text with double tildes.
145 145  
146 -== Video Embed Macro (`/video`) ==
147 147  
148 -{{expandable summary="🎬 Video Macro (`/video`)"}}
149 -{{example}}
150 -{{video url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"/}}
151 -{{/example}}
152 -{{/expandable}}
135 +{{code}}
136 +~~underlined text~~
137 +{{/code}}
138 +*. **Lists**: Create ordered and unordered lists for structured information.
153 153  
154 -----
140 +**. **Unordered List**: Begin lines with asterisk (*) or hyphen (-).
155 155  
156 -== Full Example: Expandable Study Summary (`/expandable`) ==
157 157  
158 -{{expandable summary="📚 Full Use Case – Study Summary Macro (`/expandable`)"}}
159 -{{example}}
160 -{{expandable summary="Study: The Wilson Effect"}}
161 -**Source:** *Twin Research and Human Genetics (2013)*
162 -**Author:** *Thomas J. Bouchard Jr.*
163 -**DOI:** [10.1017/thg.2013.54](https://doi.org/10.1017/thg.2013.54)
143 +{{code}}
144 +* Item 1
145 +* Item 2
146 +{{/code}}
147 +**. **Ordered List**: Start lines with a number followed by a period.
164 164  
165 -{{expandable summary="📊 Key Statistics"}}
166 -- IQ heritability rises to **0.80** by adulthood
167 -- Shared environment drops to **0.10**
168 -{{/expandable}}
169 169  
170 -{{expandable summary="🔬 Findings"}}
171 -- Genetic influence strengthens over time
172 -- Monozygotic twins’ IQ similarity increases with age
173 -{{/expandable}}
150 +{{code}}
151 +1. First item
152 +2. Second item
153 +{{/code}}
154 +*. **Links**: Insert internal and external links to connect related content.
174 174  
175 -{{expandable summary="📝 Critique & Observations"}}
176 -- Strength: Large dataset, longitudinal
177 -- Limitation: Mostly Western countries
178 -{{/expandable}}
156 +**. **Internal Link**: Use square brackets with the page name.
179 179  
180 -{{expandable summary="📌 Relevance"}}
181 -- Strong support for genetic IQ theories
182 -- Diminishing environmental influence
183 -{{/expandable}}
184 184  
185 -{{expandable summary="📄 Download"}}
186 -[[Download Full Study>>attach:10.1017_thg.2013.54.pdf]]
187 -{{/expandable}}
159 +{{code}}
160 +[[PageName]]
161 +{{/code}}
162 +**. **External Link**: Provide the URL directly.
188 188  
189 -{{/expandable}}
190 -{{/example}}
191 -{{/expandable}}
192 192  
193 -----
165 +{{code}}
166 +[https://www.example.com]
167 +{{/code}}
168 +*. **Images**: Embed images to enrich content.
194 194  
195 -== Bonus: Boilerplate Example Template ==
196 196  
197 -{{expandable summary="📋 Example Macro Template (`/example`)"}}
198 -{{example}}
199 -{{example}}
200 -Your macro goes here.
201 -{{/example}}
202 -{{/example}}
203 -{{/expandable}}
171 +{{code}}
172 + [[image:example.jpg]]
173 +{{/code}}
204 204  
175 +
176 +
177 +**3. Utilizing XWiki Macros**
178 +
179 +Macros are powerful tools in XWiki that allow for dynamic content inclusion and advanced formatting. Here are ten notable macros to consider:
180 +
181 +1. **Box Macro**: Encapsulates content within a styled box, useful for highlighting information.
182 +
183 +
184 +{{code}}
185 +{{box}}
186 +Your content here.
187 +{{/box}}
188 +{{/code}}
189 +
190 +
191 +1. **Info Macro**: Displays an informational message, often used for tips or notes.
192 +
193 +
194 +{{code}}
195 +{{info}}
196 +This is an informational note.
197 +{{/info}}
198 +{{/code}}
199 +
200 +
201 +1. **Warning Macro**: Highlights warnings or important notices.
202 +
203 +
204 +{{code}}
205 +{{warning}}
206 +Caution: Proceed with care.
207 +{{/warning}}
208 +{{/code}}
209 +
210 +
211 +1. **Code Macro**: Renders code snippets with syntax highlighting.
212 +
213 +
214 +{{code}}
215 +{{code language="python"}}
216 +def hello_world():
217 + print("Hello, world!")
218 +{{/code}}
219 +{{/code}}
220 +
221 +
222 +1. **Gallery Macro**: Creates an image gallery from attached images.
223 +
224 +
225 +{{code}}
226 +{{gallery}}
227 +[[image1.jpg]]
228 +[[image2.jpg]]
229 +{{/gallery}}
230 +{{/code}}
231 +
232 +
233 +1. **TOC (Table of Contents) Macro**: Generates a table of contents based on page headings.
234 +
235 +
236 +{{code}}
237 +{{toc/}}
238 +{{/code}}
239 +
240 +
241 +1. **Include Macro**: Embeds content from another page.
242 +
243 +
244 +{{code}}
245 +{{include reference="PageName"/}}
246 +{{/code}}
247 +
248 +
249 +1. **Display Macro**: Displays the content of another document or an object property.
250 +
251 +
252 +{{code}}
253 +{{display reference="PageName"/}}
254 +{{/code}}
255 +
256 +
257 +1. **Velocity Macro**: Executes Velocity scripts for dynamic content generation.
258 +
259 +
260 +{{code}}
261 +{{velocity}}
262 +#set($greeting = "Hello, $user.name!")
263 +$greeting
264 +{{/velocity}}
265 +{{/code}}
266 +
267 +
268 +1. **HTML Macro**: Allows the inclusion of
1747262485678-297.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.AdminAngriff
Size
... ... @@ -1,1 +1,0 @@
1 -1.6 MB
Content