Pergi ke kandungan

Modul:Chapter navigation/doc

Daripada Wikibuku

Ini ialah laman pendokumenan untuk Modul:Chapter navigation


This module provides a way to generate navigation bars to navigate between chapters of a book and a way to put a book chapter in the book category.

Usage

[sunting]

This module should not be invoked directly. The {{simple chapter navigation}} template should be used instead.

Functions

[sunting]

This module provides two functions: one to create a navigation bar and one to categorize the page automatically, assuming it is a book chapter. The former receives two optional arguments, previous and next, which should be the names of the previous and next chapters, respectively. It uses these chapter names to generate a navigation bar that is meant to be put at the bottom of the chapter page. The latter function does not have any parameter and puts the chapter page in the book category, ordering it properly. These two functions assume that the book follows the Wikibooks naming policy and are likely to work improperly if it is not followed.