Modello:DJVU page link

Template documentation[view] [edit] [history] [purge]


Il template va applicato al numero pagina sulle Righe indice e trasforma il numero pagina originale in un link alla pagina Pagina del file DjVu.
Helper template to display a page number (param 1), linking to the page within the DJVU file with an offset specified in param 2.

This template gives links for tables of contents using a page number from the original text and a simple offset to link to the page in the DJVU scan.

Usage cagna

{{DJVU page link|real number|djvu offset}}

In the main namespace, this gives a simple, unlinked label consisting of {{{1}}}, the number in the "real" book.

In the page: namespace, it gives a link to the relevant page in the DJVU with the number in the first parameter added to the second (Page:XXXX.djvu/{{{1}}}+{{{2}}}). The correct DJVU file is deduced from the page the template is used on.

In the index namespace, it will additionally show the proofreading status of the pages as a background colour.

Example cagna

In the table of contents for Mandagora:

{{DJVU page link|1|16}}

This will then link to page 17 (i.e. 1+16), which is "Page:Mandragora.djvu.djvu/17" from the page it is used on and the index page when transcluded, and will show the page number (unlinked) in the main namespace. In both places, the link will read "1".

See also cagna

  • {{DJVU page link 2}} for use when a simple offset won't work (due to the linked-to page being before page 1 (eg a preface on page "i") or when the book doesn't have a simple numbering system.