BVwiki/Tutorial

From BVwiki

Jump to: navigation, search

Contents

BVwiki Tutorial

Since this website is based on the Mediawiki package and markup language, no indepth knowledge of HTML is required to contribute. There are only a few syntactical rules you should be aware of.

In this tutorial, you will see only the very basic rules. Once you feel comfortable with the concept, you are of course encouraged to use the more complex layout options Mediawiki offers the editors of their Wiki. Please refer to the Wikitext examples page for a more detailed description of the markup language.

(by Jochen Weber)

Creating a new article

To create a new page c.q. article, simply enter the name of the new page in the URL address bar, after 'http://wiki.brainvoyager.com/', for example 'http://wiki.brainvoyager.com/BVQX_plugins'. The wiki will notice that the page does not exist yet, and ask whether the page should be created. Please note that the name of the new page should start with a capital letter and cannot contain white spaces; instead of white spaces, use underscores ('_').

Text markup

For plain text articles, there exist only a few things to remember:

what you must write \Rightarrow to get this...
== Topic heading ==
\Rightarrow

Topic heading

=== Topic sub-heading ===
\Rightarrow

Topic sub-heading

just a horizontal line
----
(please! use sparingly)
\Rightarrow just a horizontal line

(please! use sparingly)

''emphasized text''
\Rightarrow emphasized text
'''bold text'''
\Rightarrow bold text
<u>underlined</u>
\Rightarrow underlined
<u>'''''combined'''''</u>
\Rightarrow combined
Linking [http://www.brainvoyager.com/ our main site]
\Rightarrow Linking our main site
A link to our [[BVwiki]] main page
\Rightarrow A link to our BVwiki main page
A [[BVwiki|named link there]]
\Rightarrow A named link there
Putting a page into a category with
[[Category:BVwiki Guide]]
\Rightarrow Putting a page into a category with
Your signature:
~~~~
\Rightarrow Your signature:

Weber 16:24, 16 August 2006 (CEST)

Table markup

Naturally, sometimes you want to give data in tables (as in this very tutorial). Wikitext offers a very simple solution for that as well:

what you must write \Rightarrow to get this...
{| border=1
! header1 !! header2
|-
| cell 1,1 || cell 1,2
|-
| cell 2,1 || cell 2,2
|}
\Rightarrow
header1 header2
cell 1,1 cell 1,2
cell 2,1 cell 2,2
{| border=1 style="border:1px solid #000000;"
|colspan=2| spanning over columns || ...
|-
|rowspan=2| spanning over rows || ... || ...
|-
|                                 ... || ...
|}
\Rightarrow
spanning over columns ...
spanning over rows ... ...
... ...

Please note that certain tags, particularly the table opening tag must occur at the beginning of a line in the editor to work, otherwise they will not be interpreted as wikitext markup!

Template markup

One of the most interesting features of wikitext is the ability to use templates. A template can be nothing but a text you wish to re-use, but it can become as complex as a whole chess diagram being template driven--have a look at this example page from the English Wikipedia site. But there are or course much more "simple" uses for templates, one of which is shown below in the image markup section.

Usually, it is advisable to create the template in question first (i.e. before using it in an article), for then the preview button will show whether the outcome is as you've expected it to be. To do so, try to think of a unique (and also meaningful) name for the template, then click to the URL bar in your browser and go to a URL like http://wiki.brainvoyager.com/Template:MeaningfulTemplateName . You will be notified if the page exists (which means that you shouldn't alter it, not knowing where this template is used; whenever you have finished editing a template and are happy with the outcome, please inform one of the BI staff, so we can lock the editing feature for this template).

Now, press on the edit link and type the text (or markup) you want to reuse in several places. Once you have saved the template, it is ready for usage. Within the template you can use some special constructs to allow arguments being handed over. The syntax is as this:

In the template (say, called "HelloMyNameIs") you use the following code:

Hello, my name is {{{1}}}, and I'm pleased to meet you, {{{2}}}.

To use this template, you would then put this into an article:

{{HelloMyNameIs|Jochen|Peter}}

Then the outcome would be:

Hello, my name is Jochen, and I'm pleased to meet you, Peter.

While this is, of course, a fairly simple (and not too useful) sample, you certainly get the idea of what this can be used for.

Image markup

First of all, you must of course upload the image you want to use. Please use a (hopefully) unique destination filename when doing so! Then you can use the image in an article with the following syntax:

what you must write \Rightarrow to get this...
{{TutorialExampleText}}
[[Image:ImageTutorial.jpg]]
{{TutorialExampleText}}
\Rightarrow The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.

Image:ImageTutorial.jpg The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.

{{TutorialExampleText}}
[[Image:ImageTutorial.jpg|thumb|80px]]
{{TutorialExampleText}}
\Rightarrow The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
Enlarge

The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.

{{TutorialExampleText}}
[[Image:ImageTutorial.jpg|frame|center|Image title]]
{{TutorialExampleText}}
\Rightarrow The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
Image title
Image title

The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.

{{TutorialExampleText}}
{{ImageNoLink|/wiki/images/8/80/ImageTutorial.jpg}}
{{TutorialExampleText}}
\Rightarrow The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.

This latter syntax is based on a template (see above) and is mainly useful if you want to prevent an image from being linked to it's proper page (so hopefully rarely). Please bear in mind that you must not give the wikitext usual syntax (Image:UploadedName.Ext), but the destination file's location (which is given on an image's page!). Also, since this is no internal markup feature of wikitext, you must use a different markup with curly braces, { and }.

Personal tools