Difference between revisions of "Help:Editing"

From Testiwiki
Jump to: navigation, search
(indentations added to quick edit table)
m (Typos etc. fixed thruout)
Line 1: Line 1:
'''Editing help:'''
+
'''A quick reference for editing wikipages:'''
  
 
{| align="center" {{Prettytable}}
 
{| align="center" {{Prettytable}}
Line 102: Line 102:
 
:item 2
 
:item 2
 
|-
 
|-
|Preformatted text
+
|Text box
 
|
 
|
 
&nbsp;&nbsp;a space at the<br/>
 
&nbsp;&nbsp;a space at the<br/>
&nbsp;&nbsp;beginning of the line<br/>
+
&nbsp;&nbsp;beginning of the<br/>
&nbsp;&nbsp;creates<br/>
+
&nbsp;&nbsp;line creates<br/>
&nbsp;&nbsp;preformatted text
+
&nbsp;&nbsp;a text box
 
|
 
|
 
  a space at the  
 
  a space at the  
  beginning of the line
+
  beginning of the
  creates
+
  line creates
  preformatted text
+
  a text box
 
|}
 
|}
  
Line 121: Line 121:
 
== Introduction ==
 
== Introduction ==
  
This is a user's guide for Intarese MediaWiki-pages. User's guide contains briefly basic information about using MediaWiki.
+
This is a user's guide for Intarese MediaWiki pages. Below, please find basic information on using MediaWiki.
  
Feel free to test your skills in [[sandbox]] -page.
+
Feel free to test your skills in the [[Sandbox]] page.
  
'''Remember!''' You cannot cause any permanent damage to articles because everything can be retrieved. So have fun editing and creating!
+
'''Remember!''' You need not be afraid of causing any permanent damage to wikipages - because the previous versions of any page can always be '''restored'''! So have fun editing and creating!
  
 
<br>
 
<br>
Line 131: Line 131:
 
== Creating an account and logging in==
 
== Creating an account and logging in==
  
It is recommended that you create an account before making any editing to MediaWiki-pages. This makes easier for others to see who is the creator or the editor of MediaWiki-pages. Please note, that you can read, edit and create wikipages without creating an account or logging in.
+
It is recommended that you create an account (for logging in with your username) before editing any MediaWiki-pages. This enables others to identify who have created or edited a particular page. However, please note that you can create, edit, and read wikipages also without having an account or logging in.
  
