How to write Wiki

From MuhRO
Jump to navigation Jump to search

Create a new page

To create a new page, open any MuhRO Wiki page and replace the page name in the URL with the name you want for your new page.

  1. Click "Create" near the top right to start editing. Remember to save your changes, or you will lose your work and have to start again!

Difference between "Edit" and "Edit Source"

Edit opens the visual editor, which works much like a word processor. You can change text, add images, and format content using toolbar buttons without learning wiki code. This is the easiest option for beginners.

Edit source opens the page's underlying wiki markup (wikitext). You can edit the text and formatting code directly, giving you more control over templates and complex layouts.

I personally use both! For example, I find it easier to create and adjust tables in the visual editor: I can add or remove rows and columns as I go without planning everything in advance, and merging cells is much simpler too. For other changes, I switch to source editing.

Both options edit the same page, choose whichever works best for the task!

Create headlines

Headings organize your page and automatically generate the table of contents in the upper left.
In Edit, open the "Paragraph" dropdown and select the heading level you want.
In Edit source, place an equal number of "=" signs before and after your heading text:

  • == Main heading ==
  • === Subheading ===
  • ==== Smaller subheading ====

More "=" signs create a lower-level, smaller heading. Start with "==" because a single "=" is reserved for the page title.

Create tables

Table creation

In "Edit", click "Insert" and select "Table". You can then choose how many columns and rows you want.

In "Edit source", a table starts with "{| class="wikitable" and ends with "|}".
Use "!" for header cells, "|" for regular cells, and "|-" to start a new row.
Here is a simple example:

{| class="wikitable"
! Column 1 !! Column 2
|-
| Row 1, cell 1 || Row 1, cell 2
|-
| Row 2, cell 1 || Row 2, cell 2
|}
Result:

Column 1 Column 2
Row 1, cell 1 Row 1, cell 2
Row 2, cell 1 Row 2, cell 2


This creates a standard table. Header cells marked with "!" use the wiki's default header styling. You can customize their background with additional styling, but I personally prefer using regular cells with "|" and "||" for the first row as well, then formatting them myself.
Example:

{| class="wikitable"
|- style="background-color:#E1C7C1;"
| Column 1 || Column 2
|-
| Row 1, cell 1 || Row 1, cell 2
|-
| Row 2, cell 1 || Row 2, cell 2
|}

Result:

Column 1 Column 2
Row 1, cell 1 Row 1, cell 2
Row 2, cell 1 Row 2, cell 2


Size and collapsible

A table automatically adjusts its size to fit its content. To set a specific width or make it collapsible, add these settings to the table's opening line:
{| class="wikitable mw-collapsible" style="width: 100%;"

  • style="width: 100%; makes the table fill the available width. You can also use a fixed width, such as: style="width: 60%; ".
  • mw-collapsible lets readers collapse and expand the table.
  • Add mw-collapsed if you want the table to start collapsed:
Collapsed table 100%
your table
Collapsed table 50%
your table

How to link items/skills/descriptions/pages

To learn how to use our macros for items, skills, and descriptions, visit Custom Wiki Macros.
You have to use the "Edit Source" for this.

To link to another wiki page, place its page title inside double square brackets: [[Page title]].
For example, to link to the "Custom Wiki Macros" page, write [[Custom Wiki Macros]].

Result: Custom Wiki Macros
You can also link to a wiki page while displaying different text. Add a pipe character "|" between the page title and the text you want to display.
For example, write [[Custom Wiki Macros|click me]].
Result: click me

How to use colors

You can use colors to customize table backgrounds, text, and headings.

For a table cell's background color, add: style="background-color:#E1C7C1;" before its content:
| style="background-color:#E1C7C1;" | Your text
Check Table Creation to see an example of it.

To change the text color, wrap your text in a <span> tag:
<span style="color: rgb(128, 0, 0);">Illusion of Vampire</span>
Illusion of Vampire

You can find color codes on many websites. I usually use this color chart.
Both hexadecimal codes, such as "#E1C7C1", and RGB values, such as "rgb(128, 0, 0)", work for background and text colors.

You can even give each letter a different color, although this takes quite a bit of work:
<span style="color: rgb(0, 238, 0);">P</span><span style="color: rgb(58, 95, 205);">R</span><span style="color: rgb(238, 118, 33);">I</span><span style="color: rgb(238, 0, 0);">D</span><span style="color: rgb(153, 50, 204);">E</span>
PRIDE

This also works for headings. Just make sure the entire span stays between the heading's "=" signs:
== <span style="color: rgb(128, 0, 0);">How to use colors</span> ==

How to handle pictures

Before uploading an image, give it a descriptive filename, such as "NinjaDMG.png", and check its file extension, such as ".png" or ".jpg".

Open "Edit source" and find the "Drop files here" area at the top. Drag and drop your images into this area, then click "Upload this file". Wait until the images are highlighted in green, which means the upload is complete.

To display an uploaded image on your page, enter [[File:NinjaDMG.png]] in the editing field and save your changes. Make sure the filename and extension match the uploaded file. You can also adjust the image's display size by specifying its width in pixels. For example, [[File:NinjaDMG.png|220px]] displays the image at a width of 220 pixels.

Text formatting

Most text formatting is easy to apply using "Edit", including bulleted and numbered lists.
In "Edit source", start each line with "*" to create a bullet point. To add an indented line or image without creating another bullet point, use "*:".
For numbered lists, start each line with "#". Use "#:" to insert an indented line or image without adding another number:

# First step
#: [[File:NinjaDMG.png|220px]]
# Second step

Keep list lines together without blank lines between them, especially in numbered lists, as blank lines can restart the numbering.
To insert a line break within your text, use <br>.

How to list your page to category pages

Once you have written a guide and want it to appear in the guide list, add it to the appropriate category.
For example, if you have written an Arch Mage guide, open "Edit source" and add [[Category:Arch Mage]] on the first or last line of your guide.
Save your changes, and your guide will automatically appear in that category.

Helpful Link

For more help and additional ways to customize your page, visit: