Template:NYT ext link/doc

Description
This template generates various types of links to the web site.

Usage
In its simplest form the template takes a and a link name and displays the link with description appended:

Code:

Result:

If you would like to simply make a link without the description you can add "inline=true", which will also work with the other parameters described below.

Code:

Result:

Topic page link
This template can mimic Wikipedia:Template:NYTtopic if passed a topic path through "topic=". The description is changed appropriately. If you use "topic=" you must specify the link name with "linkname=".

Code:

Result:

Archive page link
This template can generate a link to the NYT archive site if passed an archive ID through "archive=". The archive ID usually appears after "res=" in the URI:


 * http://select.nytimes.com/gst/abstract.html? res=FB0D17FD3C55137A93C2AA178ED85F438585F9 &scp=3&sq=US+Studying+Protest&st=p

If you use "topic=" you must specify the link name with "linkname=".

Code:

Result:

Parameters

 *   or uri - The page URI to link to.
 *   or linkname - The link name or link title.  Defaults to the current Wikisource page name.
 * inline - If true, display the link alone without any following text. Value can be "true" or "false"; defaults to "false".
 * topic - See Topic page link above. No value by default.
 * archiveid - See Archive page link above. No value by default.
 * year - Optionally display a year in parentheses. No value by default.
 * author - Optionally display "by author" following the link. No value by default.