Additional MediaWiki formatting tips

From DisCO MOTHERSHIP Wiki
Jump to: navigation, search

Footnotes

The way to insert footnotes in Mediawiki by using references. Whenever there is a footnote, you need to paste its content between the two reference tags in the same location in the text where the reference is signaled. You do this by enclosing the footnote text within these two tags: [1], e.g.:

<ref>PASTE FOOTNOTE CONTENT HERE</ref>

So, when copying from Google docs, you will have to copy every single footnote into the wikicode as a reference. If this isn't 100% clear, ask for a quick video demonstration or watch this tutorial.

Images

Unfortunately the editor doesn't convert images into wikitext, no matter whether you're copying from Gdocs or the web - it just leaves a space. This means that, just like with the footnotes, you will have to a/b the document, see where the images are located and upload them to the wiki version. So, if you're transferring images:

  • When happening upon an image, et your cursor on the corresponding space in the wiki editor.
  • Go to the option wheel dropdown menu to the right of the search box. Select "upload file".
  • Under "Source file" hit the "Choose file" button. This will bring up a search box.
    • If you're doing this from a Gdoc, you will need to have the images downloaded in your local drive first. Gdocs doesn't let you download images easily but don't worry, as all Gdoc images are compiled here. Download them to your local drive from the Gfolder and proceed as normal.
  • Once you've chosen the file copy the destination filename from the box of the same name.
  • Hit "Upload file"
  • Now, in the place where you want to insert your image, write the following code:

[[image: PASTE DESTINATION FILENAME HERE]]

  • If you want to resize the image you'd write:

[[image: PASTE DESTINATION FILENAME HERE | center]]

  • And if you wanted to center and resize it to (for example) 750 pixels, you'd write:

[[image: PASTE DESTINATION FILENAME HERE | center | 750 px]]

Try this procedure out in the Sandbox and watch this vid for more info on inserting images.

Internal links

We've spoken about internal and external links above. The problem is that, in the handbook, we have been linking to other locations within the handbook. All this information is also reflected in the wiki, but in other locations (often different wiki entries and sections). When pasting from G-docs all internal links will lead to Gdocs URLs.

This means that you will have to go through all of the hyperlinks. If a hyperlink is external you leave it as it is. If it's internal you will have to modify it to link to the correct wiki entry or section. Some of these may not have been created yet, in that case, make a placeholder page.

Unbolding headings

This is very simple. When working on the handbook we bolded all headers. We don't do this in the wiki, so you simply need to unbold them using the code or the editor. Additional Links

- Wikitext Cheatsheet

  1. ...