Getting Started With MediaWiki

From FRC11 - Mentor Wiki
Jump to navigation Jump to search

Using MediaWiki

Consult the User's Guide for information on using the wiki software.

Sections

  • Major and minor sections are demarked with by using a title with 2 or more equal signs on each side. Both will show up automatically in a Table of Contents at the top of the page is there are enough of them.
  • For Major sections, use 2: == Level 2 headings are indicated like this ==
  • For Minor sections, use 3 or more: === Level 3 headings are indicated like this ===

Links

  • Links can be external or internal
  • Create an external link like this, for example: [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Formatting Formatting Help].
This shows up like this: Formatting Help
  • Create an internal link like this, for example: [[Test Page]]
which shows up like this: Test Page.
  • For this type of link just use the page name.
  • If the page has not yet been created, clicking the link gives the ability to create a page with the name specified.
  • (Try not to accidentally create pages from typos, they can be hard to delete.)
  • Or for an internal link with a different text than the name of the page, use a format like this: [[Test Page | More descriptive text to the Test Page]] ,
which shows up like this: More descriptive text to the Test Page

MediaWiki Formatting Tips

  • Extra indentation - start the line with a colon  : . Use more colons for more indentation (tab stops). They also reset the list counts.
  • Bulleted lists - just start with an asterisk * . More bullets gives deeper indentation. Or combine with the colon indentation character like this  ::*
  • Numbered lists - just start with a hashtag # . For fancier lists, use the <ol start> tag, and <li> designator with matching end tags. (Look it up.)
  • Bold items (if the fancy editor is unavailable), surround the text with 3 single quote marks, '''like this''' , which shows up like this: like this
  • Italic items (if the fancy editor is unavailable), surround the text with 2 single quote marks, ''like this'' , which shows up like this: like this
  • Inline Code Blocks - to set off preformatted text within a block on a line, like this, use the code delimiter: <code> </code>,
  • Inline preformatted text - For text without the box, just use <tt> </tt>.
  • Larger Code Blocks, indent the content with at least 1 space. This looks like this:
for (i = 0; i < 1, i++) {
  if Even(i) {
    Print(i);
  }
}
  
  • Don't Format - to put URLs into code blocks without being acted upon use <nowiki> text </nowiki> tags around your text, this bypasses a MediaWiki throw back called magic links (community wants to end this function anyway). The nowiki tags can be used to escape other MediaWiki tags, as well, like was done here.
  • You can also use <pre> text </pre> to set off preformatted text
    like on this line,
    though nesting of pre tags seems a bit buggered.
  • Note the <pre></pre> tags put items on a separate line.
  • Put hidden comments (only visible when editing) in your markup by putting them in like this:
    <!-- This is a comment --\>

Using Category to tag Pages

Adding [[Category:MyCategoryName]] to the bottom of all pages in a category will provide a link to an Index, of all pages in that category. For example, see the Programming Category.

More details about Categories

Images and Files

  1. In order to incorporate images or files, you have to have them hosted externally, or uploaded to the server by one of the admins.
Brian Binovsky
Dan Steinmark
Jerry Olup
  1. It's easiest if you remove special characters and spaces from the file name prior to upload.
  2. Have them place the file in a subdirectory of /downloads/mentor.wiki directory, (/downloads at the root level, not within the main mentor.wiki directory) using eXtplorer, accessible from the Admin page.
  3. Create a link to the file by inserting the following into your page
    [https://mort11.com/downloads/mentor.wiki/Subdirectory/FileName.ext Viewable link text to the File]
  4. Replace spaces in the name with %20; better yet exclude spaces (see 2).

Organization of the code on the server:

  • /www/ : off root of filessytem- the main mort11.com site is here
  • /www/mentor.wiki : the main mentor wiki root.
  • /www/downloads/mentor.wiki : the main mentor wiki uploaded file repository.

Test Page

You can use this Test Page to try things out.

Managing this MediaWiki Site

  • See User:Admin for How To Administer a MediaWiki and to administer this site.