Watch videos with subtitles in your language, upload your videos, create your own subtitles! Click here to learn more and view tutorials on "how to dotSUB"

Welcome to dotSUB!

Any Video Any Language


On dotSUB you can view, upload, transcribe, and translate any video into and from any language.


To get started and create your own subtitles, click on the yellow "get started" button below!


Transcript for DokuWiki 02 - Creating Links and Pages

Time Content
00:01 → 00:03

Hello, this is Andreas Gohr from DokuWiki

00:03 → 00:08

and today we wanna learn how to create links in DokuWiki pages.

00:08 → 00:13

So here we are where we left off in the last DokuWiki screencast:

00:13 → 00:19

our very first page, still as it was as we left.

00:19 → 00:22

So let's edit that page again to add a few links.

00:22 → 00:24

We press edit...

00:24 → 00:28

...and are presented with the DokuWiki syntax again

00:28 → 00:31

in the "edit mode".

00:31 → 00:34

To add a few links, let's add a few sections first:

00:34 → 00:38

some internal links...

00:38 → 00:42

Let's say we want to add some hobbies of mine,

00:42 → 00:45

so we call that section "Hobbies".

00:45 → 00:51

And while we're at it, we'll add some friends as well...

00:51 → 00:54

so here goes the "Friends".

00:57 → 01:04

To make that look nice we also add a list for that:

01:04 → 01:06

let's add an unordered list item

01:06 → 01:09

and let's create our very first link.

01:09 → 01:11

So what are my hobbies?

01:11 → 01:15

My first hobby is of course "programming".

01:15 → 01:19

So we put "Programming" in here, mark it

01:19 → 01:21

and press the "link button".

01:21 → 01:26

As you can see, links are marked up in DokuWiki with

01:26 → 01:32

square brackets - two in front, two after the text.

01:32 → 01:38

You don't need to press the button in the formatting toolbar

01:38 → 01:41

you can also just enter the same syntax.

01:42 → 01:45

What (other) hobbies do I have?

01:46 → 01:51

How about "Photography"? I love to take pictures.

01:51 → 01:57

"Eating" - everybody needs to eat ;-)

01:58 → 02:02

So let's leave it there and press "Preview"

02:04 → 02:09

That's how DokuWiki will render our links.

02:09 → 02:11

Let's just save them.

02:11 → 02:17

What we created are three links to pages in our DokuWiki,

02:18 → 02:23

pages that don't exist yet, because we haven't created them yet

02:23 → 02:28

- we only created links. They are all marked red with a underline.

02:28 → 02:33

So if you press one of them, it will tell you "This topic does not exist yet".

02:33 → 02:36

You may remember that text from our first screencast.

02:36 → 02:41

It is always shown when you follow a link to a page that doesn't exists.

02:41 → 02:45

Here on the top you can see how the page is named

02:45 → 02:47

it says "programming".

02:47 → 02:50

Let's create that page real quick...

02:50 → 02:53

Nothing new here, you know the rules:

02:53 → 02:58

Just add some headline "Programming"

02:58 → 03:05

"I like to program in PHP

03:05 → 03:09

and JavaScript"

03:09 → 03:13

There are probably a few languages more but it's enough to prove the point.

03:13 → 03:16

We save that.

03:16 → 03:20

You see, DokuWiki has that handy feature -

03:20 → 03:23

it will remember which pages you visited.

03:23 → 03:28

We started at the "start" page and then went to the "programming" page

03:28 → 03:32

To go back to the "start" page we just press "start" again.

03:32 → 03:37

You will notice, now the link is green,

03:37 → 03:40

because that page already exists - we created it.

03:40 → 03:44

That's how you create new pages in DokuWiki:

03:44 → 03:48

You add a link at some page,

03:48 → 03:51

then save, follow that link and create the new page.

03:51 → 03:57

This makes sure that all your new pages will be linked with other pages

03:57 → 03:59

so nobody can get lost in your wiki.

03:59 → 04:02

How about external links?

04:02 → 04:05

External links are equally easy to add.

04:05 → 04:08

Let's add some websites here.

04:14 → 04:18

Friends - Let's add Michael Klier

04:18 → 04:21

who does a few very cool DokuWiki templates

04:21 → 04:26

To add an external link, you can use the external link button

04:26 → 04:29

and it will give you an example how to markup external links.

04:29 → 04:34

It's pretty easy: just enter the URL

04:34 → 04:37

- again in square brackets -

04:37 → 04:41

and you can enter a description after a pipe symbol

04:41 → 04:44

so the description would be -

04:44 → 04:47

(sorry, the URL wasn't complete...)

04:47 → 04:52

There you go - press preview

04:52 → 04:58

and you can see that's how an external link will look like in DokuWiki

04:58 → 05:03

it has by default a little earth icon

05:03 → 05:05

to show it's an external link

05:05 → 05:10

and if you follow that link it will bring you to an external page

05:10 → 05:12

Let's save that one.

05:14 → 05:19

I just showed you how to create links that have an

05:19 → 05:22

optional title that is different from the page.

05:22 → 05:25

I just showed it with an external link

05:25 → 05:28

but, let's edit the whole page again

05:28 → 05:34

and add some title to an other page.

05:34 → 05:40

We have here "Eating" and let's say we add an other title

05:40 → 05:46

calling it "Eating really good food"

05:48 → 05:50

Save that.

05:51 → 05:53

When we follow that link...

05:53 → 05:56

- you see it already shows it in a tooltip -

05:56 → 06:01

when we follow that link we will go to a page called "eating"

06:01 → 06:06

because that is what we had before the pipe symbol in our link.

06:06 → 06:10

Let's have a look again at the syntax:

06:10 → 06:15

See? We have "eating" - that's the page name

06:15 → 06:20

before the pipe, then we have "Eating really good food" after the pipe

06:20 → 06:22

that's the title.

06:22 → 06:27

Press cancel, follow the link, create it...

06:27 → 06:34

What we have in as the title in the link has nothing to do

06:34 → 06:37

with what we have as the first headline

06:37 → 06:42

in that page, so we can even call it

06:42 → 06:47

"Eating good food with friends"

06:55 → 06:57

Let's go back to the start page

06:57 → 07:02

You see, it didn't change anything in the link title.

07:02 → 07:05

So these are different concepts.

07:05 → 07:07

If you are familiar with creating HTML,

07:07 → 07:11

you will probably feel right at home, everybody else

07:11 → 07:17

shouldn't really have a problem with following those simple concepts.

07:17 → 07:23

That's how you create links and that's how you create new pages in your wiki.

07:23 → 07:25

To recap it:

07:25 → 07:30

You use square brackets to mark up your links,

07:30 → 07:34

use an optional pipe symbol to add an optional title

07:35 → 07:40

and... yeah go crazy ;-)