Forum:Generating navigation links via templates... howto?

I'd like to create a template that has one parameter and generates two links: to previous article and to the next one. All considered articles are sorted via redirect pages called saying Article_1, Article_2 etc.

I think I need something like
 * Previous article | Next article

I mean the first link reduces parameter number by one, the second arises. And Article_0 is a redirect to the table of contents without this template, and Article_&lt;last+1&gt; is another special page.

Is it possible to do that, what manuals should I read? I looked through help:templates pages and following wikipedia links but found nothing that actually helped me. Have I missed something? // Gluk47 00:24, December 20, 2009 (UTC)