Template:RunningHeader
This template is used on approximately 1,580,000 pages, or roughly 35% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. 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) See H:DIVSPAN for details. |
Usage
Intended to simplify the display of running headers (can also be used for footers) when transcribing scanned text pages. Many texts include running headers (chapter names, etc.) centered at the top of a page, with accompanying page numbers on the left or right side (depending on whether the page number is even or odd). Some works, especially dictionaries and directories, have two headings in the center of the page, one to the left and one to the right.
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 third, or third, cell blank.
Example
{{rh|left|right}}
Example
{{rh|left|center|right}}
Example
{{rh|left|left-center|right-center|right}}
Example
{{rh|left|mid-left|center|mid-right|right}}
Example
{{rh|一|二|三|四|[page]|五|六|七|八|九}}
Parameters can be blank:
Example
{{rh|left|{{lorem ipsum}}|}}
Page styles
This template adds the class wst-rh
(search for .wst-rh in CSS files) 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
.
Redirects
{{Running header}}, {{runningheader}}, {{rh}}, {{RunningFooter}} and {{rf}} redirect here. Use these forms of the template if you prefer.
Tracking categories
TemplateData
RunningHeader
Simplify the display of running headers (and footers) when transcribing scanned text pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Numbered parameters | 1, …, n | Numbered parameters will be arranged in equal widths across the width of the page. | String | suggested |
class | class | Additional CSS classes to apply to running header. | Unknown | optional |
1 | 1 | no description | Unknown | optional |
2 | 2 | no description | Unknown | optional |
3 | 3 | no description | Unknown | optional |
4 | 4 | no description | Unknown | optional |
5 | 5 | no description | Unknown | optional |
6 | 6 | no description | Unknown | optional |
7 | 7 | no description | Unknown | optional |
8 | 8 | no description | Unknown | optional |
9 | 9 | no description | Unknown | optional |
center | center centre | no description | Unknown | optional |
left | left | no description | Unknown | optional |
right | right | no description | Unknown | optional |
See also
- {{recto-verso header}} for simple headers that vary by page number
- {{recto-verso header2}} for more complicated headers that vary by page number
- {{recto-verso header3}} for left/right aligned non-page number headers
- {{recto-verso header4}} for left/right aligned page number headers
- {{recto-verso}} for other headers that vary by page number
- {{left}} for left text-alignment
- {{center}} for center text-alignment
- {{right}} for right text-alignment
- {{issue banner}} for headers in periodicals