Jump to content

Template talk:Scan page link

Page contents not supported in other languages.
Add topic
From Wikisource
Latest comment: 2 years ago by Yodin in topic Adding functionality

usage

[edit]

I don't see the point in this template. It seems to convert the toc to navigation of the index, where it appears against a full set of links which display the actual page numbers. This is likely to create confusion, in more ways than one, eg. one table giving the actual state of progress and another showing the status of the first page only.

  • It only links the first page of a section, very useful to a reader but how is this helpful to contributors?
  • It gives a false indication of the status of the section, showing the colour of that page only.
  • The result is redundant and inferior to the Index page.
  • You have to apply the correspondence twice, adjusting the display in the index and the toc, the scheme for the former has to be established or you need to keep adjusting both.
  • It displaces the intended use of the ToC, a reference to the actual page number.
  • It is complicated by its unnamed parameters.
  • It doesn't work with roman numerals.
  • It makes the simple reference of a page number into an arcane link through the workspace.

In all the stages of developing a text, I can see no advantage in using the DjVu numbering over those in the end result. The templates in the Page: ns should be for the display in main. This seems to be a compromise over the deprecated cross-linking from main to Page, who does this help? Cygnis insignis (talk) 03:30, 16 July 2010 (UTC)Reply

I just discovered that it would actually come in handy when in the process of transcribing pages from texts that are unpaginated. Since the link doesn't translate over into the Main, it is at least helpful with Index navigation when proofreading. I am finding that to be the case here, and would actially like to know how a similar template/format could be applied with an Index made up of single JPG images as opposed to DJVU... Londonjackbooks (talk) 13:20, 22 March 2011 (UTC)Reply

Adding functionality

[edit]

I'd like to add a few parameters:

  • chapter / 3

This optional parameter would let the page to link to a chapter when the page is transcluded into the mainspace. This would be like {{scan page link 3}}, but there doesn't seem any need to create a new template just for this functionality.

  • anchor / 4

If chapter / 3 exists, then this would allow an optional anchor link within the chapter to link to, when the page is transcluded into the mainspace. This would let the user to override the default (linking to the page number, as with {{scan page link 3}}), for cases where a TOC lists sections within a chapter that will be transcluded into a single page.

  • index

This would let the TOC listing to specify which file the page should be linked to, in cases where a TOC covers more than one volume, and those volumes are in separate files.

The first two parameters should address some of the points raised above. All existing uses of the template would remain exactly as they are now. --YodinT 21:00, 4 March 2022 (UTC)Reply

I've created a sandbox version with the above changes. It looks like it's working as expected on the testcases page, the Sandbox, and the mainspace using preview as well. Unless there are any objections, I'll add it to the main template. --YodinT 17:41, 29 March 2022 (UTC)Reply