]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/plugins/write/tutorial.mdwn
web commit by http://jeremie.koenig.myopenid.com/: fix typos
[ikiwiki.git] / doc / plugins / write / tutorial.mdwn
index 2fc1c3e3f4c764ffe76ff3fe7b7ffb816c9d2141..5be29b07c81224af04eda7ef96c8b9ea594a73fc 100644 (file)
@@ -2,10 +2,10 @@ This tutorial will walk you through [[writing|write]] your first ikiwiki
 plugin.
 
 What should the plugin do? Let's make it calculate and output the Fibonachi
-sequense. To output the next number in the sequence, all a user has to do
+sequence. To output the next number in the sequence, all a user has to do
 is write this on a wiki page:
 
-       \[[fib ]]
+       [[fib ]]
 
 When the page is built, that'll be replaced by the next number in the
 sequence.
@@ -44,7 +44,7 @@ has shown up again. It doesn't actually have to match the module name this
 time, but it generally will. This "fib" is telling ikiwiki what kind of
 PreprocessorDirective to handle, namely one that looks like this:
 
-       \[[fib ]]
+       [[fib ]]
 
 Notice the `\&preprocess`? This is how you pass a reference to a function,
 and the `preprocess` function is the one that ikiwiki will call to expand
@@ -98,7 +98,7 @@ And let's change the `preprocess` sub to use it:
 
 Feel free to try it out with a simple page like this:
 
-       \[[fib ]], \[[fib ]], \[[fib ]], \[[fib ]], \[[fib ]]
+       [[fib ]], [[fib ]], [[fib ]], [[fib ]], [[fib ]]
 
 Looks like it works ok, doesn't it? That creates a page that lists:
 
@@ -119,7 +119,7 @@ the sequence in some cases.
 Obviously, using a global `$last` veriable was a bad idea. It would
 work ok in a more regular cgi-based wiki, which only outputs one page per
 run. But since ikiwiki is a wiki *compiler*, things are a bit more
-complicated. It't not very hard to fix, though, if we do want the seqense
+complicated. It's not very hard to fix, though, if we do want the sequence
 to start from 1 in every page that uses it.
 
        my %last;