User:Whiteknight/Page List Header
<noinclude>
Read this first! This template uses some strange esoteric wiki syntax to perform its template magic. Please do not edit it without checking with Whiteknight first. |
Creating This Template
editTo create a page header template using this design, go to the template page and type:
{{subst:User:Whiteknight/Page List Header|<<BOOKNAME>>|<<PAGELIST>>}}
Where <<BOOKNAME>> is the title of your book. <<PAGELIST>> is a listing of pages in your book, typically separated by a dash, and mdash, or some other symbol. Click "Save page" to create the template. This will substitute in all the necessary code and text.
Options
editYou can customize the CSS style of the template by adding a third argument:
{{subst:User:Whiteknight/Page List Header|<<BOOKNAME>>|<<PAGELIST>>|<<STYLE>>}}
If you add this style parameter, it will override all the default styles from the template. The default style, which you may want to duplicate in whole or in part, is:
width: 90%; clear: all; padding: 5px; margin: 5px auto;
Using This Template
editTo use this template in your book, use regular template syntax to include it at the top of every page. This template takes two arguments, both of which are unnamed. The first argument is the name of the previous subpage, and the second argument is the name of the next subpage. page names are automatically prepended with the name of the book. This means that you cannot use this template to navigate to pages in other books.