Difference between revisions of "Help:Linking templates"

From ISFDB
Jump to navigation Jump to search
m (sp)
m (Series)
Line 18: Line 18:
 
|-
 
|-
 
|'''[[:Template:A|A]]'''
 
|'''[[:Template:A|A]]'''
|Link to an ISFDB Author record
+
|Link to an ISFDB Author record display
 
|the author's name, with any spaces replaced by underscores
 
|the author's name, with any spaces replaced by underscores
 
|'''name''' specifies the text for the link display
 
|'''name''' specifies the text for the link display
 
|-
 
|-
 
|'''[[:Template:P|P]]'''
 
|'''[[:Template:P|P]]'''
|Link to an ISFDB publication record
+
|Link to an ISFDB publication record display
 
|the publication tag
 
|the publication tag
 
|'''name''' specifies the text for the link display
 
|'''name''' specifies the text for the link display
 
|-
 
|-
 
|'''[[:Template:T|T]]'''
 
|'''[[:Template:T|T]]'''
|Link to an ISFDB title record
+
|Link to an ISFDB title record display
 
|the title record number
 
|the title record number
 +
|'''name''' specifies the text for the link display
 +
|-
 +
|'''[[:Template:Series|Series]]'''
 +
|Link to an ISFDB series record display
 +
|the series record number
 
|'''name''' specifies the text for the link display
 
|'''name''' specifies the text for the link display
 
|-
 
|-

Revision as of 13:12, 29 April 2008

Linking templates are templates designed to insert a link (or links) into an ISFDB wiki page. They can serve as a shorthand for a link, so that the user need not remember the precise form of the link target. Linking templates may also format the display of the link is a prefered or standardized way.

Linking templates may create:

  • a wiki-link to another page in the wiki;
  • a link to a record in the ISFDB itself; or
  • a link to an external site

Many linking templates use a parameter to specify what is to be linked to or how the link will be displayed. Some take no parameters. Most are documented on their respective talk pages.

The complete list of linking templates may be foud in Category:Linking templates.

The following table documents some of them:

Template name Purpose Required parameters Optional parameters
Links to ISFDB data
A Link to an ISFDB Author record display the author's name, with any spaces replaced by underscores name specifies the text for the link display
P Link to an ISFDB publication record display the publication tag name specifies the text for the link display
T Link to an ISFDB title record display the title record number name specifies the text for the link display
Series Link to an ISFDB series record display the series record number name specifies the text for the link display
Links to ISFDB wiki pages
Publisher Links to a page in the Publisher namespace the title of the page name specifies the text for the link display
Clute/Grant Links to the page Reference:Clute/Grant None None
Reginald1 Links to the page Reference:Reginald1 None None
Reginald3 Links to the page Reference:Reginald3 None None
Tuck Links to the page Reference:Tuck None None
Links to external sites
Amazon Link to an amazon.com catalog record Amazon ASIN or ISBN name specifies the text for the link display
Amazon.ca Link to an amazon.ca catalog record Amazon ASIN or ISBN name specifies the text for the link display
OCLC Links to the OCLC fiction finder None None
LOC Links to the Library of Congress Online Catalog None None
Locus Links to the Locus Index to Science Fiction None None
Melvyl Links to the Catalog of the University of California Libraries None None