MW Tutorial

From STLab

Jump to: navigation, search

Contents

Exercise 0

Install the LAMP/MAMP stack in your PC. Install MediaWiki software by following the intrsuctions in the mediawiki site: http://www.mediawiki.org/wiki/Manual:Installation

Exercise 1

Learn:

  • Base wiki setup
  • Wiki base syntax: text styles, lists, tables, links

Goals:

  • Let's create our wiki:
    • Setup the title of the wiki at MyFavourites: the wiki of all your favourite things...
    • Customize the wiki logo: choose an image and let it appear in the mediawiki pages instead of the default one.
    • Create the following pages:
      1. Your favourite music group page, which should includethe following sections:
        • Short group story, with the list of the group members
        • The discography, as a table with: year, album title
        • A list of links to external resources
      2. Your favourite writer
        • Add a brief biography,
        • A table with its works (year, title)
        • A list of links to external resources
      3. Your favourite dish
        • The list of ingredients
        • How to prepare it
    • Create the following new categories:
      1. Music
      2. Writer
      3. Cousin
    • Let each page belong to the related category
  • List all pages in the main page.
  • Try to use as much as possible different styles (bold, italic...)
  • Each page name should follow the following name convention:
    • No spaces/underscore are allowed.
    • Camel case should be used.

Exercise 2

Learn:

  • Advanced editing: Variables, Templates

Goals:

  • Create templates and use them in the pages of exercise 1 (try to share those templates in different category pages):
    • Biography
    • Works
    • Ingredients
  • Create a template to be used as header of each wiki article. Each page should display, as the main section header:
    1. the name of the page (without namespace)
    2. a link to the discussion page
    3. informations about the last page editing
  • Change the title of the page to the name of the content (of example, if the page name is MarcelProust, the title should be Marcel Proust

Exercise 3

Learn:

  • Discover MediaWiki user types.
  • How to change user permissions

Goals:

  • Setup the following configuration:
    1. Only the administrator can create user accounts
    2. Unregistered users cannot change the wiki content (but they can read it)
  • Create two new users (choose names for them):
    1. The first user is a common user
    2. The second one can change user permissions, but is not administrator.

Exercise 4

Learn:

  • How to install extensions
  • How to use ParserFunctions
  • How to use StringFunctions

Goals:

Exercise 5

Learn:

  • How to create new namespaces
Personal tools