0 Votes

the_basics

Last modified by Ryan C on 2025/03/14 17:15

πŸ“š Markdown Writing Guide for The White Archive Wiki

Welcome to the Markdown Writing Guide for The White Archive Wiki! This guide will help you write clean, well-organized pages in Markdown, making it easy for users to read and navigate content.

Editors note: I'm not this into firearms I swear, I think the AI was just uncomfortable saying politically incorrect things. So calm it down glowies.


βœ… Quick Markdown Reference

FeatureMarkdown Syntax
Header 1# Header 1
Bullet List- Item
Numbered List1. Item
Internal Link[/path/to/page]
External Link[Text](URL)
Image![Alt Text](path/to/image)
Blockquote> Quote
Table| Column | Column |
Code Block```bash
Task List- [ ] Task
Bold**Bold**
Italic_Italic_

πŸ–‹οΈ Markdown Basics for Wiki Pages

Markdown is a lightweight language used to convert plain text into structured HTML. It’s simple to learn and helps ensure consistency across all Wiki pages.


πŸ”€ 1. Headers (Titles and Subtitles)

Headers are used to organize content into sections and subsections. The more # symbols you use, the smaller the header.

Markdown SyntaxRendered Output
# Title (Header 1)🟒 Title (Header 1)
## Subtitle (Header 2)🟒 Subtitle (Header 2)
### Section (Header 3)🟒 Section (Header 3)

Example:

# The History of Firearms

## Early Developments

### Innovations in the 20th Century

πŸ“‹ 2. Lists (Bullet Points and Numbered Lists)

Use lists to organize ideas or break down content into digestible points.

πŸ”Ή Bullet Points

Use - or * to create bullet points.

- First Bullet Point
- Second Bullet Point
  - Sub-bullet Point

Output:

  • First Bullet Point
  • Second Bullet Point
    • Sub-bullet Point

πŸ”’ Numbered Lists

To create ordered lists, simply use numbers followed by a period.

1. First item
2. Second item
   1. Sub-item

Output:

  1. First item
  2. Second item
    1. Sub-item

πŸ”— 3. Links (Internal and External)

Use the following format to link to other pages within the wiki. Make sure to include the / at the start of the page path.

[Page Title](/path-to-page)   [Black Crime](/black-crime)

Black Crime

Note in the example above a couple things. If the text you wrap in brackets matches a page name it will automatically fill out the rest once you put in the: (/

The page title wrapped in brackets can be anything you want, it doesn't have to match the page name or path. For Example:

[this Can Say anything](/black-crime)

Will still output a link to the page black crime, but the link itself will display what you wrap in brackets.

this can say anything

The path IS case sensitive, and must begin with / for you to use only the page directory. If you dont put the / you would have to include a full link.

[full link example](https://thewhitearchive.org/en/black-crime)

Outputs full link example


🌐 External Links (Websites)

For external links, use the standard Markdown format:

[Text](https://example.com)

πŸ–Ό 4. Images

Embedding Images

Embed images in your pages using markdown

   ![categories.jpg](/categories.jpg)

categories

For clickable images that open larger versions in a new page:

<a href="/imagename.jpg">
    <img src="/imagenamethumb.jpg" alt="Image 1">
</a>

renders as

Image 1

when you replace the imagename with the uploaded file name. Note for this to work you must upload 2 images, one for the thumbnail one for the bigger image.

This way is easier to remember but you can do either in markdown.  [![categories](https://www.thewhitearchive.org/categoriesthumb.jpg)](https://www.thewhitearchive.org/categories.jpg))

This renders as

![[categories

If you're having trouble with it showing up, the important part is the ![ex](fulllink)] then just put the larger image next to it (fulllinkagain)

To ensure images meet quality and usability standards, test resizing and clarity before uploading. Suggested tools include:

  • ReduceImages for single-image resizing.
  • image magick for batch images. I've even put together scripts that you can save which will take all the images from one folder, resize and rename them, and output them in 2 separate folders

For Wiki.js, upload images to the Assets Manager and use their paths directly.


πŸ’¬ 5. Blockquotes

Blockquotes are used to highlight important information, quotes, or warnings.

> This is a note or warning.

Output:

This is a note or warning.


πŸ“Š 6. Tables

Tables are helpful for organizing facts, events, or comparisons.

| **Year** | **Event**          | **Country** |
|---------|--------------------|-------------|
| 1791    | Second Amendment    | USA         |
| 1836    | Colt Revolver Invented | USA      |
| 1947    | AK-47 Introduced    | USSR        |

Output:

YearEventCountry
1791Second AmendmentUSA
1836Colt Revolver InventedUSA
1947AK-47 IntroducedUSSR

🧱 7. Code Blocks

Code blocks are useful for commands, scripts, or technical information.

Inline Code:

Use backticks   ` for inline code.

The command `ls -la` lists all files in a directory.

Output:
The command ls -la lists all files in a directory.

Code Blocks:

Use triple backticks (```) to create a code block.

 docker ps -a

See the page on coding


πŸ“‹ 9. Task Lists

Task lists help track progress on tasks or projects.

- [ ] Research historical firearm development
- [x] Add images to the timeline
- [ ] Link related Wiki pages

Output:

  • [ ] Research historical firearm development
  • [x] Add images to the timeline
  • [ ] Link related Wiki pages

🎨 10. Formatting Text (Bold, Italic, Highlight)

SyntaxOutput
**Bold**Bold
_Italic_Italic
==Highlight====Highlight==
~~Strikethrough~~Strikethrough

🧩 11. Embedding Notes (For Internal Links)

To embed the content of another Wiki page, use:

![Page Content](page-content)

πŸ§ͺ Example Page Structure

Here's an example of a complete page using the elements we've covered:

# The History of Firearms

## Overview
The development of firearms has shaped human history. This page covers key events and innovations.

## Early Developments
The earliest firearms date back to the 9th century.

### Innovations in the 20th Century
- 1903: First semi-automatic pistol.
- 1947: Introduction of the AK-47.

## Notable Firearms
| **Name**    | **Year Introduced** | **Country** |
|-------------|---------------------|-------------|
| Colt Revolver | 1836               | USA         |
| AK-47        | 1947               | USSR        |

Related Pages


🎯 Next Steps for Contributors:

  1. Start writing your pages using this guide.
  2. Link related pages for better navigation.
  3. Use images and tables to enhance your content.
  4. Tag your pages for better searchability.

This guide will ensure your pages are consistently formatted and easy to read.