Template talk:Ref

From Wikisource
Jump to navigation Jump to search

Why its doesn't work?~! Niki 09:16, 4 Jun 2005 (UTC)

Implemented new parameter for linking to references page[edit]

In the template sandbox (Template:Ref/sandbox) I've implemented a parameter which allows linking to another page which is the target of the reference. This functionality is only enabled on Page: and Index: namespaces, so will otherwise assume the target is on the same wiki page as is currently the case. My changes are mostly copied from Template:TOC link.

The parameter is "page" or the third positional parameter. It takes a page number (per Page: namespace numbering) and assumes the target page to be on the same PDF/DjVu file.

This is a pretty trivial functionality, again visible only to those who browse Page: and Index: namespaces, but with this being a high-use template I wanted to provide a chance for review. djr13 (talk) 02:04, 11 September 2019 (UTC)[reply]