๐ Table of Contents:
- โกGuests can contribute
- Content Guidelines
- Directories and Page URLs
- XWiki Editing Modes
- Essential Formatting Options
- Links
- Utilizing XWiki Macros
- Info Macro: Displays an informational message, often used for tips or notes
- Warning Macro: Highlights warnings or important notices
- Code Macro: Renders code snippets with syntax highlighting
- Gallery Macro: Creates an image gallery from attached images
- TOC (Table of Contents) Macro: Generates a table of contents based on page headings
- Include Macro: Embeds content from another page
- Display Macro: Displays the content of another document or an object property
- Velocity Macro: Executes Velocity scripts for dynamic content generation
- See Also
Getting Started with XWiki
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
- In the editor, click the "Insert Image" icon from the toolbar.
- Upload or select the image.
- Choose the Thumbnail option to create a clickable enlargable preview automatically.
โก 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
- 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.
- Use Your Sandbox on the left, mess around with macros and other editing options. There's a lot of options to customize content.
- 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.๎
Switching Between Syntaxes
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๎๎
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
, corresponding to heading levels 1 to 6.๎
++ Heading Level 2
+++ Heading Level 3
Text Formatting
Bold: Surround text with double asterisks.
Italics: Use double underscores.
Underline: Enclose text with double tildes.
Unordered List: Begin lines with asterisk
or hyphen
.
* Item 2
Ordered List: Start lines with a number followed by a period.
2. Second item
Links
Internal Link: Use square brackets with the page name.
External Link: Provide the URL directly.
Images
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:๎
Box Macro: Encapsulates content within a styled box, useful for highlighting information.
Your content here.
{{/box}}
Info Macro: Displays an informational message, often used for tips or notes.
This is an informational note.
{{/info}}
Warning Macro: Highlights warnings or important notices.
Caution: Proceed with care.
{{/warning}}
Code Macro: Renders code snippets with syntax highlighting.
def hello_world():
print("Hello, world!")
{{/code}}
Gallery Macro: Creates an image gallery from attached images.
[[image1.jpg]]
[[image2.jpg]]
{{/gallery}}
TOC (Table of Contents) Macro: Generates a table of contents based on page headings.
Include Macro: Embeds content from another page.
Display Macro: Displays the content of another document or an object property.
Velocity Macro: Executes Velocity scripts for dynamic content generation.
#set($greeting = "Hello, $user.name!")
$greeting
{{/velocity}}
See Also:
Syntax Help official documentation for a full list of formatting options