Welcome to the Slackware Documentation Project

This is an old revision of the document!


Wiki tutorial and guidelines

This page is a WIP (work in progress)

Namespaces

Please get acquainted with the concepts behind namespaces in DokuWiki: http://wiki.splitbrain.org/wiki:namespaces

Plain articles

When you are creating just a single page then it is OK to use one of our existing namespaces:

  • howtos:
    The logical place for all your tutorials
  • security:
    Documentation about how to deal with security issues on Linux (not particularly just Slackware); HOWTO's about securing your Linux computer and applications; how to safely surf the Internet; etcetera.
  • slackware:
    Articles directly related to the distro
  • wiki:user:
    Where every Wiki user can dress up his own “home page”
  • Or any of the localized namespaces (nl: de: fr: etcetera) which in turn contain the same sub-namespaces as mentioned above

Complex articles

If you add new tutorials etc which are split into multiple articles, contain screenshots etc, it is advisable that you put these in their own sub-namespace. Otherwise you will flood the current namespace and maintaining uploaded files will become a mess for the users and admins alike.

When you add a link inside an existing page which points to your new page in its own sub-namespace, you have to add your own namespace in the link too.

You do this by using colons, and if you start your “namespacing” with a dot '.' you make the namespace relative to the current pages namespace, which is standard.

Imagine that you are editing the main HOWTOs page and want to add your own HOWTO called “icecast streams” and you want to use multiple connected pages with screenshots. You would normally add a link to it in the HOWTOS main page by using the pagename “.icecast_streams:start”.
In this Wiki, the HOWTOs index page is automatically populated by using the tag “howtos” so use your tags wisely.
Such a name (inside a normal internal link) would put the page under the howtos:icecast_streams: namespace. You can then put all your uploaded files in that same namespace.
Note that I replaced the space in “icecast streams” with an underscore. Prevent spaces in the pagenames and namespaces!

Please try to maintain a clean namespace structure, it will be very hard to fix all the links if we have to make corrections to page locations and namespaces.

Syntax and formatting

First make yourself familiar with the DokuWiki syntax. It is not the same as MediaWiki syntax.

Try to keep the page formatting as clean as possible:

  • A page's main title heading should be in H1, the headings under that H2, headings under H2 should be H3 etcetera.
  • Don't use horizontal rulers unless necessary (for instance they are not necessary if there is a heading right above or beneath where you want to mark a “new section”).
  • Surround example commands and computer text with a “code text” markup. For example: man rc.inet1.conf. There is a “TT” button in the button bar above which inserts exactly that markup.

Here is an example of what a small page could look like, using namespaces for sub pages etc:

====== This is the page ======

You would write a description of your article here.
Remember that you can use sub-pages (sub-namespaces), where appropriate.

===== The first section =====

Some bla bla

[[.subpage:start | My in depth article]]

===== The second section =====

More text

[[.another_subpage:start | More information with screenshots]]

<!-- You can leave comments in your page - they will not be visible in the resulting Wiki article -->
<!-- Tags are essential for creating a Table Of Contents (TOC) -->
{{tag>howtos software}}

Images

You might want to include rather big screenshots within your articles, but having them displayed full size directly inside the article can make things look bad. Fortunately you can resize the image directly within the article. You can also set the alignment of the picture, some examples will show more than words:

Resize to given width:

{{wiki:dokuwiki-128.png?50}}

And left/center/right alignment like this:

{{ wiki:dokuwiki-128.png}}
{{wiki:dokuwiki-128.png }}
{{ wiki:dokuwiki-128.png }}

See DokuWiki information about images and other files for more info.

Code

You can insert code using the code tag, like this:

<code c> float a; </code>
float a; 
float b;
a = b * 10 + 2 * sin1(x);

Like this example shows, the readability is enhanced a lot if you apply code syntax highlighting when documenting shell scripts and such.

Spell Check

Please spell check your work, either with UK or USA English; many visitors do not have English as their primary language. Grammar checks in particular are hard for non-english authors, so do not hesitate to contact one of our site Editors to assist you in creating legible and fluent english texts.

Text template

You will notice that whenever you create a new page, you will already have some text pre-filled. This text comes from one of our templates- every namespace has a slightly different template text.
The most important aspect of the template is that it adds default tags to your page. These tags will allow us to populate our Table Of Contents automatically.

An example of a template text:

<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). -->



<!-- Please do not add anything below, except additional tags.-->
<!-- However we request that you remove the tag-word "template" below. Otherwise your page will not show up in the Table of Contents -->

<!-- Do not remove this line and the tag definition below. Thanks! slackdocs@-->
{{tag>howtos template}}


In Other Languages
Translations of this page?:
QR Code
QR Code slackdocs:tutorial (generated for current page)