User:Whiteknight/Page Nav Header2

From Wikibooks, open books for an open world
Jump to: navigation, search
#if: | ← [[{{{book}}}/{{{last}}}|{{{last}}}]] —  | }}User:Whiteknight/Page Nav Header2#if: |  — [[{{{book}}}/{{{next}}}|{{{next}}}]] → | }}

<noinclude>


Creating This Template[edit]

To create a page header template using this design, go to the template page and type:

{{subst:User:Whiteknight/Page Nav Header2|book=<<BOOKNAME>>}}

Where <<BOOKNAME>> is the title of your book. Click "Save page" to create the template. This will substitute in all the necessary code and text.

Options[edit]

You can customize the CSS style of the template by adding a style argument:

{{subst:User:Whiteknight/Page Nav Header2|book=<<BOOKNAME>>|style=<<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[edit]

To use this template in your book, use regular template syntax to include it at the top of every page. This template takes two arguments, "last" and "next". The "last" argument is the name of the previous subpage, and the "next" 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.

Notes[edit]