0 Votes

Start here if you're new

Version 30.1 by Ryan C on 2025/05/14 15:46
Warning
For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.


πŸ“– Table of Contents:


Getting Started with XWiki

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:


 πŸ§ͺ 1. Macro Showcase: Source-to-Output Toggle

In this section we will go over many of the common macros used. The source code is how you use the macro editing in Wiki mode. If you are doing standard WYSIWYG edit mode (the default mode you get when you click edit instead of the dropdown), you can call most of these macros by simply typing /thecommand 

Gallery Macro `/gallery`

{{gallery}}
[[1747262485678-297.png]]
[[image:photo2.jpg]]
{{/gallery}}

Boilerplate Box

Insert your highlighted content here.

{{box cssClass="highlight"}}
Insert your highlighted content here.
{{/box}}

Velocity Greeting

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [xwiki:Guides and Help.Start here if you're new.WebHome]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

{{velocity}}
#set($name = "Visitor")
Hello, $name!
{{/velocity}}

Info vs Warning

Information

This is an info box.

Warning

This is a warning box.

{{info}}
This is an info box.
{{/info}}

{{warning}}
This is a warning box.
{{/warning}}

Footnote Demo

footnote{{footnote}} https://www.thewhitearchive.org/bin/view/Guides%20and%20Help/Start%20here%20if%20you're%20new/#edit{{/footnote}}

{{putFootnotes/}}

Groovy Lookup

Failed to execute the [groovy] macro. Cause: [The execution of the [groovy] script macro is not allowed in [xwiki:Guides and Help.Start here if you're new.WebHome]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

{{groovy}}
def now = new Date()
println("Current time: " + now)
{{/groovy}}

Expandable Summary

🧠 Study Summary

Key findings go here.

{{expandable summary="🧠 Study Summary"}}
Key findings go here.
{{/expandable}}

List Formatting

*Bad formatting*

  • use - inconsistently
    • Good formatting:
  • Consistent bullet style
  • Indented items properly
*Bad formatting*

* use - inconsistently
** Good formatting:
* Consistent bullet style
* Indented items properly

Python Code

def greet():
   print("Hello World")
{{code language="python"}}
def greet():
    print("Hello World")
{{/code}}

Audio Embedding

{{html}}
<audio controls>
  <source src="/bin/download/Sandbox/TestPage2/Anti-Black%20racial%20slur%20was%20found%20written%20on%20high%20school%20desk%20in%20Rockville.mp3" type="audio/mpeg">
  Your browser does not support the audio element.
</audio>
{{/html}}

This page covers all the essential steps and tips you need to create great content in XWiki without any confusion.

πŸ“Ž Attachments and Images

You can easily upload files and images directly from the WYSIWYG editor:

Uploading Attachments:

  • Click Edit to enter the WYSIWYG editor.
  • Click on the Attachment icon (πŸ“Ž paperclip icon).
  • Drag-and-drop or select your file to upload it instantly.
  • Uploaded files will automatically be listed as attachments at the bottom of your page.

Inserting Images with Enlargable Thumbnails

  1. In the editor, click the "Insert Image" icon from the toolbar.
  2. Upload or select the image.
  3. Choose the Thumbnail option to create a clickable enlargable preview automatically.

1747262485678-297.png


⚑ Using the / Macro Shortcut

The / macro shortcut is a powerful and quick way to insert macros while editing pages in XWiki's WYSIWYG editor:

  • Simply type / and start typing the macro name or feature you want to add.
  • You'll see suggestions appear as you type. Select the macro to insert it directly without manual syntax.
  • Example macros include:
    • /toc – Table of Contents
    • /box – Insert Box Macro
    • /gallery – Image Gallery
    • /footnote – Add footnotes to your text
    • /code – Code blocks for programming snippets

This shortcut dramatically speeds up editing, no need to memorize complicated wiki syntax.


✏️ Basic Formatting and Links (Quick Guide)

  • Bold text: Select text, click the Bold button or press Ctrl + B.
  • Italic text: Select text, click "Italic" in the toolbar or use Ctrl+I.
  • Creating Links:
    • Highlight text and click "Link" or use shortcut Ctrl+K.
    • Paste or select the page URL to link internally.

πŸ” Useful Tips & Best Practices

  • Save drafts frequently: Press Ctrl+S regularly.
  • Macros greatly simplify content formattingβ€”use / often.
  • Edit attachments: Hover attachments directly below your page in view mode to manage or delete them.
  • Use minimal formatting to ensure readability.

⚑Guests can contribute

  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.
  2. Use Your Sandbox on the left, mess around with macros and other editing options. There's a lot of options to customize content.
  3. Leave comments, give suggestions, request features.

Content Guidelines

  • 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 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.
  • 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.

Directories and Page URLs

  • 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.

XWiki Editing Modes

XWiki offers multiple editing modes to accommodate various user preferences and technical requirements:ξˆ†

  • 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ξˆξˆ†
  • 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.ξˆ†
  • 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.ξˆ†

Essential Formatting Options

To ensure content is both engaging and accessible, utilize the following formatting techniques:ξˆ†

  • Headings: Organize content hierarchically using headings. In XWiki syntax, headings are defined by one to six plus signs add, corresponding to heading levels 1 to 6.ξˆ†
  + Heading Level 1
 ++ Heading Level 2
 +++ Heading Level 3

Text Formatting


    • Bold: Surround text with double asterisks.

**bold text**

    • Italics: Use double underscores.

__italic text__

    • Underline: Enclose text with double tildes.

~~underlined text~~

    • Unordered List: Begin lines with asterisk star or hyphen delete.

* Item 1
* Item 2

    • Ordered List: Start lines with a number followed by a period.

1. First item
2. Second item

Internal Link: Use square brackets with the page name.

[[PageName]]

External Link: Provide the URL directly.

[https://www.example.com]

Images

  [[image:example.jpg]]

Utilizing XWiki Macros

Macros are powerful tools in XWiki that allow for dynamic content inclusion and advanced formatting. Here are ten notable macros to consider:ξˆ†

Embed Macro

The Embed macro shows external content like YouTube videos.

{{embed url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"/}}

Info Macro: Displays an informational message, often used for tips or notes.

{{info}}
This is an informational note.
{{/info}}

Footnote Macro

The Footnote macro adds footnotes to the page.

This is a statement2.
The [putFootnotes] macro is a standalone macro and it cannot be used inline. Click on this message for details.

This is a statement{{footnote}}Source: Example Reference{{/footnote}}.
{{putFootnotes/}}

Code Macro: Renders code snippets with syntax highlighting.

{{code language="python"}}
def hello_world():
    print("Hello, world!")
{{/code}}

Gallery Macro: Creates an image gallery from attached images.

{{gallery}}
[[image1.jpg]]
[[image2.jpg]]
{{/gallery}}

TOC (Table of Contents) Macro: Generates a table of contents based on page headings.

{{toc/}}

Video Macro

The Video macro embeds videos.


{{video url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"/}}

Example Macro

The example macro displays the output of a macro or script or anything that you like 

Expandable Macro

The following example demonstrates how to present complex information cleanly using `

Study: The Wilson Effect: The Increase in Heritability of IQ With Age

Source: *Twin Research and Human Genetics (Cambridge University Press)*
Date of Publication: *2013*
Author(s): *Thomas J. Bouchard Jr.*
Title: *"The Wilson Effect: The Increase in Heritability of IQ With Age"*
DOI: [10.1017/thg.2013.54](https://doi.org/10.1017/thg.2013.54)
Subject Matter: *Intelligence, Heritability, Developmental Psychology*

πŸ“Š Key Statistics
  1. General Observations:
       - The study documents how the heritability of IQ increases with age, reaching an asymptote at 0.80 by adulthood.
       - Analysis is based on longitudinal twin and adoption studies.

2. Subgroup Analysis:
   - Shared environmental influence on IQ declines with age, reaching 0.10 in adulthood.
   - Monozygotic twins show increasing genetic similarity in IQ over time, while dizygotic twins become less concordant.

3. Other Significant Data Points:
   - Data from the Louisville Longitudinal Twin Study and cross-national twin samples support findings.
   - IQ stability over time is influenced more by genetics than by shared environmental factors.

πŸ”¬ Findings
  1. Primary Observations:
       - Intelligence heritability strengthens throughout development, contrary to early environmental models.
       - Shared environmental effects decrease by late adolescence, emphasizing genetic influence in adulthood.

2. Subgroup Trends:
   - Studies from Scotland, Netherlands, and the US show consistent patterns of increasing heritability with age.
   - Findings hold across varied socio-economic and educational backgrounds.

3. Specific Case Analysis:
   - Longitudinal adoption studies show declining impact of adoptive parental influence on IQ as children age.
   - Cross-sectional twin data confirm higher IQ correlations for monozygotic twins in adulthood.

πŸ“ Critique & Observations
  1. Strengths of the Study:
       - Robust dataset covering multiple twin and adoption studies over decades.
       - Clear, replicable trend demonstrating the increasing role of genetics in intelligence.

2. Limitations of the Study:
   - Findings apply primarily to Western industrialized nations, limiting generalizability.
   - Lack of neurobiological mechanisms explaining how genes express their influence over time.

3. Suggestions for Improvement:
   - Future research should investigate gene-environment interactions in cognitive aging.
   - Examine heritability trends in non-Western populations to determine cross-cultural consistency.

πŸ“Œ Relevance to Subproject

- Provides strong evidence for the genetic basis of intelligence.
- Highlights the diminishing role of shared environment in cognitive development.
- Supports research on cognitive aging and heritability across the lifespan.

πŸ” Suggestions for Further Exploration
  1. Investigate neurogenetic pathways underlying IQ development.
    2. Examine how education and socioeconomic factors interact with genetic IQ influences.
    3. Study heritability trends in aging populations and cognitive decline.
{{expandable summary="Study: The Wilson Effect: The Increase in Heritability of IQ With Age"}}
**Source:** *Twin Research and Human Genetics (Cambridge University Press)*
**Date of Publication:** *2013*
**Author(s):** *Thomas J. Bouchard Jr.*
**Title:** *"The Wilson Effect: The Increase in Heritability of IQ With Age"*
**DOI:** [10.1017/thg.2013.54](https://doi.org/10.1017/thg.2013.54)
**Subject Matter:** *Intelligence, Heritability, Developmental Psychology*

{{expandable summary="πŸ“Š Key Statistics"}}
1. **General Observations:**
   - The study documents how the **heritability of IQ increases with age**, reaching an asymptote at **0.80 by adulthood**.
   - Analysis is based on **longitudinal twin and adoption studies**.

2. **Subgroup Analysis:**
   - Shared environmental influence on IQ **declines with age**, reaching **0.10 in adulthood**.
   - Monozygotic twins show **increasing genetic similarity in IQ over time**, while dizygotic twins become **less concordant**.

3. **Other Significant Data Points:**
   - Data from the **Louisville Longitudinal Twin Study and cross-national twin samples** support findings.
   - IQ stability over time is **influenced more by genetics than by shared environmental factors**.
{{/expandable}}

{{expandable summary="πŸ”¬ Findings"}}
1. **Primary Observations:**
   - Intelligence heritability **strengthens throughout development**, contrary to early environmental models.
   - Shared environmental effects **decrease by late adolescence**, emphasizing **genetic influence in adulthood**.

2. **Subgroup Trends:**
   - Studies from **Scotland, Netherlands, and the US** show **consistent patterns of increasing heritability with age**.
   - Findings hold across **varied socio-economic and educational backgrounds**.

3. **Specific Case Analysis:**
   - Longitudinal adoption studies show **declining impact of adoptive parental influence on IQ** as children age.
   - Cross-sectional twin data confirm **higher IQ correlations for monozygotic twins in adulthood**.
{{/expandable}}

{{expandable summary="πŸ“ Critique & Observations"}}
1. **Strengths of the Study:**
   - **Robust dataset covering multiple twin and adoption studies over decades**.
   - **Clear, replicable trend** demonstrating the increasing role of genetics in intelligence.

2. **Limitations of the Study:**
   - Findings apply primarily to **Western industrialized nations**, limiting generalizability.
   - **Lack of neurobiological mechanisms** explaining how genes express their influence over time.

3. **Suggestions for Improvement:**
   - Future research should investigate **gene-environment interactions in cognitive aging**.
   - Examine **heritability trends in non-Western populations** to determine cross-cultural consistency.
{{/expandable}}

{{expandable summary="πŸ“Œ Relevance to Subproject"}}
- Provides **strong evidence for the genetic basis of intelligence**.
- Highlights the **diminishing role of shared environment in cognitive development**.
- Supports research on **cognitive aging and heritability across the lifespan**.
{{/expandable}}

{{expandable summary="πŸ” Suggestions for Further Exploration"}}
1. Investigate **neurogenetic pathways underlying IQ development**.
2. Examine **how education and socioeconomic factors interact with genetic IQ influences**.
3. Study **heritability trends in aging populations and cognitive decline**.
{{/expandable}}

{{expandable summary="πŸ“„ Download Full Study"}}
[[Download Full Study>>attach:10.1017_thg.2013.54.pdf]]
{{/expandable}}
{{/expandable}}