Template:Double link/doc

Usage
This template creates a wikilink that takes a different value depending on whether it is located within the  and   namespaces or other namespaces such as Main.

It takes 3 arguments. The first is the link for the  namespace, the second is the link for the Main namespace, the third is displayed text.

Example
The code below links to Page:Life with the Esquimaux - 1864 - Volume 2.djvu/356 in the  namespace, it to Life with the Esquimaux/Volume 2/Appendix in the Main namespace, and it displays Appendix, No. 1. in both cases: