Help: Pages

A page is the main content unit used in Mojowiki.

The ontology

There are two types of pages:

  1. Text page. This is a stand-alone text unit such as an article, a diary or a poem. It is written in a special markup, called Mojomarkup.

  2. Media page. This is a media resource such as an image. Media pages also have descriptions, also written in Mojomarkup. See media.

Understanding the difference between the two is really important, as it is one of the defining features of the engine. It can be confusing at first.

How to create a page?

Some links on wiki are red. It means that they link a page that does not exist yet. If you follow this link, you will see a special page where you can upload a media or open the text editor. This is how you create pages.

You can create such red links and follow them to create pages.

Alternatively, you can edit your address in browser to jump to such pages directly.

Two people editing at once

When you open the editor, the wiki remembers which version of the page you started from and sends it back with your save. If somebody else saved the page in between, your text is not written over theirs and theirs is not written over yours.

  • If the two edits touched different parts of the page, the wiki merges them and saves the result. You do not have to do anything. This works inside one paragraph too: two people editing different sentences of the same line have their edits combined.

  • If they touched the same words, the editor comes back with both versions in it, separated by three markers a merge has used for decades:

  • <<<<<<<
    your version of the words
    =======
    the page's version of the words
    >>>>>>>

The markers are written here with a backslash in front, which is how this page shows them without having them read as markup — more on that below.

Read it as: the text after the opening marker is yours; the text after the middle one is the page's. Keep the one that belongs, delete the other and the three markers, and save.

Because a conflict is about the words and not the paragraph, the fenced part is usually only the few words the two of you changed, and it sits inside the line it came from — one line of prose with a short question in the middle of it. Nothing is lost while you decide: the page still says what the other person saved, and your text stays in the editor.

The editor will not save text that still has all three markers in it, so a half-resolved conflict cannot become the page. To write about the markers, escape them with a backslash, as this page does: <<<<<<< is shown as the marker itself. That is the same backslash every other piece of markup here uses to mean "show this, do not obey it", and it is the only exemption the check makes — nothing special happens in a code block.

Under the reason, the editor shows two diffs:

  • What changed while you were away is the other person's edit on its own, as the page you last saw against the page as it stands now. Read this first to decide what else of theirs belongs in your text.

  • How your text differs from the page adds your own work to the comparison: lines marked - are yours alone, lines marked + are in the page alone.

A page that was deleted or created while you had the editor open is a conflict too, for the same reason: saving would otherwise quietly undo somebody's decision.

A page that was deleted or created while you had the editor open is a conflict too, for the same reason: saving would otherwise quietly undo somebody's decision.

The check is on the text, not on the clock, so a file touched without being changed does not count as an edit. A save made by something other than the editor (a script posting to it) sends no version and is applied as it always was.

Page names

Page names are case-insensitive. It means that names amanita muscaria and Amanita Muscaria are the same. Also, space and underscore are also the same (amanita muscaria = amanita_muscaria). Canonical names are all lowercase and underscored.

There are some characters that cannot be part of a page name: ?!:#@><*|"'&%{}\ Others can be used.

Genealogy

A subpage is a page that has a name starting with a name of a different page, followed by a slash and by the rest of the name. For example, page Fruit/Apple is a subpage of page Fruit. There can be as many subpages as you want, and subpages can have subpages themselves.

A page lists the pages directly under it, and each of those lists its own: Fruit shows Fruit/Apple and Fruit/Pear, and Fruit/Apple shows whatever is under Apple. So a page three levels down is reached by opening the page above it, one level at a time. If nothing exists at an intermediate name but something exists below it, that name is still listed as a red link, so the page below it stays reachable.

Thus, a superpage is a reverse of subpage: Fruit is the superpage of Fruit/Apple. There can be only one superpage.

Sibling pages are pages that are subpages of the same page. For example, Fruit/Apple and Fruit/Pear are sibling pages.

A note on the old name

Older versions of this wiki, and Mojowiki's ancestor Mycorrhiza, called this unit a hypha (plural hyphae), after the threads a fungus is made of. The word is still in the addresses: /hypha/<name> redirects to /page/<name>, so links written for the old name keep working.