Template:Scan page link 3/doc

This template gives links for tables of contents when a simple offset system as used in scan page link is not sufficient.

Usage
In the main namespace, this gives a link to the page label in the chapter.

In the page: namespace, it gives a link to the relevant page with the number in the first parameter, eg. (Page:XXXX.djvu/). The correct scan file is deduced from the page the template is used on. The link text will still be the second parameter, as in the main namespace.

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

Example
In the table of contents for The American Indian:

This will then link to page 176, eg. (Page:The American Indian.djvu/176) from the index page when transcluded, and will link to page label 132 in Chapter 8 (The American Indian/Chapter 8) in the main namespace. In both places, the link will read "132".