1 of 36

Working with data in Wikimedia and MediaWiki

Niklas Laxström and Susanna Ånäs

September – December 2016

2 of 36

Outline

  • Content organization
  • User management
  • Change tracking
  • Content management
  • Wikitext

3 of 36

Content organization

4 of 36

Content organization methods

  • Pages
  • Page naming
  • Namespaces
  • Categories
  • Links

5 of 36

Everything is a page in the wiki.

Explore more:

6 of 36

Wiki page

  • Has a name
  • Has text content
  • Can be displayed
  • Can be edited
  • Can be linked
  • And many tools work with pages automatically

7 of 36

Page naming

Namespace:Name/subpage

  • Main namespace is assumed if left out
  • First letter of name is usually case insensitive
  • Subpages per namespace (ex.)
  • Subpages of subpages (ex.)
  • Subpages often used for translations
  • In file namespace, file extensions

8 of 36

Namespace

  • Separates content with different purposes
  • Has a numerical identifier and a canonical name
  • Name can be translated
  • Each non-talk namespace has corresponding talk namespace

9 of 36

Standard namespaces

Each wiki has the following namespaces

  • Main
  • User
  • Meta/Project
  • File
  • MediaWiki
  • Template
  • Help
  • Category

10 of 36

Main namespace

  • Has no name
  • Primary content of the wiki
    • Articles
    • Dictionary entries

11 of 36

User namespace

Users write information about themselves

  • Language skills ({{#babel:fi}})
  • Areas of interest

User talk pages

  • Public way to reach the user
  • User gets notifications

12 of 36

Meta namespace

  • Usually named after the wiki
  • Generic name is “Project”

Contains

  • Policies
  • Discussions (an exception!)
  • Process support
  • Anything shared within the community

13 of 36

File namespace

  • Used for uploaded files
  • Renders additional metadata about the file

14 of 36

MediaWiki namespace

Used for customization of

  • the interface texts
  • the wiki look (CSS)
  • the wiki functionality (JavaScript)

Editing restricted to wiki administrators

15 of 36

Template namespace

Templates

  • are reusable pieces of wikitext
  • can take parameters
  • know which page they are used on

16 of 36

Help namespace

  • Used for documentation
  • Empty in most wikis
  • MediaWiki documentation located centrally at MediaWiki.org

17 of 36

Category namespace

Categories are property of a page

  • Can be used as tags
    • No good tools included to query category intersections
  • Can be used as hierarchical system by categorizing categories
    • Easy to create loops - frequently not a tree structure

18 of 36

Other namespaces

Extensions can add namespaces

  • e.g. Translations (Translate)
  • e.g. Property (Semantic MediaWiki)

Wiki system admins can add namespaces

  • e.g. Grants, Iberocoop

Explore more:

19 of 36

User management

20 of 36

Different types of admins

System admins

  • Change wiki settings
  • Add or remove extensions
  • Update wiki

Wiki admins

  • Manage content
  • Manage users
  • Customize the wiki

21 of 36

Groups vs. rights

Groups

  • Groups have rights
  • Users belong to group(s)
  • Defined by system admins

Rights

  • Technical permission to do something
  • Defined by MediaWiki and extensions

22 of 36

Default groups 1/2

All

  • Implicit group
  • Applies to all visitors

User

  • Implicit group
  • Applies to all registered users who are logged in

23 of 36

Default groups 2/2

Bureaucrat

  • Add users to groups

Administrator (sysop)

  • Delete content
  • Block users

Example

24 of 36

Change tracking

25 of 36

Recent changes

  • The best view to get insight what is happening in the wiki
  • Lists all edits and other actions in the wiki in reverse chronological order
  • Extensive filtering options

26 of 36

Watchlist

  • Like recent changes, but only about the pages you care
  • Possible to get notifications
  • Keeps track what you have seen

27 of 36

Content Management

28 of 36

Basic page functions

  • Creating a page
  • Editing a page
  • Reverting an edit
  • Moving (renaming) a page
  • Deleting a page

29 of 36

Wikitext

The wikitext is full of surprises

30 of 36

Wikitext

  • Easy to write
  • Be forgiving about syntax
  • Has tags similar to HTML

Syntax help:

31 of 36

Wikitext: Links

[[Page]]

[[Page|text]]

[[:Category:Example]]

[[:File:Example.jpg]]

[[File:Example.jpg]]

  • Shows image

[[Category:Example]]

  • Categorizes the page

Explore more:

32 of 36

Wikitext: Templates

Usage

{{Template}}

{{:Main Page}}

{{A|value1|value2}}

{{A|key=value}}

Definition

I see {{{1}}}

I see {{{1|nothing}}}

I see {{{key}}}

Explore more:

33 of 36

Wikitext: Magic words

__NOTOC__

{{PAGENAME}}

{{uc:text}}

{{#language:ar|en}}

Explore more:

34 of 36

Home Assignment

35 of 36

Templates

You will:

  • Create pages
  • Create a template
  • Use a template

36 of 36

LET’S REVIEW SOME CONCEPTS

Namespaces

Divides content. Some have special functionality.

Administrators

System administrators can update and configure wiki.

Wiki administrators curate content.

Groups

Users are given rights via user groups.

Change tracking

You can use recent changes and watchlist to follow changes.

Pages

There are multiple ways to create a page.

Templates

You saw how to create and use templates.