The International Simutrans Forum

Community => Simutrans Help Center => Tutorials => Topic started by: MoTw on May 05, 2010, 06:05:55 pm

Title: [Tutorial] How to write a wiki article
Post by: MoTw on May 05, 2010, 06:05:55 pm
Tutorial: How to... Create a Wiki-Article

This tutorial will guide you through the process of writing a wiki article and thus helping other Simutrans players. Don't fear, it's easier than you think!

First, visit the official Simutrans Wiki at http://wiki.simutrans-germany.com. You may want to register for a new account, so choose your nickname and p****word.

Once you have chosen the topic you want to write about, think of how you are going to write. Perhaps you may want to create a pre-version in a (simple) text editor like gedit etc. (Linux), Notepad (Windows) or TextEdit (Mac).

When you're quite happy with your solution, open the Simutrans Wiki (http://wiki.simutrans-germany.com). At the frontpage, you'll see three links, one to the English, one to the German and one to the Swedish Wiki section. Choose your preferred language at next. You can do this by clicking the button on the top of the page (see picture).

(http://dl.dropbox.com/u/1709823/tut_wiki/1.png)

Next, you'll need to create a new page in order to start writing. To do so, have a look at the left column of the wiki. Look for the box which says 'create/edit a wiki page' (the eighth entry from top). Enter either the name for the new article (if you're going to post an article which does not exist so far) or the (exact) name of an already existing page to be prompted to edit it. If you want to edit an article but don't know its exact name, don't worry: Just start typing the topic and there will be suggestions made while typing.

(http://dl.dropbox.com/u/1709823/tut_wiki/2.png)

Once you have submit the name for a new article, you will be prompted to a page where you have to select the language in which your article will be. Do so, and click on 'choose language' when you're done.

(http://dl.dropbox.com/u/1709823/tut_wiki/3.png)

The first thing you might want to do is to set the headline for your article so the user get to know the topic. In the editing page, just click the 'H1' button. There will be something like '!text' appearing in your text box. Just remove the 'text' (don't remove the exclamation mark!) and type your heading. Alternatively, just enter an exclamation mark into the textbox followed by your heading - remember not to make a space between the exclamation mark and your heading, otherwise it won't be recognized as a headline. This is how it will look like:

(http://dl.dropbox.com/u/1709823/tut_wiki/4.png)

Later you may want to use sub-headings. For sub-headings just click on the 'H2' and 'H3' buttons or type '!!' for heading n°2 or '!!!' for heading n°3.

Now you can start filling your text into the box. You may use the other buttons for additional formatting. Because they're almost self-explaining, I won't show you their function in detail. Just a short overview. I'll start from top-left continuing until bottom-right.

(http://dl.dropbox.com/u/1709823/tut_wiki/5.png)


Let's move on to the next row.

Maybe you've already noticed the other tabs available at the top of the button bar.

(http://dl.dropbox.com/u/1709823/tut_wiki/6.png)


Before submitting your article, press the 'Preview' button which will make you able to correct mistakes before placing your article in the web.

(http://dl.dropbox.com/u/1709823/tut_wiki/7.png)

At the bottom of the input box, you can enter a summary of the changes you made, upload pictures and several things more.

That's it! Now you've learned the basics of wiki syntax. For further information, visit the Tikiwiki homepage at http://doc.tikiwiki.org/tiki-index.php or ask our friendly members!

I hope I have encouraged you to help writing the documentation of Simutrans. Don't fear, write! ;)

________________________
What do you think of this tutorial? Spotted any mistakes? Let me know!

EDIT: I wrote this Tutorial because of a posting Frank made at Hajo's Funkelwerk-Forum:
http://www.funkelwerk.de/forum/index.php?topic=317.msg1129#msg1129 (http://www.funkelwerk.de/forum/index.php?topic=317.msg1129#msg1129) (in German)

________________________
EDIT: @Frank, thanks, I fixed the TOC-section
Title: Re: [Tutorial] How to write a wiki article
Post by: sanna on May 06, 2010, 06:45:08 am
Just wanted to add that even if today there is only a wiki "root" for Swedish, English and German, this does not in any way mean that pages only are welcome in those languages. Write in whatever language you prefer, and if you feel the need for a wiki root for your preferred language ask Frank or me and we can set one up.

Currently most pages have a name that starts with the language abbreviation followed by an underscore; f ex pages written in Swedish start with sv_, in German with de_ and English en_. I think it is a good idea to continue this naming practice.
Title: Re: [Tutorial] How to write a wiki article
Post by: Frank on May 06, 2010, 05:17:47 pm
...
  • In the third row, the first button is to implement a table of contents to your article which makes it easier for the reader to navigate through your text. In the textbox, '{maketoc}' will appear. Don't change anything, it will automatically detect the headlines you used and show them up in a user-friendly way. Use the next button to have an extended table of contents.
...

(http://simutrans-germany.com/wiki/wiki/pics/icons/book.png) show a TOC from structure, from this page
code: {toc}

(http://simutrans-germany.com/wiki/wiki/img/icons/float.gif) show a TOC from headlines on the page
code: {maketoc}

TOC = table of content
Title: Re: [Tutorial] How to write a wiki article
Post by: MoTw on May 06, 2010, 05:26:29 pm
(http://simutrans-germany.com/wiki/wiki/pics/icons/book.png) show a TOC from structure, from this page
code: {toc}

(http://simutrans-germany.com/wiki/wiki/img/icons/float.gif) show a TOC from headlines on the page
code: {maketoc}

TOC = table of content

Thanks, I fixed that.
Title: Re: [Tutorial] How to write a wiki article
Post by: Frank on May 06, 2010, 05:53:39 pm
(http://simutrans-germany.com/wiki/wiki/img/icons/book.gif) shows items from translate tracker (http://simutrans-germany.com/wiki/wiki/tiki-view_tracker.php?trackerId=2)

this Tracker lists common texts

code: {TRAFD(fields=>SprachID,filtervalue=>TextID)}{TRAFD}

SprachID = listed in the tables on this page (http://simutrans-germany.com/wiki/wiki/tiki-index.php?page=de_TranslateTracker)

TextID = column Id in the translate tracker (http://simutrans-germany.com/wiki/wiki/tiki-view_tracker.php?trackerId=2)


(http://simutrans-germany.com/wiki/wiki/img/icn/pagetop.gif)(http://simutrans-germany.com/wiki/wiki/img/icons/pagetop.gif) show a top link to the page

code: {ALINK(aname=tiki_top)}{TRAFD(fields=>9,filtervalue=>1)}{TRAFD}{ALINK}

default language is English ( fields=>9 ) and show Top
Title: Re: [Tutorial] How to write a wiki article
Post by: sanna on May 07, 2010, 07:27:56 am
I think this was needed at Simutrans Tikiwiki as well, so I create http://simutrans-germany.com/wiki/wiki/tiki-index.php?page=en_TikiwikiEditing and added the content from this tutorial. I have not included the changes proposed by Frank that has not been incorporated.