0 Votes

Wiki source code of Start here if you're new

Version 27.1 by Ryan C on 2025/05/14 15:40

Hide last authors
Ryan C 5.1 1 = =
Ryan C 1.1 2
Ryan C 4.1 3 ----
Ryan C 1.1 4
Ryan C 12.1 5 == ==
Ryan C 1.1 6
Ryan C 4.1 7 == 📖 Table of Contents: ==
Ryan C 1.1 8
Ryan C 8.1 9 {{toc/}}
Ryan C 1.1 10
Ryan C 4.1 11 ----
Ryan C 1.1 12
Ryan C 12.1 13 == Getting Started with XWiki ==
14
Ryan C 23.1 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**:
Ryan C 22.1 16
Ryan C 26.1 17 ----
Ryan C 22.1 18
Ryan C 25.1 19 ## 🧪 1. **Macro Showcase: Source-to-Output Toggle**##
Ryan C 22.1 20
21 Show how a macro works without cluttering the page with raw syntax.
22
Ryan C 23.1 23
Ryan C 22.1 24 == Gallery Macro ==
Ryan C 23.1 25
Ryan C 22.1 26 {{example}}
27 {{gallery}}
28 [[image:photo1.jpg]]
29 [[image:photo2.jpg]]
30 {{/gallery}}
31 {{/example}}
32
33
34 == Boilerplate Box ==
Ryan C 25.1 35
Ryan C 22.1 36 {{example}}
37 {{box cssClass="highlight"}}
38 Insert your highlighted content here.
39 {{/box}}
40 {{/example}}
41
42 == Velocity Greeting ==
Ryan C 25.1 43
Ryan C 22.1 44 {{example}}
45 {{velocity}}
46 #set($name = "Visitor")
47 Hello, $name!
48 {{/velocity}}
49 {{/example}}
50
51
52 == Info vs Warning ==
Ryan C 25.1 53
Ryan C 22.1 54 {{example}}
Ryan C 25.1 55 {{info}}
56 This is an info box.
57 {{/info}}
Ryan C 22.1 58
Ryan C 25.1 59 {{warning}}
60 This is a warning box.
61 {{/warning}}
Ryan C 22.1 62 {{/example}}
63
64 == Footnote Demo ==
Ryan C 27.1 65 {{example}}
Ryan C 26.1 66 footnote{{footnote}} https://www.thewhitearchive.org/bin/view/Guides%20and%20Help/Start%20here%20if%20you're%20new/#edit{{/footnote}}
Ryan C 24.1 67
Ryan C 26.1 68 {{putFootnotes/}}
Ryan C 27.1 69 {{/example}}
Ryan C 26.1 70
71
Ryan C 22.1 72 == Groovy Lookup ==
Ryan C 25.1 73
Ryan C 22.1 74 {{example}}
75 {{groovy}}
76 def now = new Date()
77 println("Current time: " + now)
78 {{/groovy}}
79 {{/example}}
80
81
82 == Expandable Summary ==
Ryan C 25.1 83
Ryan C 22.1 84 {{example}}
85 {{expandable summary="🧠 Study Summary"}}
86 Key findings go here.
87 {{/expandable}}
88 {{/example}}
89
90 == List Formatting ==
Ryan C 25.1 91
Ryan C 22.1 92 {{example}}
93 *Bad formatting*
Ryan C 25.1 94
Ryan C 22.1 95 * use - inconsistently
96 ** Good formatting:
Ryan C 25.1 97 * Consistent bullet style
98 * Indented items properly
Ryan C 22.1 99 {{/example}}
100
101 == Python Code ==
Ryan C 25.1 102
Ryan C 22.1 103 {{example}}
104 {{code language="python"}}
105 def greet():
106 print("Hello World")
107 {{/code}}
108 {{/example}}
109
Ryan C 23.1 110 == Audio Embedding ==
Ryan C 25.1 111
Ryan C 23.1 112 {{example}}
113 {{html}}
114 <audio controls>
115 <source src="/bin/download/Sandbox/TestPage2/Anti-Black%20racial%20slur%20was%20found%20written%20on%20high%20school%20desk%20in%20Rockville.mp3" type="audio/mpeg">
116 Your browser does not support the audio element.
117 </audio>
118 {{/html}}
119 {{/example}}
Ryan C 24.1 120
Ryan C 12.1 121 This page covers all the essential steps and tips you need to create great content in XWiki without any confusion.
122
Ryan C 25.1 123 == ==
Ryan C 12.1 124
Ryan C 7.1 125 == 📎 **Attachments and Images** ==
Ryan C 1.1 126
Ryan C 2.1 127 You can easily upload files and images directly from the WYSIWYG editor:
Ryan C 1.1 128
Ryan C 2.1 129 **Uploading Attachments:**
Ryan C 1.1 130
Ryan C 2.1 131 * Click **Edit** to enter the WYSIWYG editor.
132 * Click on the **Attachment** icon (📎 paperclip icon).
133 * Drag-and-drop or select your file to upload it instantly.
134 * Uploaded files will automatically be listed as attachments at the bottom of your page.
Ryan C 1.1 135
Ryan C 7.1 136 === **Inserting Images with Enlargable Thumbnails** ===
Ryan C 1.1 137
Ryan C 2.1 138 1. In the editor, click the **"Insert Image"** icon from the toolbar.
139 1. Upload or select the image.
140 1. Choose the **Thumbnail option** to create a clickable enlargable preview automatically.
Ryan C 1.1 141
Ryan C 4.1 142 ----
Ryan C 1.1 143
Ryan C 7.1 144 == ⚡ **Using the / Macro Shortcut** ==
Ryan C 2.1 145
146 The / macro shortcut is a powerful and quick way to insert macros while editing pages in XWiki's WYSIWYG editor:
147
148 * Simply type / and start typing the macro name or feature you want to add.
149 * You'll see suggestions appear as you type. Select the macro to insert it directly without manual syntax.
150 * Example macros include:
Ryan C 4.1 151 ** /toc – Table of Contents
152 ** /box – Insert Box Macro
153 ** /gallery – Image Gallery
154 ** /footnote – Add footnotes to your text
155 ** /code – Code blocks for programming snippets
Ryan C 2.1 156
157 This shortcut dramatically speeds up editing, no need to memorize complicated wiki syntax.
158
Ryan C 4.1 159 ----
Ryan C 2.1 160
Ryan C 8.1 161 == ✏️** Basic Formatting and Links (Quick Guide)** ==
Ryan C 2.1 162
163 * **Bold text**: Select text, click the **Bold** button or press Ctrl + B.
164 * **Italic text**: Select text, click "Italic" in the toolbar or use Ctrl+I.
165 * **Creating Links**:
Ryan C 4.1 166 ** Highlight text and click **"Link"** or use shortcut Ctrl+K.
167 ** Paste or select the page URL to link internally.
Ryan C 2.1 168
Ryan C 4.1 169 ----
Ryan C 2.1 170
Ryan C 7.1 171 == 🔍 **Useful Tips & Best Practices** ==
Ryan C 2.1 172
173 * **Save drafts frequently:** Press Ctrl+S regularly.
174 * **Macros** greatly simplify content formatting—use / often.
175 * **Edit attachments:** Hover attachments directly below your page in view mode to manage or delete them.
176 * **Use minimal formatting** to ensure readability.
177
Ryan C 4.1 178 ----
Ryan C 2.1 179
Ryan C 7.1 180 = ⚡**Guests can contribute** =
Ryan C 2.1 181
Ryan C 3.1 182 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.
Ryan C 2.1 183 1. Use Your Sandbox on the left, mess around with macros and other editing options. There's a lot of options to customize content.
Ryan C 3.1 184 1. Leave comments, give suggestions, request features.
Ryan C 2.1 185
Ryan C 7.1 186 == **Content Guidelines** ==
Ryan C 2.1 187
Ryan C 4.1 188 * 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.
Ryan C 2.1 189 * 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.
190
Ryan C 7.1 191 == **Directories and Page URLs** ==
Ryan C 2.1 192
Ryan C 3.1 193 * 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.
Ryan C 6.1 194
195
196
Ryan C 7.1 197 == **XWiki Editing Modes** ==
198
Ryan C 6.1 199 XWiki offers multiple editing modes to accommodate various user preferences and technical requirements:
200
Ryan C 7.1 201 * **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
202 * **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.
203 * **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.
Ryan C 6.1 204
Ryan C 7.1 205 == **Essential Formatting Options** ==
Ryan C 6.1 206
207 To ensure content is both engaging and accessible, utilize the following formatting techniques:
208
Ryan C 7.1 209 * **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.
Ryan C 6.1 210
211 {{code}}
212 + Heading Level 1
213 ++ Heading Level 2
214 +++ Heading Level 3
215 {{/code}}
216
217
Ryan C 7.1 218 === **Text Formatting** ===
Ryan C 6.1 219
220
Ryan C 9.1 221
Ryan C 18.1 222 *
Ryan C 7.1 223 ** (((
224 === **Bold**: Surround text with double asterisks. ===
225 )))
Ryan C 6.1 226
227 {{code}}
228 **bold text**
229 {{/code}}
230
Ryan C 9.1 231
Ryan C 18.1 232 *
Ryan C 7.1 233 ** (((
234 === **Italics**: Use double underscores. ===
235 )))
Ryan C 6.1 236
237 {{code}}
238 __italic text__
239 {{/code}}
240
Ryan C 9.1 241
Ryan C 18.1 242 *
Ryan C 7.1 243 ** (((
244 === **Underline**: Enclose text with double tildes. ===
245 )))
Ryan C 6.1 246
247 {{code}}
248 ~~underlined text~~
249 {{/code}}
250
251
Ryan C 18.1 252 *
Ryan C 7.1 253 ** (((
254 === **Unordered List**: Begin lines with asterisk (*) or hyphen (-). ===
255 )))
Ryan C 6.1 256
257 {{code}}
258 * Item 1
259 * Item 2
260 {{/code}}
261
Ryan C 9.1 262
Ryan C 18.1 263 *
Ryan C 7.1 264 ** (((
265 === **Ordered List**: Start lines with a number followed by a period. ===
266 )))
Ryan C 6.1 267
268 {{code}}
269 1. First item
270 2. Second item
271 {{/code}}
272
273
Ryan C 9.1 274 == **Links** ==
Ryan C 6.1 275
Ryan C 7.1 276
Ryan C 10.1 277
Ryan C 12.1 278 ==== **Internal Link**: Use square brackets with the page name. ====
Ryan C 10.1 279
Ryan C 6.1 280 {{code}}
281 [[PageName]]
282 {{/code}}
283
284
Ryan C 11.1 285
Ryan C 12.1 286 ==== **External Link**: Provide the URL directly. ====
Ryan C 11.1 287
Ryan C 6.1 288 {{code}}
289 [https://www.example.com]
290 {{/code}}
291
Ryan C 12.1 292 (((
Ryan C 7.1 293 === **Images** ===
294 )))
Ryan C 6.1 295
296 {{code}}
297 [[image:example.jpg]]
298 {{/code}}
299
300
Ryan C 7.1 301 == **Utilizing XWiki Macros** ==
Ryan C 6.1 302
303 Macros are powerful tools in XWiki that allow for dynamic content inclusion and advanced formatting. Here are ten notable macros to consider:
304
Ryan C 15.1 305 == Embed Macro ==
Ryan C 6.1 306
Ryan C 15.1 307 The Embed macro shows external content like YouTube videos.
Ryan C 6.1 308
Ryan C 15.1 309 {{example}}
310 {{embed url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"/}}
311 {{/example}}
Ryan C 6.1 312
Ryan C 15.1 313
Ryan C 9.1 314 === **Info Macro**: Displays an informational message, often used for tips or notes. ===
Ryan C 6.1 315
316 {{code}}
317 {{info}}
318 This is an informational note.
319 {{/info}}
320 {{/code}}
321
322
Ryan C 15.1 323 == Footnote Macro ==
Ryan C 6.1 324
Ryan C 15.1 325 The Footnote macro adds footnotes to the page.
Ryan C 6.1 326
Ryan C 15.1 327 {{example}}
328 This is a statement{{footnote}}Source: Example Reference{{/footnote}}.
329 {{putFootnotes/}}
330 {{/example}}
Ryan C 6.1 331
Ryan C 15.1 332
Ryan C 9.1 333 === **Code Macro**: Renders code snippets with syntax highlighting. ===
Ryan C 6.1 334
335 {{code}}
336 {{code language="python"}}
337 def hello_world():
338 print("Hello, world!")
339 {{/code}}
340 {{/code}}
341
342
Ryan C 9.1 343 === **Gallery Macro**: Creates an image gallery from attached images. ===
Ryan C 6.1 344
345 {{code}}
346 {{gallery}}
347 [[image1.jpg]]
348 [[image2.jpg]]
349 {{/gallery}}
350 {{/code}}
351
352
Ryan C 7.1 353 === **TOC (Table of Contents) Macro**: Generates a table of contents based on page headings. ===
Ryan C 6.1 354
355 {{code}}
356 {{toc/}}
357 {{/code}}
358
Ryan C 15.1 359 == Video Macro ==
Ryan C 6.1 360
Ryan C 15.1 361 The Video macro embeds videos.
Ryan C 6.1 362
Ryan C 15.1 363 {{example}}
364 {{video url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"/}}
365 {{/example}}
Ryan C 6.1 366
Ryan C 22.1 367
368 == Example Macro ==
369
370 The example macro displays the output of a macro or script or anything that you like
Ryan C 25.1 371
Ryan C 15.1 372 == Expandable Macro ==
Ryan C 6.1 373
Ryan C 18.1 374 The following example demonstrates how to present complex information cleanly using `
375
Ryan C 21.1 376 {{example}}
Ryan C 17.1 377 {{expandable summary="Study: The Wilson Effect: The Increase in Heritability of IQ With Age"}}
378 **Source:** *Twin Research and Human Genetics (Cambridge University Press)*
379 **Date of Publication:** *2013*
380 **Author(s):** *Thomas J. Bouchard Jr.*
381 **Title:** *"The Wilson Effect: The Increase in Heritability of IQ With Age"*
382 **DOI:** [10.1017/thg.2013.54](https://doi.org/10.1017/thg.2013.54)
383 **Subject Matter:** *Intelligence, Heritability, Developmental Psychology*
Ryan C 6.1 384
Ryan C 15.1 385 {{expandable summary="📊 Key Statistics"}}
Ryan C 17.1 386 1. **General Observations:**
387 - The study documents how the **heritability of IQ increases with age**, reaching an asymptote at **0.80 by adulthood**.
388 - Analysis is based on **longitudinal twin and adoption studies**.
389
390 2. **Subgroup Analysis:**
391 - Shared environmental influence on IQ **declines with age**, reaching **0.10 in adulthood**.
392 - Monozygotic twins show **increasing genetic similarity in IQ over time**, while dizygotic twins become **less concordant**.
393
394 3. **Other Significant Data Points:**
395 - Data from the **Louisville Longitudinal Twin Study and cross-national twin samples** support findings.
396 - IQ stability over time is **influenced more by genetics than by shared environmental factors**.
Ryan C 15.1 397 {{/expandable}}
Ryan C 6.1 398
Ryan C 15.1 399 {{expandable summary="🔬 Findings"}}
Ryan C 17.1 400 1. **Primary Observations:**
401 - Intelligence heritability **strengthens throughout development**, contrary to early environmental models.
402 - Shared environmental effects **decrease by late adolescence**, emphasizing **genetic influence in adulthood**.
403
404 2. **Subgroup Trends:**
405 - Studies from **Scotland, Netherlands, and the US** show **consistent patterns of increasing heritability with age**.
406 - Findings hold across **varied socio-economic and educational backgrounds**.
407
408 3. **Specific Case Analysis:**
409 - Longitudinal adoption studies show **declining impact of adoptive parental influence on IQ** as children age.
410 - Cross-sectional twin data confirm **higher IQ correlations for monozygotic twins in adulthood**.
Ryan C 15.1 411 {{/expandable}}
Ryan C 6.1 412
Ryan C 17.1 413 {{expandable summary="📝 Critique & Observations"}}
414 1. **Strengths of the Study:**
415 - **Robust dataset covering multiple twin and adoption studies over decades**.
416 - **Clear, replicable trend** demonstrating the increasing role of genetics in intelligence.
417
418 2. **Limitations of the Study:**
419 - Findings apply primarily to **Western industrialized nations**, limiting generalizability.
420 - **Lack of neurobiological mechanisms** explaining how genes express their influence over time.
421
422 3. **Suggestions for Improvement:**
423 - Future research should investigate **gene-environment interactions in cognitive aging**.
424 - Examine **heritability trends in non-Western populations** to determine cross-cultural consistency.
Ryan C 15.1 425 {{/expandable}}
Ryan C 6.1 426
Ryan C 17.1 427 {{expandable summary="📌 Relevance to Subproject"}}
428 - Provides **strong evidence for the genetic basis of intelligence**.
429 - Highlights the **diminishing role of shared environment in cognitive development**.
430 - Supports research on **cognitive aging and heritability across the lifespan**.
Ryan C 15.1 431 {{/expandable}}
Ryan C 6.1 432
Ryan C 17.1 433 {{expandable summary="🔍 Suggestions for Further Exploration"}}
434 1. Investigate **neurogenetic pathways underlying IQ development**.
435 2. Examine **how education and socioeconomic factors interact with genetic IQ influences**.
436 3. Study **heritability trends in aging populations and cognitive decline**.
Ryan C 15.1 437 {{/expandable}}
438
Ryan C 17.1 439 {{expandable summary="📄 Download Full Study"}}
440 [[Download Full Study>>attach:10.1017_thg.2013.54.pdf]]
Ryan C 15.1 441 {{/expandable}}
442 {{/expandable}}
Ryan C 21.1 443 {{/example}}
Ryan C 20.1 444
Ryan C 22.1 445
Ryan C 25.1 446

XWiki AI Chat