Template:Chapter navigation
From CFD-Wiki
(Difference between revisions)
Line 2: | Line 2: | ||
-->{{#ifeq:{{SUBPAGENAME}}|Print version|class="hiddenStructure"|<!-- | -->{{#ifeq:{{SUBPAGENAME}}|Print version|class="hiddenStructure"|<!-- | ||
-->{{#ifeq:{{SUBPAGENAME}}|Printable version|class="hiddenStructure"}}}}><!-- | -->{{#ifeq:{{SUBPAGENAME}}|Printable version|class="hiddenStructure"}}}}><!-- | ||
- | -->{{#if:{{{1|}}}|← [[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{1}}}|{{{1}}}]] | + | -->{{#if:{{{1|}}}|← [[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{1}}}|{{{1}}}]] · }}<!-- |
-->{{#if:{{{2|}}}| [[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{2}}}|{{{2}}}]] →}}</span><!-- | -->{{#if:{{{2|}}}| [[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{2}}}|{{{2}}}]] →}}</span><!-- | ||
Line 10: | Line 10: | ||
-->{{#if:{{{1|}}}|← [[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{1}}}|{{{1}}}]] · }}<!-- | -->{{#if:{{{1|}}}|← [[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{1}}}|{{{1}}}]] · }}<!-- | ||
-->'''[[{{NAMESPACE}}:{{BASEPAGENAME}}|{{BASEPAGENAME}}]]'''<!-- | -->'''[[{{NAMESPACE}}:{{BASEPAGENAME}}|{{BASEPAGENAME}}]]'''<!-- | ||
- | -->{{#if:{{{2|}}}| | + | -->{{#if:{{{2|}}}| · [[{{NAMESPACE}}:{{BASEPAGENAME}}/{{{2}}}|{{{2}}}]] →}}<!-- |
--></span></center><!-- | --></span></center><!-- | ||
Revision as of 12:54, 19 June 2007
This template adds:
- links to the previous and next pages of the book to the top of the page
- links to the title page, previous page, and next page of the book to the bottom of the page
- the page to a category with the same name as the title page or optionally another category in its place, and sorts by the name of the subpage
Usage
{{Chapter navigation|optional previous subpage name|optional next subpage name|optional category (if different from book title)}}
Type {{Chapter navigation|previous subpage name|next subpage name}} at the bottom of each chapter in your book. If adding to the first chapter of a book, leave the first field blank ({{Chapter navigation||next subpage name}}). If adding to the last chapter, leave the second field blank ({{Chapter navigation|previous subpage name}}). Pages will be added to a category of the book's title unless another category is specified in the third parameter.
Example
See An introduction to turbulence for an example.