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
[edit]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
[edit]If page 42 (in the DJVU/PDF file) has this running header:
{{running header|30|CHAPTER I.|Part 1.}}
then using the tool on page 44 will produce:
{{running header|32|CHAPTER I.|Part 1.}}
and using the tool on page 43 will produce:
{{running header|Part 1.|CHAPTER I.|31}}
Limitations
[edit]- 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
[edit]If there are problems or improvements for this Gadget, please contact Inductiveload.
Technical details
[edit]- Gadget JS: Mediawiki:Gadget-RunningHeader.js
- Gadget description: Mediawiki:Gadget-RunningHeader