ઢાંચો:RunningHeader/doc
This is a documentation subpage for ઢાંચો:RunningHeader. It contains usage information, categories and other content that is not part of the original ઢાંચો page. |
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).
PLEASE NOTE: This template does not currently display exact centering of the centered text, there will be some shifting left or right.
3-part headers (left, centre, right)
[ફેરફાર કરો]Most running headers have three parts, one on the left, one on the right and one in the centre. 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:
{{RunningHeader|left|center|right}}
Alternatively, it may be called with explicit parameter names. For example:
{{RunningHeader|left=LEFT|center=CENTRE|right=RIGHT}}
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-centre, right-centre, right)
[ફેરફાર કરો]Some works, especially 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-centre, right-centre and right parts of the header.
{{RunningHeader|left|left-centre|right-centre|right}}
left | left-centre | right-centre | right |
If a fourth parameter is present but blank, it will still trigger a 4-part header:
{{RunningHeader|left|left-centre|right-centre|}}
left | left-centre | right-centre |
Redirects
[ફેરફાર કરો]{{Running header}} and {{rh}} redirect here. Use these forms of the template if you prefer.
Templatedata
[ફેરફાર કરો]Simplify the display of running headers (and footers) when transcribing scanned text pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Left | left 1 | Left-side text. | String | suggested |
Center (or center-left) | center centre 2 | The center text. | String | suggested |
Right (or right-center) | right 3 | The right-side text. | String | suggested |
Right (if 4 params used) | 4 | If four parameters are given, they will be arraged in four equal widths across the width of the page. | String | optional |
See also
[ફેરફાર કરો]- Template:right for right text-alignment
- Template:left for left text-alignment