You can create an account by clicking [[Special:Userlogin| login or create an account]] on the upper right corner. From there you can choose your '''User name''' and '''password'''. It is recommended to use your own name in the username (for example first name).
+
To create an account, click [[Special:Userlogin| login or create an account]] in the upper right corner. From there you can choose your '''User name''' and '''password'''. It is recommended to use your '''full name''' in the username.
  
  
For more information about logging in and user accounts please see [http://meta.wikimedia.org/wiki/Help:Logging_in].
+
For more information about logging in and user accounts, please see [http://meta.wikimedia.org/wiki/Help:Logging_in].
  
 
<br>
 
<br>
Line 144: Line 144:
 
=== Starting a new page ===  
 
=== Starting a new page ===  
  
There are few different ways to create new articles in MediaWiki.
+
There are three alternative ways to create new articles (wikipages) in MediaWiki. (The result will be the same regardless of the method.)
  
==== Creating a new article through URL-method ====
+
==== Creating a new article through the address-bar method ====
  
Easy way to create a new article is to type the name of the article to addresbar (URL) after '''index.php?title=''' <BR>
+
Type the name of the article to the browser's address bar after '''index.php?title=''' <BR>
For example index.php?title='''Name of your new article'''
+
For example, index.php?title='''Name of your new article'''
  
==== Creating a new article through search-box-method ====
+
==== Creating a new article through the search-box method ====
  
One method is to type the name of the article to '''search''' -box on the left and click '''Go'''-button. From there you can simply click the text which says <font color="red">this exact title</font> and the editing window opens.
+
Type the name of the article to the '''search''' box on the left and click the '''Go''' button. From there you can simply click the text which says <font color="red">this exact title</font>, and the editing window opens.
  
==== Creating a new article through link-method ====
+
==== Creating a new article through the link method ====
  
Other way to create a new article is to make a link from existing page to a new article. For example [[name of the new article]], code:  '''<nowiki>[[name of the new article]]</nowiki>'''. When you click this link it opens a new edit window for article named '''name of the new article'''. More information about linking later in the linking -section.
+
Make a link from an existing page to a new article. For example, to create a new page called [[Name of the new article]], type '''<nowiki>[[Name of the new article]]</nowiki>''' in the existing page and save it. When you click on this link, an edit window will automatically open for the article named '''Name of the new article'''.
  
 +
For more information on linking, see the "linking" section below.
  
For more information about starting a new page please see [http://meta.wikimedia.org/wiki/Help:Starting_a_new_page].
+
For further information about starting a new page, please see [http://meta.wikimedia.org/wiki/Help:Starting_a_new_page].
  
 
<BR>
 
<BR>
  
=== Naming a new article ===
+
=== Naming a new article - basic guidelines ===
  
You can name your articles quite freely. There are few basic guidelines which are good to keep in mind while naming articles:
+
You can name your articles quite freely. However, it is a good practice to keep in mind the following guidelines:
 
* Use descriptive names
 
* Use descriptive names
 
* Names can consist of several words
 
* Names can consist of several words
* Numbers and spaces are allowed
+
* Numbers and spaces '''are''' allowed
* Do not use special characters like # < > [ ] | { }
+
* However, do not use special characters such as # < > [ ] | { }
* Names are case-sensitive
+
* Capitalization matters, except for the first letter
** mediaWiki is same as MediaWiki but not same as mediawiki
+
** for example, "mediaWiki" and "MediaWiki" point to the same page, while "mediawiki" points to a different page
** Capitalization matters after the first letter but not in the first letter
 
  
  
For more information about naming please see [http://meta.wikimedia.org/wiki/Help:Page_name].
+
For more information about naming, please see [http://meta.wikimedia.org/wiki/Help:Page_name].
  
 
<BR>
 
<BR>
Line 184: Line 184:
 
==== Start editing ====
 
==== Start editing ====
  
To start editing simply click the '''edit'''-link on the upside of the page. This opens '''edit'''-page.
+
To start editing, simply click the '''edit''' link at the top of the page. This opens the '''edit''' page.
  
 
==== Type your text ====
 
==== Type your text ====
  
In the edit-page you can just type your text. It is also possible to copy-paste text from another source (for example Word) directly to WikiPage.
+
In the "edit" page, simply type in your text. Alternatively, copy and paste text from another source (for example Word).
  
 
==== Save your text ====
 
==== Save your text ====
  
Click '''save-page''' to save your text. It is a good idea to click '''show preview''' before saving your work.
+
Click '''Save page''' to save your text. You may, however, wish to click '''Show preview''' before saving your work.
  
  
For more information about editing basics please see [http://meta.wikimedia.org/wiki/Help:Editing#Editing__basics]
+
For more information about editing basics, please see [http://meta.wikimedia.org/wiki/Help:Editing#Editing__basics]
  
 
<BR>
 
<BR>
Line 201: Line 201:
 
=== Text formatting ===
 
=== Text formatting ===
  
==== New lines====
+
==== New line====
  
To start a new line you need to press '''enter''' twice. It is also possible to use html command '''<nowiki><BR></nowiki>''' to start a new line.
+
To start a new line, you need to press '''enter''' twice. It is also possible to use the HTML command '''<nowiki><BR></nowiki>''' (break) to start a new line.
  
==== Italic -text====
+
==== Italic text====
  
 
What you type: You can <nowiki>''italicize text''</nowiki> by putting 2 apostrophes on each side.
 
What you type: You can <nowiki>''italicize text''</nowiki> by putting 2 apostrophes on each side.
Line 211: Line 211:
 
What you get: You can ''italicize text'' by putting 2 apostrophes on each side.
 
What you get: You can ''italicize text'' by putting 2 apostrophes on each side.
  
====Bold -text====
+
====Bold text====
  
 
What you type: 3 apostrophes will <nowiki>'''bold the text'''</nowiki>.
 
What you type: 3 apostrophes will <nowiki>'''bold the text'''</nowiki>.
Line 217: Line 217:
 
What you get: 3 apostrophes will '''bold the text'''.
 
What you get: 3 apostrophes will '''bold the text'''.
  
==== Bold & italic -text====
+
==== Bold & italic text====
  
 
What you type: 5 apostrophes will <nowiki>'''''bold & italicize the text'''''</nowiki>
 
What you type: 5 apostrophes will <nowiki>'''''bold & italicize the text'''''</nowiki>
Line 225: Line 225:
 
==== Centered text ====
 
==== Centered text ====
  
You can center text placing it between '''<nowiki><center></nowiki>''' and '''<nowiki></center></nowiki>'''.
+
You can center text by placing it between '''<nowiki><center></nowiki>''' and '''<nowiki></center></nowiki>'''.
  
 
<center> This is centered text </center>
 
<center> This is centered text </center>
Line 236: Line 236:
 
==== Superscripts and subscripts ====
 
==== Superscripts and subscripts ====
  
Superscripts are done placing text between '''<nowiki><sup></nowiki>''' and '''<nowiki></sup></nowiki>'''. Subscripts are done placing text between '''<nowiki><sub></nowiki>''' and '''<nowiki></sub></nowiki>'''.
+
Superscripts are typed by placing text between '''<nowiki><sup></nowiki>''' and '''<nowiki></sup></nowiki>'''.
 +
 
 +
Subscripts are done placing text between '''<nowiki><sub></nowiki>''' and '''<nowiki></sub></nowiki>'''.
  
 
X<sup>2</sup> and H<sub>2</sub>O
 
X<sup>2</sup> and H<sub>2</sub>O
Line 247: Line 249:
 
==== Indentation ====
 
==== Indentation ====
  
You can indent lines with ''':(colon)'''. More colons mean deeper indentation.
+
You can indent lines with ''':''' (colon). More colons mean deeper indentation.
: One level indentation
+
: first-level indentation
:: Two level indentation
+
:: second-level indentation
::: And so on
+
::: ...and so on.
  
 
'''Example code:'''
 
'''Example code:'''
 
<pre>
 
<pre>
: One level indentation
+
: first-level indentation
:: Two level indentation
+
:: second-level indentation
::: And so on
+
::: ...and so on.
 
</pre>
 
</pre>
  
Line 265: Line 267:
 
==== Basic lists ====
 
==== Basic lists ====
  
Lists are done with '''*(star)''' -signs in MediaWiki.  Just put '''*''' at the beginning of the new line. More stars mean deeper levels.
+
Lists are done with '''*''' (star) signs in MediaWiki.  Just put '''*''' at the beginning of the new line. More stars mean deeper levels.
  
 
* 1 star
 
* 1 star
Line 282: Line 284:
 
==== Numbered lists ====
 
==== Numbered lists ====
  
Numbered lists are done with '''#''' -signs. Just put one '''#''' -sign at the beginning of the everyline you want to be included in your numbered list. Numbers are generated automatically.
+
Numbered lists are done with '''#''' signs. Just put one '''#''' sign at the beginning of the everyline you want to be included in your numbered list. Numbers are generated automatically.
  
 
# This is list item number 1
 
# This is list item number 1
Line 330: Line 332:
 
==== Mixed lists ====
 
==== Mixed lists ====
  
It is possible to combine different lists (numbered and basic lists for example).
+
It is possible to combine different lists (numbered and basic lists for example):
  
 
# Numbered list
 
# Numbered list
Line 351: Line 353:
 
=== Sections ===
 
=== Sections ===
  
Creating sections is done with = -signs in MediaWiki.
+
Creating sections is done with = (equal) signs in MediaWiki.
  
  
Line 361: Line 363:
 
</pre>
 
</pre>
  
So you just type your section name between '''=''' -signs. Number of = -signs defines the type of the section. Please note that the section numbers are not shown expect in the table of context. If you'd like to see sections numbers in the text you'll need to change your [[Special:Preferences|user preferences]].
+
So you just type your section name between the '''=''' signs. The number of = signs defines the level of the section. Please note that the section numbers are normally not shown in the section headings, except for the table of context. If you would like to see sections numbers in the text, you'll need to change your [[Special:Preferences|user preferences]].
  
For more information about creating sections please see [http://meta.wikimedia.org/wiki/Help:Section].
+
For more information about creating sections, please see [http://meta.wikimedia.org/wiki/Help:Section].
  
 
<br>
 
<br>
Line 369: Line 371:
 
=== Tables ===
 
=== Tables ===
  
==== Standard Wiki-tables ====
+
==== Standard wiki tables ====
  
You can create tables in MediaWiki with standard '''HTML'''-code or you can use special '''wikicode'''. Latter method is descripted here. If you are interested in HTML -table syntax you can learn it from [http://www.w3.org/TR/html4/struct/tables.html here].
+
You can create tables in MediaWiki with standard '''HTML''' code, or you can use special '''wikicode'''. The latter method is described here. If you are interested in HTML table syntax, you can learn it from [http://www.w3.org/TR/html4/struct/tables.html here].
  
There is basic example of a WikiTable:
+
Below is an example of a basic WikiTable:
 
{| border="1"
 
{| border="1"
 
|+ The table's caption
 
|+ The table's caption
Line 404: Line 406:
  
 
* Table code is encased with curly brackets and a pipe '''<nowiki>{|</nowiki>''' table code here '''<nowiki> |}</nowiki>'''.
 
* Table code is encased with curly brackets and a pipe '''<nowiki>{|</nowiki>''' table code here '''<nowiki> |}</nowiki>'''.
* Border is optional (bigger the number, thicker the border)
+
* The border is optional (the bigger the number, the thicker the border)
* Table's caption is optional
+
* The table caption is optional
* First column heading is marked with single '''!''' and next column headings are separated with double '''!!'''
+
* The first column heading is marked with a single '''!''', and next column headings are separated with double '''!!'''
 
* Rows are separated with '''<nowiki>|-</nowiki>'''
 
* Rows are separated with '''<nowiki>|-</nowiki>'''
* Single '''!''' marks row headings
+
* A single '''!''' marks row headings
 
* Cells within the same row are separated with '''||''' or with a new line and a single bar '''|'''
 
* Cells within the same row are separated with '''||''' or with a new line and a single bar '''|'''
  
Line 416: Line 418:
 
==== Converting tables from Excel or Word ====
 
==== Converting tables from Excel or Word ====
  
Easiest way to convert tables from Excel or Word -files is to use converter which can be found from '''Navigation''' -bar on the left: [http://www.pyrkilo.fi/converter/csv2wp.php Excel to WIKI].
+
The easiest way to convert tables from Excel or Word is to use the [http://www.pyrkilo.fi/converter/csv2wp.php Excel to WIKI] converter found from the list of tools on the left.
  
 
'''Instructions:'''
 
'''Instructions:'''
  
# select table you want to import to MediaWiki
+
# select the (part of the) table you want to import to MediaWiki
# copy table (CTRL+c)
+
# copy it (CTRL+c)
# paste table to converter (CTRL+v)
+
# paste it to converter (CTRL+v)
# press Convert to MediaWiki -button
+
# press the "Convert to MediaWiki" button
# select output text
+
# select the output text (CTRL+a)
# copy output text
+
# copy it
# paste copied text to your article!
+
# paste it into your article!
  
 
<BR>
 
<BR>
Line 432: Line 434:
 
=== Table of contents ===
 
=== Table of contents ===
  
MediaWiki creates automatically table of contents if there is more than 3 headings (sections) in the article.
+
MediaWiki creates automatically a table of contents, if there are more than 3 headings (sections) in the article.
  
For more information about table of contents please see [http://meta.wikimedia.org/wiki/Help:Section#Table_of_contents_.28TOC.29]
+
For more information about tables of contents, please see [http://meta.wikimedia.org/wiki/Help:Section#Table_of_contents_.28TOC.29]
  
 
<BR>
 
<BR>
Line 440: Line 442:
 
=== Linking ===
 
=== Linking ===
  
==== Links to articles in the same MediaWiki-project ====
+
==== Links to articles in the same MediaWiki project ====
  
Links to articles within the same MediaWiki-projects are done typing '''<nowiki>[[Name of the article]]</nowiki>'''.  
+
Links to articles within the same MediaWiki project are made by typing '''<nowiki>[[Name of the article]]</nowiki>'''.  
  
For example a link to [[Agriculture]]-article
+
For example, a link to the [[Agriculture]] article.
  
 
<br>
 
<br>
  
==== Links to articles in different MediaWiki-projects ====
+
==== Links to articles in different MediaWiki projects ====
 +
 
 +
It is also possible to link articles between different MediaWiki projects easily without typing in the whole URL. The following Wiki projects are so far included:
  
It is possible to link articles between different MediaWikis easily without typing the whole URL. Following Wiki-projects are so far included:
 
 
* pyrkilo
 
* pyrkilo
 
* beneris
 
* beneris
Line 456: Line 459:
 
* intarese
 
* intarese
 
* heande
 
* heande
 +
* heimtsa
 
* tyjak
 
* tyjak
 
* piltti
 
* piltti
  
A link to article in different project is created by typing '''<nowiki>[[project name: article name]]</nowiki>'''. <br>For example a link to pyrkilo-project article named Mental models in food risks is typed: '''<nowiki>[[pyrkilo: Mental models in food risks]]</nowiki>'''. <br>It shows: [[pyrkilo: Mental models in food risks]]. It is also possible to use piped links to name links differently.
+
A link to an article in a different project is created by typing '''<nowiki>[[project name: article name]]</nowiki>'''.
 +
 
 +
For example, a link to the pyrkilo-project article "Mental models in food risks" will be typed as: '''<nowiki>[[pyrkilo: Mental models in food risks]]</nowiki>'''. <br>It will be shown as: [[pyrkilo: Mental models in food risks]].
 +
 
 +
It is also possible to use "piped links" to name links differently (see below).
  
 
<br>
 
<br>
Line 465: Line 473:
 
==== Links to other sections ====
 
==== Links to other sections ====
  
You can make a link to another section in the same project typing '''<nowiki>[[Name of article#Name of section]]</nowiki>'''.
+
You can make a link to another section (in the same project) by typing '''<nowiki>[[Name of article#Name of section]]</nowiki>'''.
 +
 
 
For example [[Agriculture#Description_of_work]]<br><br>
 
For example [[Agriculture#Description_of_work]]<br><br>
For more information about links please see [http://meta.wikimedia.org/wiki/Help:Link].
+
For more information about links, please see [http://meta.wikimedia.org/wiki/Help:Link].
  
 
<BR>
 
<BR>
Line 473: Line 482:
 
==== Piped links ====
 
==== Piped links ====
  
Piped links can be used to name links differently than the name of the page that it links. In piped links a | -sign is used for separating the real article name from custom label. For example a piped link to article named Agriculture '''<nowiki>[[Agriculture| Piped link to Agriculture]] </nowiki>'''.
+
Piped links can be used to name links differently from the name of the target page. In piped links, a | (pipe) sign is used for separating the name of the target page from the label shown in the text.
Shows [[Agriculture| Piped link to Agriculture]] instead of just [[Agriculture]].
 
  
For more information about piped links please see [http://meta.wikimedia.org/wiki/Help:Piped_link]
+
For example, the piped link typed as "<nowiki>[[Agriculture| info on Agriculture]] </nowiki>" will be shown as [[Agriculture| info on Agriculture]] instead of just [[Agriculture]].
 +
 
 +
For more information about piped links, please see [http://meta.wikimedia.org/wiki/Help:Piped_link].
  
 
<BR>
 
<BR>
Line 482: Line 492:
 
==== External links ====
 
==== External links ====
  
External links are links that point outside MediaWiki-project. <BR> You can easily create links to another internet-locations simply typing the address: for example http://www.ktl.fi <- please note that you don't necessarily need brackets in external links.
+
External links are used to point to any internet pages beyond the local MediaWiki projects. <BR> You can easily create links to such locations simply typing the address (URL): For example, http://www.ktl.fi (please note that you don't necessarily need brackets in external links).
  
If you type '''<nowiki>[http://www.ktl.fi]</nowiki>''' the link address is not shown. For example [http://www.ktl.fi]
+
If you only type the URL between brackets, the link address will ''not'' be shown. For example, '''<nowiki>[http://www.ktl.fi]</nowiki>''' will be shown as [http://www.ktl.fi].
  
You can name the link by typing '''<nowiki>[http://www.ktl.fi Name of the link] </nowiki>'''. For example [http://www.ktl.fi KTL homepage].  
+
You can '''name''' the link by typing both the URL and the name between the brackets. For example, '''<nowiki>[http://www.ktl.fi KTL homepage] </nowiki>''' will be shown as [http://www.ktl.fi KTL homepage].
  
'''Note''' that you do not have to use '''|''' -sign to separate link from the link name.
+
'''Note''' that you need not use the '''|''' (pipe) sign to separate a URL-formed link from the name.
  
For more information about external links please see [http://meta.wikimedia.org/wiki/Help:URL#URLs_in_external_links]
+
For more information about external links, please see [http://meta.wikimedia.org/wiki/Help:URL#URLs_in_external_links]
  
 
<br>
 
<br>
Line 498: Line 508:
 
== Using Images and Files ==
 
== Using Images and Files ==
  
Before images and other files can be used they need to be uploaded into MediaWiki system.
+
Before images and other files can be used, they need to be uploaded into the MediaWiki system.
  
  
 
=== Uploading ===
 
=== Uploading ===
  
You need to be logged in before you can upload files. Uploading is done through [[Special:Upload |Upload file]] -link which is in the '''toolbox''' -menu.
+
You need to be logged in before you can upload files. Uploading is done through the [[Special:Upload |Upload file]] link found in the '''toolbox''' menu.
  
In '''Upload file''' -page you will see a '''browse''' -button. You can use button to select a file from your computer. You can name your file in '''Destination filename''' box (default is the original name). It is recommended to use quite short and descriptive file names because that way they are easier to use. You can also add some information about uploaded file to '''Summary''' -box.
+
In the '''Upload file''' page, you will see a '''browse''' button. You can use this button to select a file from your computer. You can name your file in the '''Destination filename''' box (which by default suggests the original name). It is recommended to use fairly ''short yet descriptive'' file names to facilitate their use. You can also add descriptive information about the uploaded file into the '''Summary''' box.
  
For more information about uploading please see [http://meta.wikimedia.org/wiki/Help:Images_and_other_uploaded_files#Uploading].
+
For more information about uploading, please see [http://meta.wikimedia.org/wiki/Help:Images_and_other_uploaded_files#Uploading].
  
 
<BR>
 
<BR>
  
=== Supported file -types ===
+
=== Supported file types ===
  
So far our MediaWiki-projects supports following filetypes:
+
So far, our MediaWiki projects support the following file types:
  
 
* ana (Analytica)
 
* ana (Analytica)
 
* ppt (Microsoft PowerPoint)
 
* ppt (Microsoft PowerPoint)
* pps (Powerpoint Show)
+
* pps (PowerPoint show)
 
* xls (Microsoft Excel)
 
* xls (Microsoft Excel)
 
* pdf (Adobe)
 
* pdf (Adobe)
 
* doc (Microsoft Word)
 
* doc (Microsoft Word)
* bmp (Bitmap -pictures)
+
* bmp (bitmap pictures)
* tif (Tagged Image File -pictures)
+
* tif (Tagged Image File pictures)
* png (Portable Network Graphics -pictures)
+
* png (Portable Network Graphics pictures)
* gif (Graphics Interchange Format -pictures)
+
* gif (Graphics Interchange Format pictures)
* jpg & jpeg (Stands for Joint Photographic Experts Group -pictures)
+
* jpg & jpeg (stands for Joint Photographic Experts Group pictures)
* ogg (Audio -files)
+
* ogg (audio files)
  
You cannot upload files that are different types as mentioned above.
+
You cannot upload files with a format different from those mentioned above.
  
  
 
=== Adding images to articles ===
 
=== Adding images to articles ===
  
Images are added to articles using '''<nowiki>[[Image:name of your picture]]</nowiki>''' -code. Remember that pictures have to be uploaded before they can be used.
+
Images are added to articles using the '''<nowiki>[[Image:name of your picture]]</nowiki>''' code. Remember that pictures have to be uploaded before they can be used.
  
There's a example where name of the picture is '''picture.GIF:'''
+
In the example below, the name of the picture is '''picture.GIF:'''
  
 
[[Image:picture.GIF]]
 
[[Image:picture.GIF]]
Line 548: Line 558:
 
<BR>
 
<BR>
  
=== Adding other files to articles ===
+
=== Adding other types of files into articles ===
 
 
Other files than images can be attached to articles using '''<nowiki>[[Media:filename]]</nowiki>''' -code.
 
  
'''Examples:'''
+
Files other than images can also be attached to articles, using the '''<nowiki>[[Media:filename]]</nowiki>''' code.
  
This is a link to [[Media:Ytos28_6.pdf]]. It is also possible use piped links like [[Media:Ytos28_6.pdf|this]]. You can add xls -files or any other supported filetypes as well [[Media:Testixls.xls]].
+
'''Example:'''
  
 +
This is a link to [[Media:Ytos28_6.pdf]]. It is also possible to use piped links such as [[Media:Ytos28_6.pdf|this]]. You can add xls files or any other supported file types as well [[Media:Testixls.xls]].
  
 
'''Example code:'''
 
'''Example code:'''
 
<pre>
 
<pre>
This is a link to [[Media:Ytos28_6.pdf]]. It is also possible use piped links like [[Media:Ytos28_6.pdf|this]].  
+
This is a link to [[Media:Ytos28_6.pdf]]. It is also possible use piped links such as [[Media:Ytos28_6.pdf|this]].  
You can add xls -files or any other supported filetypes as well [[Media:Testixls.xls]].
+
You can add xls files or any other supported file types as well [[Media:Testixls.xls]].
 
</pre>
 
</pre>
  
 
==Simple reference list==
 
==Simple reference list==
In case you should want to add references to your pages, you need a little bit of code to help you along. Basically you can cite your reference however you want, but the most straightforward way is probably by using superscript numbers that refer to a set of footnotes.
+
In case you should want to add references to your pages, you need a little bit of code to help you along. Basically you can cite your reference in whichever way you want, but the most straightforward way is probably by using superscript numbers that refer to a set of footnotes.
  
You go about this by adding your reference in the text in between the markers '''<nowiki><ref> and </ref></nowiki>'''. The text in between these "ref" markers can take any form you like, including hyperlinks to external web sources, or just plain text etc.  
+
You go about this by adding your reference in the text, between the markers '''<nowiki><ref> and </ref></nowiki>'''. The text in between these "ref" markers can take any form you like, including hyperlinks to external web sources, or just plain text etc.  
  
At the very bottom of the document you then add in the title '''<nowiki>==References==</nowiki>''' and the marker '''<nowiki><references /></nowiki>'''. When you save the page, you see your reference in the text appear only as a superscript number, and your reference list is automatically populated with the text added between the "ref" markers. This all sounds much worse than it is in practice!
+
At the very bottom of the document, you then add in the title '''<nowiki>==References==</nowiki>''' and the marker '''<nowiki><references /></nowiki>'''. When you save the page, you will see your reference in the text appear only as a superscript number, and your reference list is automatically populated with the text added between the "ref" markers. This all sounds much worse than it is in practice!
  
 
===Example===
 
===Example===
Line 601: Line 610:
 
More extensive options relating to reference lists can be found at [http://en.wikipedia.org/wiki/Wikipedia:Footnotes this link in Wikipedia help]
 
More extensive options relating to reference lists can be found at [http://en.wikipedia.org/wiki/Wikipedia:Footnotes this link in Wikipedia help]
  
==Useful links to Wikipedia help pages==
+
==Useful links to other help pages for Wikipedia==
  
 +
* [[:en:Wikipedia:Quick_guide | Quick guide to editing]]
 
* [[:en:Wikipedia:Refactoring_talk_pages | How to use refactoring]]
 
* [[:en:Wikipedia:Refactoring_talk_pages | How to use refactoring]]
 
* [[:en:Wikipedia:How_to_archive_a_talk_page#Permanent_link_archives_method | How to archive argumentation]]. In pyrkilo, permanent link method should be used; not the subpage method, although is more common in Wikipedia.
 
* [[:en:Wikipedia:How_to_archive_a_talk_page#Permanent_link_archives_method | How to archive argumentation]]. In pyrkilo, permanent link method should be used; not the subpage method, although is more common in Wikipedia.
 
* [[:en:Wikipedia:Resolving_disputes | How to resolve disputes]]
 
* [[:en:Wikipedia:Resolving_disputes | How to resolve disputes]]
* [[:en:Wikipedia:Quick_guide | Quick guide to editing]]
 

Revision as of 12:32, 5 March 2008

A quick reference for editing wikipages:

Description What you type What you get
applies everywhere
Italic ''italic text'' italic text
Bold '''bold text''' bold text
Bold & italic '''''bold & italic text''''' bold & italic text
Line break

Line 1

Line 2

Textline 1
<BR><BR>
Textline 2

Line 1
Line 2

Textline 1

Textline 2

applies only in the beginning of new lines
Different level

headings

Notice! Level 1 is preserved for article title
==Level 1==
===Level 2===
====Level 3====
=====Level 4=====

Level 1

Level 2

Level 3

Level 4
Horizontal rule

----


Bullet list

* one
* two
* three

  • one
  • two
  • three
Numbered list

# one
# two
# three

  1. one
  2. two
  3. three
Indentations

Normal text
: one indentation
: : two indentations
: : : three indentations

Normal text

one indentation
two indentations
three indentations
Definition list

;Definition
:item 1
:item 2

Definition
item 1
item 2
Text box

  a space at the
  beginning of the
  line creates
  a text box

a space at the 
beginning of the
line creates
a text box



Introduction

This is a user's guide for Intarese MediaWiki pages. Below, please find basic information on using MediaWiki.

Feel free to test your skills in the Sandbox page.

Remember! You need not be afraid of causing any permanent damage to wikipages - because the previous versions of any page can always be restored! So have fun editing and creating!


Creating an account and logging in

It is recommended that you create an account (for logging in with your username) before editing any MediaWiki-pages. This enables others to identify who have created or edited a particular page. However, please note that you can create, edit, and read wikipages also without having an account or logging in.

To create an account, click login or create an account in the upper right corner. From there you can choose your User name and password. It is recommended to use your full name in the username.


For more information about logging in and user accounts, please see [1].


Editing

Starting a new page

There are three alternative ways to create new articles (wikipages) in MediaWiki. (The result will be the same regardless of the method.)

Creating a new article through the address-bar method

Type the name of the article to the browser's address bar after index.php?title=
For example, index.php?title=Name of your new article

Creating a new article through the search-box method

Type the name of the article to the search box on the left and click the Go button. From there you can simply click the text which says this exact title, and the editing window opens.

Creating a new article through the link method

Make a link from an existing page to a new article. For example, to create a new page called Name of the new article, type [[Name of the new article]] in the existing page and save it. When you click on this link, an edit window will automatically open for the article named Name of the new article.

For more information on linking, see the "linking" section below.

For further information about starting a new page, please see [2].


Naming a new article - basic guidelines

You can name your articles quite freely. However, it is a good practice to keep in mind the following guidelines:

  • Use descriptive names
  • Names can consist of several words
  • Numbers and spaces are allowed
  • However, do not use special characters such as # < > [ ] | { }
  • Capitalization matters, except for the first letter
    • for example, "mediaWiki" and "MediaWiki" point to the same page, while "mediawiki" points to a different page


For more information about naming, please see [3].


Editing basics

Start editing

To start editing, simply click the edit link at the top of the page. This opens the edit page.

Type your text

In the "edit" page, simply type in your text. Alternatively, copy and paste text from another source (for example Word).

Save your text

Click Save page to save your text. You may, however, wish to click Show preview before saving your work.


For more information about editing basics, please see [4]


Text formatting

New line

To start a new line, you need to press enter twice. It is also possible to use the HTML command <BR> (break) to start a new line.

Italic text

What you type: You can ''italicize text'' by putting 2 apostrophes on each side.

What you get: You can italicize text by putting 2 apostrophes on each side.

Bold text

What you type: 3 apostrophes will '''bold the text'''.

What you get: 3 apostrophes will bold the text.

Bold & italic text

What you type: 5 apostrophes will '''''bold & italicize the text'''''

What you get: 5 apostrophes will bold & italicize the text

Centered text

You can center text by placing it between <center> and </center>.

This is centered text

Example code:

<center> This is centered text </center>

Superscripts and subscripts

Superscripts are typed by placing text between <sup> and </sup>.

Subscripts are done placing text between <sub> and </sub>.

X2 and H2O

Example code:

X<sup>2</sup> and H<sub>2</sub>O

Indentation

You can indent lines with : (colon). More colons mean deeper indentation.

first-level indentation
second-level indentation
...and so on.

Example code:

: first-level indentation
:: second-level indentation
::: ...and so on.


Lists

Basic lists

Lists are done with * (star) signs in MediaWiki. Just put * at the beginning of the new line. More stars mean deeper levels.

  • 1 star
    • 2 stars
      • 3 stars

Example code:

* 1 star
** 2 stars
*** 3 stars


Numbered lists

Numbered lists are done with # signs. Just put one # sign at the beginning of the everyline you want to be included in your numbered list. Numbers are generated automatically.

  1. This is list item number 1
  2. This is obviously list item number 2

Example code:

# This is list item number 1
# This is obviously list item number 2


You can also use different depths of numbered lines. For example:

  1. First level
    1. Second level
    2. Second level
      1. Third level
  2. Quite easy?

Example code:

# First level
## Second level
## Second level
### Third level
# Quite easy?


Definition lists

Definition lists can be used for defining a word or a phrase for example. Colons (:) and semicolons (;) are used to create a definition list. See example:

Word or a phrase
and the definition
you can also add more than one definitions

Example code:

;Word or a phrase: and the definition
: you can also add more than one definitions


Mixed lists

It is possible to combine different lists (numbered and basic lists for example):

  1. Numbered list
    • option 1
    • option 2
  2. Second item in numbered list
    • Word
      and its definition

Example code:

# Numbered list
#* option 1
#* option 2
# Second item in numbered list
#*;Word: and its definition


Sections

Creating sections is done with = (equal) signs in MediaWiki.


Example code:

== 1 Section ==
=== 1.1 Subsection ===
==== 1.1.1 Sub-subsection ====

So you just type your section name between the = signs. The number of = signs defines the level of the section. Please note that the section numbers are normally not shown in the section headings, except for the table of context. If you would like to see sections numbers in the text, you'll need to change your user preferences.

For more information about creating sections, please see [5].


Tables

Standard wiki tables

You can create tables in MediaWiki with standard HTML code, or you can use special wikicode. The latter method is described here. If you are interested in HTML table syntax, you can learn it from here.

Below is an example of a basic WikiTable:

The table's caption
Column heading 1 Column heading 2 Column heading 3
Row heading 1 Cell 2 Cell 3
Row heading A Cell B Cell C


Example code:

{| border="1"
|+ The table's caption
! Column heading 1 !! Column heading 2 !! Column heading 3
|-
! Row heading 1
| Cell 2 || Cell 3
|-
! Row heading A
|Cell B
|Cell C
|}


  • Table code is encased with curly brackets and a pipe {| table code here |}.
  • The border is optional (the bigger the number, the thicker the border)
  • The table caption is optional
  • The first column heading is marked with a single !, and next column headings are separated with double !!
  • Rows are separated with |-
  • A single ! marks row headings
  • Cells within the same row are separated with || or with a new line and a single bar |


For more information about creating tables, please see [6].

Converting tables from Excel or Word

The easiest way to convert tables from Excel or Word is to use the Excel to WIKI converter found from the list of tools on the left.

Instructions:

  1. select the (part of the) table you want to import to MediaWiki
  2. copy it (CTRL+c)
  3. paste it to converter (CTRL+v)
  4. press the "Convert to MediaWiki" button
  5. select the output text (CTRL+a)
  6. copy it
  7. paste it into your article!


Table of contents

MediaWiki creates automatically a table of contents, if there are more than 3 headings (sections) in the article.

For more information about tables of contents, please see [7]


Linking

Links to articles in the same MediaWiki project

Links to articles within the same MediaWiki project are made by typing [[Name of the article]].

For example, a link to the Agriculture article.


Links to articles in different MediaWiki projects

It is also possible to link articles between different MediaWiki projects easily without typing in the whole URL. The following Wiki projects are so far included:

  • pyrkilo
  • beneris
  • erac
  • intarese
  • heande
  • heimtsa
  • tyjak
  • piltti

A link to an article in a different project is created by typing [[project name: article name]].

For example, a link to the pyrkilo-project article "Mental models in food risks" will be typed as: [[pyrkilo: Mental models in food risks]].
It will be shown as: pyrkilo: Mental models in food risks.

It is also possible to use "piped links" to name links differently (see below).


Links to other sections

You can make a link to another section (in the same project) by typing [[Name of article#Name of section]].

For example Agriculture#Description_of_work

For more information about links, please see [8].


Piped links

Piped links can be used to name links differently from the name of the target page. In piped links, a | (pipe) sign is used for separating the name of the target page from the label shown in the text.

For example, the piped link typed as "[[Agriculture| info on Agriculture]] " will be shown as info on Agriculture instead of just Agriculture.

For more information about piped links, please see [9].


External links

External links are used to point to any internet pages beyond the local MediaWiki projects.
You can easily create links to such locations simply typing the address (URL): For example, http://www.ktl.fi (please note that you don't necessarily need brackets in external links).

If you only type the URL between brackets, the link address will not be shown. For example, [http://www.ktl.fi] will be shown as [10].

You can name the link by typing both the URL and the name between the brackets. For example, [http://www.ktl.fi KTL homepage] will be shown as KTL homepage.

Note that you need not use the | (pipe) sign to separate a URL-formed link from the name.

For more information about external links, please see [11]


Using Images and Files

Before images and other files can be used, they need to be uploaded into the MediaWiki system.


Uploading

You need to be logged in before you can upload files. Uploading is done through the Upload file link found in the toolbox menu.

In the Upload file page, you will see a browse button. You can use this button to select a file from your computer. You can name your file in the Destination filename box (which by default suggests the original name). It is recommended to use fairly short yet descriptive file names to facilitate their use. You can also add descriptive information about the uploaded file into the Summary box.

For more information about uploading, please see [12].


Supported file types

So far, our MediaWiki projects support the following file types:

  • ana (Analytica)
  • ppt (Microsoft PowerPoint)
  • pps (PowerPoint show)
  • xls (Microsoft Excel)
  • pdf (Adobe)
  • doc (Microsoft Word)
  • bmp (bitmap pictures)
  • tif (Tagged Image File pictures)
  • png (Portable Network Graphics pictures)
  • gif (Graphics Interchange Format pictures)
  • jpg & jpeg (stands for Joint Photographic Experts Group pictures)
  • ogg (audio files)

You cannot upload files with a format different from those mentioned above.


Adding images to articles

Images are added to articles using the [[Image:name of your picture]] code. Remember that pictures have to be uploaded before they can be used.

In the example below, the name of the picture is picture.GIF:

File:Picture.GIF


Example code:

[[Image:picture.GIF]]


Adding other types of files into articles

Files other than images can also be attached to articles, using the [[Media:filename]] code.

Example:

This is a link to Media:Ytos28_6.pdf. It is also possible to use piped links such as this. You can add xls files or any other supported file types as well Media:Testixls.xls.

Example code:

This is a link to [[Media:Ytos28_6.pdf]]. It is also possible use piped links such as [[Media:Ytos28_6.pdf|this]]. 
You can add xls files or any other supported file types as well [[Media:Testixls.xls]].

Simple reference list

In case you should want to add references to your pages, you need a little bit of code to help you along. Basically you can cite your reference in whichever way you want, but the most straightforward way is probably by using superscript numbers that refer to a set of footnotes.

You go about this by adding your reference in the text, between the markers <ref> and </ref>. The text in between these "ref" markers can take any form you like, including hyperlinks to external web sources, or just plain text etc.

At the very bottom of the document, you then add in the title ==References== and the marker <references />. When you save the page, you will see your reference in the text appear only as a superscript number, and your reference list is automatically populated with the text added between the "ref" markers. This all sounds much worse than it is in practice!

Example

Enter the references between the <ref></ref> markers at the appropriate point in your text:

     The quick brown fox jumped over the lazy dog.<ref>Smith, J. 1998. Foxes are faster than dogs. Journal of 
animal research. 30:19-20</ref> The lazy brown fox jumped over the quick dog.<ref>Jones, S. 1999.
Dogs are faster than foxes. Journal of advanced animal research. 31:20-21</ref>

The quick brown fox jumped over the lazy dog.[1] The lazy brown fox jumped over the quick dog.[2]

References

Adding the <references/> marker then generates the following list automatically from all the references inserted in this document up to that point:

  1. Smith, J. 1998. Foxes are faster than dogs. Journal of animal research. 30:19-20
  2. Jones, S. 1999. Dogs are faster than foxes. Journal of advanced animal research. 31:20-21

Adding hyperlinks to your references

Often when citing a journal it may be desirable to include a hyperlink to a specific article online. This is easy in Mediawiki referencing, since all the usual Mediawiki markup codes apply within the <ref></ref> markers. If you wanted to link to a specific article online, simply insert the web address as the first item in square brackets, in between the reference markers as follows:

     The INTARESE Consortium comprises of 33 partners from many of the leading research
and user organisations in Europe.<ref>[http://www.intarese.org/ INTARESE website, accessed 27/09/2007]</ref>

Note the space between the website address and the text you would like to be displayed in the references list.

In context, the footnote appears thus:

The INTARESE Consortium comprises of 33 partners from many of the leading research and user organisations in Europe.[1]

...And the new references list will look like this

More complicated reference lists

More extensive options relating to reference lists can be found at this link in Wikipedia help

Useful links to other help pages for Wikipedia