ਫਰਮਾ:Recto-verso header2
Usage
[ਸੋਧੋ]Template recto-verso header2 is based on {{recto-verso header}}
, intended to make it easier to deal with the differences between recto and verso page headers in simple cases. By convention, recto pages have a page header consisting of a centred chapter or section title and a right-aligned page number, while verso pages have a left-aligned page number and a centred work title. Similarly, works tend to start their page numbering (page "1") on a recto page, meaning odd-numbered pages are recto pages and even-numbered pages are verso pages. This template attempts to make the (Q255731) changes semi-automatic by calling {{rh}} with different parameters depending on whether the provided page number is odd or even.
The intended use is to insert this template in the Header field of the work's index page with the page number argument replaced with {{{pagenum}}}
. When creating a page in the Page: namespace, the ProofreadPage extension will replace that argument with the actual page number, leading to a template invocation that will do the right thing. You can, of course, also use it directly on a page in the Page: namespace, but that will usually not be any easier than just using {{rh}}
directly.
Difference between Recto-verso header and Recto-verso header2
[ਸੋਧੋ]{{Recto-verso header}} is intended to make things as simple as possible and as a result it has many limitations. Template Recto-verso header2 has the same usage to which it adds the following:
- It works also with lower-case Roman numerals
- It enables to apply various formatting to the page number or to omit the page number in the optional 4th parameter
Examples
[ਸੋਧੋ]- Functionalities from the template {{rvh}}
{{rvh2|1|chapter|work}}
chapter
1
{{rvh2|2|chapter|work}}
2
work
{{rvh2|1|work}}
work
1
{{rvh2|2|work}}
2
work
- Lower-case roman numerals
{{rvh2|i|chapter|work}}
chapter
i
{{rvh2|ii|chapter|work}}
ii
work
{{rvh2|xv|work}}
work
xv
{{rvh2|xviii|work}}
xviii
work
- Formatted header
If you need to apply some formatting to the page number, it has to be done in the additional 4th parameter
{{rvh2|1|{{larger|''chapter''}}|{{larger|''work''}}|{{larger|''1''}}}}
chapter
1
{{rvh2|2|{{larger|''chapter''}}|{{larger|''work''}}|{{larger|''2''}}}}
2
work
- No page numbers displayed
If the page numbers are not to be displayed, they still have to be provided in the first parameter to decide whether the page is recto or verso, but displaying them can be suppressed by setting
in the fourth parameter.
{{rvh2|1|chapter|work| }}
chapter
{{rvh2|2|chapter|work| }}
work
Tricks
[ਸੋਧੋ]- There's nothing preventing you from swapping the text for the recto and verso arguments. This template does not know anything about what you put in there: it's all just text, and it'll dutifully spit it out on alternating pages regardless of content. Does your work have the work's title on recto pages and the chapter title on verso pages? Just swap the arguments.
See also
[ਸੋਧੋ]- {{rvh}} - Simpler version of rvh2
- {{rvh3}} - for left/right aligned non-page number headers
- {{rh}} - Simple 3 and 4 item running header
- {{rh/5}} 5 item running header left center center center right arrangment, as might be encountered in an index, dictionary or Gazetteer type work.
- {{rv}} - Template with flexible content to cover non-standand cases