Help:Gadget-RunningHeader

The running header gadget is a gadget that can be used to attempt to load running headers from pages surrounding the current page.

Usage
To enable the gadget, check the checkbox in your gadget preferences, in the "Editing tools for Page: namespace" section.

On Page: namespace pages, a link will appear in the sidebar. When you click this, it will attempt to load a running header from the following pages, using the first one found:


 * 2 pages behind
 * 4 pages behind (e.g. to skip a chapter or image with no header)
 * 2 pages ahead
 * 4 pages ahead
 * One page behind
 * One page ahead.

If a header is found on a page with an odd offset from the current page, the header is swapped left-to-right. The page number is always adjusted according the offset, if possible. Roman numerals are supported.

When a header is found, it is automatically prepended to the header field and the field flashes green.

Example
If page 42 (in the DJVU/PDF file) has this running header:

then using the tool on page 44 will produce:

and using the tool on page 43 will produce:

Limitations

 * Some very complicated headers might fail to detect the page number and need adjusting by hand.
 * Running headers that use the chapter name need to be adjusted at the start of each chapter.

Support
If there are problems or improvements for this Gadget, please contact Inductiveload.

Technical details

 * Gadget JS: Mediawiki:Gadget-RunningHeader.js
 * Gadget description: Mediawiki:Gadget-RunningHeader