Template:Running header

From Mises Wiki, the global repository of classical-liberal thought
(Redirected from Template:Rh)
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]

Simplifies the display of running headers and footers. In books, often the header of the page will have a page number on the right or left, as well as the chapter title or book title in the middle. This template allows that to be displayed easily.

3-part headers (left, center, right)

Most running headers have three parts, one on the left, one on the right and one in the center. If the template is given 3 arguments or fewer, they correspond to the left, center, and right sides of the running header.

The template may be called using implicit parameters, in which case the order is left, center, right. For example:

{{Running header|left|center|right}}

left right

center

Alternatively, it may be called with explicit parameter names. For example:

<nowiki>{{Running header|left=LEFT|center=CENTER|right=RIGHT}}

LEFT RIGHT

CENTER

The use of explicit parameter names is especially useful in cases where one or more parameters are to be omitted.

4-part headers (left, left-center, right-center, right)

Some works, escpecially dictionaries and directories, have two headings in the centre of the page, one to the left and one to the right. In this case, you can provide 4 parameters, corresponding in turn to the left, left-center, right-center and right parts of the header.

{{Running header|left|left-center|right-center|right}}
left left-center right-center right

If a fourth parameter is present but blank, it will still trigger a 4-part header:

{{Running header|left|left-center|right-center|}}
left left-center right-center

Redirects

Template:Rh redirects here; use it if you wish.