Template:Citation/make link/doc
< Template:Citation | make link
Jump to navigation
Jump to search
Revision as of 18:54, 25 July 2009 by imported>Fullstop (m title)
| This is a documentation subpage for Template:Citation/make link. It contains usage information, categories and other content that is not part of the original template page. |
This template ({{Citation/make_link}}) is a "subroutine" of {{Citation/core}}. It is used for conditionally making links for the chapter= and title= fields in a citation.
It is invoked as
- {{citation/link
- | 1 = <value of IncludedWorkURL= or URL= or PMC= parameters>
- | 2 = <value of IncludedWorkTitle= or Title= parameters>
- }}
Depending on the value of the first parameter, it then returns one of the following:
- 1. if parameter #1 is empty or "none", it returns the second parameter as plain text
- 2. if parameter #1 is an external url, it returns an external link-ified form of parameter #2
- 3. default: treats parameter #1 as the name of an existing article, and so returns an internal link form of parameter #2
This "subroutine" is not suitable for general use. It makes certain assumptions that are probably only valid as used by {{citation/core}}.