Predefinição:Recto-verso header

(Redirecionado de Predefinição:Rvh)
Documentação da predefinição[ver] [editar] [histórico] [purgar]

recto-verso header is 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 recto and verso (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.

Note that this template deliberately only handles very simple and regular cases, and does not expose the full functionality of {{RunningHeader}}. It is intended to make simple cases simple, not to be everything to everyone in all cases.


Syntax

editar

The syntax is:

  • {{rvh|pagenumber|text for recto pages|text for verso pages}}

… or …

  • {{rvh|pagenumber|text for all pages}}


Examples

editar
Typical use with the work's title on verso pages and the chapter title on recto pages
  • {{rvh|1|A Chapter|The Great Work}}
A Chapter
1
  • {{rvh|2|A Chapter|The Great Work}}
2
The Great Work


When the text (often the work's title) is the same on all pages, but the page number is on the left for verso pages and right for recto pages
  • {{rvh|1|The Great Work}}
The Great Work
1
  • {{rvh|2|The Great Work}}
2
The Great Work


Limitations

editar

The template is made to be simple, and consequently it deliberately does not even try to handle complicated or edge cases. There is nothing this template can do that you cannot also do with {{rh}} directly (all it does is call {{rh}} with various parameters), so if you can't do what you want with this template you'll probably want to use that instead.

Specifically, this template only supports plain arabic page numbers (it works by calculating the modulo of the page number: if there's a remainder it's odd, if there's not it's even). Non-numeric page numbers and things like roman numerals either have no inherent way to determine whether they are a recto or verso page, or they would require a ton of complicated code to convert into a computable number, and consequently they are not supported in this template. Use {{rh}} directly for that.

Similarly, supporting more than page number and work/chapter title would complicate the code immensely and is better handled by {{rh}} to begin with. The same goes for various partial alignment, conditional behaviour, and so forth. If you need that you should use {{rh}} directly rather than this template.

Tricks

editar
  • 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

editar
  • {{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.