Learning Objectives
OpenStreetMap is based around a community of mappers working together. Because of this it is necessary to have a way to communicate with each other, whether it be to organise social mapping events, to discuss different projects related to OSM or to create standards for mapping processes. The main avenue for mappers to do this is through the OSM wiki, a website where users can create different web pages about different topics and in different languages. To see the OSM wiki, visit http://wiki.openstreetmap.org
A wiki is a website where any user can add pages and edit existing pages. It is based on the same principle as OSM. The only difference is that with OSM users are editing maps, while wiki users are editing text. The most famous wiki is Wikipedia (http://www.wikipedia.org), an online encyclopedia that covers almost every topic imaginable.
The OSM wiki contains information about everything related to OSM. When someone is working on a project that uses OSM, they create a wiki page so that other people can read about their project. The wiki contains help for users wanting to learn more about OSM, for common standards on how to make maps and on how to tag objects on the map, as well as many other things. You have already seen at least one of the OSM wiki pages, which describes all of the most common features that you can add to the map, and how they are commonly tagged. This is the Map Features page: http://wiki.openstreetmap.org/wiki/Map_Features
In this module we will learn how to add and edit pages on the OSM wiki. We will learn the guidelines for contributing, the special markup language for creating a wiki page, and helpful ways for improving the wiki, such as translating important pages.
It is not necessary to have an account in order to view the OSM wiki, but you will need to create an account if you want to edit or add pages. Note that this is not the same as your OSM account. You must create a new account, although you can use the same name on the wiki as you did when signing up for OSM.
You will be automatically logged in, and your username and other links will appear in the upper right corner of the website.
Let’s start out by editing our user page. Every user has a page on the wiki. These pages are commonly used to provide information about yourself, your location, for communication between users and for creating test pages and drafts.
This is a great place to start learning the basics of editing a wiki page.
If you understood the previous module on XML, you will remember that we used elements which have opening tags and closing tags. We will do something similar on the wiki, using special characters to surround the text we want to appear a certain way.
= = About Me = =
Now our code looks like this:
After we save it the page will look nicely formatted:
Once you have saved your page, it will be viewable by anyone on the internet. The following link goes to our demo page, but if you replace our username with yours, it will go to your user page.
In this section we will discuss many of the different ways you can format your information on a wiki page and the appropriate codes to use to create different elements.
It’s a good idea to practise before trying to create an official wiki page that you want others to see, so first let’s create a sub-page under your user page where you can play around and practise editing.
This will take us to an empty page that we can edit.
Description | Example wiki source | Result |
---|---|---|
Surrounding text with two apostrophes (‘) will display the text in italic | ‘’italic text’‘ | italic text |
Surrounding text with three apostrophes (‘) will display the text in bold | ‘’‘bold text’‘ | bold text |
Surrounding text with five apostrophes (‘) will display the text in bold italic | ‘’‘’‘bold and italic text’‘’‘’ | |
Four dashes in a row will create a horizontal line. This should be used sparingly. | _ _ _ _ |
Description | Example wiki source | Result |
---|---|---|
The tags ‘<nowiki>’ and ‘</nowiki>’ disable the wiki-syntax in the enclosed text. | ‘’‘bold text’‘’ <nowiki>’‘’bold text’‘’</nowiki> |
bold text ‘’‘bold text’‘’ |
Surround your text with ‘<!– ‘, ‘–>’ and the enclosed text will not display on the wiki-page (a comment). | Comment! <!–this is a comment which will not be shown–> | Comment! |
A section starts with a header consisting of a line beginning and ending with two or more consecutive equal signs (=). The number of equal signs indicates the nesting level of sections.
When you create sections and subsection headings in your wiki page, the page will automatically have a table of contents section created at the top of the page.
Example wiki source | Result |
---|---|
= = =Header 2= = = | Header 2 (try this out!) |
= = = =Header 3= = = = | Header 3 |
= = = = =Header 4= = = = = | Header 4 |
It’s easy to create a bullet list. In order to make an item in a list, you simply need to use a star (*) as the first character on one or more consecutive lines.
To create an ordered list, simply use number signs(#) instead of stars(*). Create nested lists by using a combination of stars and number signs. Nested lists display as lists with different levels of indentation. When nesting lists you may mix bullet lists and numbered lists on each level.
Example wiki source | Result |
---|---|
* Item in a bullet list * Another item |
|
# Item in a numbered list # Another item |
|
* This list has
* bullets on the first level |
|
Links within the OSM wiki are simple. Simply surround the name of the wiki page you want to link to with double brackets [[wiki-link]]. You could add different text for the link by adding a pipe symbol (|) and the text will appear as the link text. If you want a special language version of a wiki page, you should prefix the page name with the two-letter language code and a colon (:). For example, to link to the German version of a page, you would use [[de:wiki-link]].
If you want to link to an article on Wikipedia, prefix the name of the article with “wikipedia:”. For example, [[wikipedia:article-name]]. If you want to link to a wikipedia article in another language, you can add the language code like this: [[wikipedia:de:article-name]].
Finally, if you want to create an external link, simply type the URL and it will display as a link. If you want to change the link text, you can use one set of brackets to change the text which links to your URL [external-link link-text].
Example wiki source | Result |
---|---|
[[Map Features]] [[Map Features | different text but links to same]] |
|
[[wikipedia:OpenStreetMap]] [[wikipedia:OpenStreetMap | different text]] |
|
[http://fieldpapers.org | other text] |
Tables are probably the trickiest thing to create in a wiki, but easy once you understand how it works. First, you need to understand that a table is really a grid that has some number of rows and some number of columns, and one type of information is contained horizontally in rows and another type vertically in columns.
A basic table needs the following parts:
It is good practise and increases readability to use a space as the second/third character, thus avoiding any ambiguity.
Example wiki source
{| align="center"
|+ table caption
|- align="center"
| This
| is a
|- align="center"
| 2 x 2
| table
|}
Result
Example wiki source
{| border="1"
|- align="center"
| This is a table
{| align="center"
|- align="center"
| within
|} another table
|}
Result
Play around with all these different techniques for formatting your wiki. To see an example of all of these things, take a look at the test page we created here: https://wiki.openstreetmap.org/wiki/User:MapJeff/testpage
Compare the wiki text to the way it is formatted when you are viewing it. Find more information on editing at http://wiki.openstreetmap.org/wiki/Help:Wiki-Editing.
You can create any wiki page the same way that you have created your user page. However, before you run off creating hundreds of pages, it is important to understand a few guidelines for how to best contribute. Some key things to keep in mind are:
To add or insert files or images on wiki pages, first we must upload the file itself to the wiki.
This shows that your file or image uploaded successfully. The next step is to add it on to a wiki page.
One very useful thing that can be done on the wiki is to translate important pages into your language. As you’ve already seen, many wiki pages have links at the top where you can switch languages. However, this is only available for pages that have been translated, and that include a special tag at the top - {{Languages|page_name}}
When developing the OSM community in your country, it is very useful for key wiki pages to be translated into your language. Adding translated pages is easy, as we will see here.
The names of pages are always created in English, but different versions of the same page can be created by adding a language code into the URL. For example, the Map Features page is at http://wiki.openstreetmap.org/wiki/Map_Features
If you want the Spanish version of this page, it is available at http://wiki.openstreetmap.org/wiki/ES:Map_Features
The easiest way to add a translation is to go to a page in English, click Edit, and copy all of the wiki text to your Clipboard. Then edit the page in your own language, pasting in the original English text and translating it piece by piece. This will allow you to keep all of the original formatting and links correctly, but translate the English text into your own language.
You may want to keep an eye on pages that you have edited yourself, or that you have an interest in. To do this, you can add specific pages to your Watchlist which keeps a record of recent changes to pages, so that you will know when others have edited them.
To add a page to your watchlist, click on the star at the top of the page section:
Then, you can view your watchlist by clicking on Watchlist at the top of the page:
On the Watchlist page you choose to show changes to your watched pages within the past hours, days or since you started watching the page.