Template:RunningHeader
| This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses Lua: |
| This template uses TemplateStyles: |
This template uses block elements, e.g. This template applies the class(es) .wst-rh, which can be targeted with a work's index styles.css using page styles. See H:DIVSPAN for details. |
This template is intended to simplify the reproduction of running headers (or footers) when transcribing scanned text pages. Many texts include running headers (chapter names, etc.) centered at the top of a page, accompanied by page numbers on the left or right side (depending on whether the page number is odd or even). Some works, especially dictionaries and directories, have two headings in the center of the page, one to the left and one to the right.
Usage
You can provide any number of parameters to the template. By default, all heading "cells" are center-aligned, except for the first cell, which is left-aligned, and the last cell, which is right-aligned. Note that a usage with only one or two cells is really a three-cell header with the second and/or third cell blank.
Example
{{RunningHeader|left|center}}
Example
{{RunningHeader||center|right}}
Example
{{RunningHeader|left|center|right}}
Example
{{RunningHeader|left|left-center|right-center|right}}
Example
{{RunningHeader|left|mid-left|center|mid-right|right}}
Example
{{RunningHeader|一|二|三|四|[page]|五|六|七|八}}
Parameters can also be left blank:
Example
{{RunningHeader|left||TOP SECRET}}
Page styles
This template adds the class wst-rh (search for .wst-rh in CSS pages) to the outer container.
You can target specific cells of the header with CSS like .wst-rh > div:nth-child(n), where n is the cell number, or target all cells with .wst-rh > div.
TemplateData
RunningHeader
Simplify the display of running headers (and footers) when transcribing scanned text pages.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Left-aligned text | 1 left | The text to display aligned with the page's left margin | Line | suggested |
| Centered text | 2 center centre | Text to display centered between the page margins, or if more than three parameters are defined, equidistantly between the first and third parameter values | Line | suggested |
| Right-aligned text | 3 right | Text to display aligned with the page's right margin, or if more than three parameters are defined, equidistantly between the second and fourth parameter values | Line | suggested |
| Fourth parameter | 4 | Text to display aligned with the page's right margin, or if more than four parameter values are defined, equidistantly between the third and fifth | Line | optional |
| Fifth parameter | 5 | Text to display aligned with the page's right margin, or if more than five parameter values are defined, equidistantly between the fourth and sixth | Line | optional |
| Sixth parameter | 6 | Text to display aligned with the page's right margin, or if more than six parameter values are defined, equidistantly between the fifth and seventh | Line | optional |
| Seventh parameter | 7 | Text to display aligned with the page's right margin, or if more than seven parameter values are defined, equidistantly between the sixth and eighth | Line | optional |
| Eighth parameter | 8 | Text to display aligned with the page's right margin, or if more than eight parameter values are defined, equidistantly between the seventh and ninth | Line | optional |
| Ninth parameter | 9 | Text to display aligned with the page's right margin, or if more than nine parameter values are defined, equidistantly between the eighth and tenth | Line | optional |
| Tenth parameter | 10 | Text to display aligned with the page's right margin | Line | optional |
| Additional CSS classes | class | CSS class names to apply to the HTML block container element | Line | optional |
Tracking categories
See also
|
|