Module:BethNaught/RHH/doc

This module can be used to assist in populating the RunningHeader template often used in page headers. Normally this requires manual editing to position the page number on the left or right; this module automatically does this based on the number's parity. The center text can also be automatically filled depending on the parity of the page number.

Usage
As an assistant to filling RunningHeaders, this module is intended to be substituted. For example, the code

placed in the header field of the index page will, upon editing a page, be rendered as e.g.

three

which when saved becomes

Parameters

 * The first parameter (which is actually the module function being called) is always "three". mandatory.
 * , : the center text for odd- and even-numbered pages. Optional, default to empty string
 * : the center text for all pages. Optional, defaults to empty string. Overrides center_odd and center_even if specified.
 * : the number of the current page. If not provided, or not an integer, an empty RunningHeader is output.

Examples
three

three

three

three