Difference between revisions of "Help:Linking templates"

From ISFDB
Jump to navigation Jump to search
m (sp)
(Removed the Melvyl template, which i snow obsolete)
 
(16 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''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 covered here are those designed for use within the '''ISFDB Wiki'''. Those designed for use in the Notes field of '''ISFDB records''' are covered at [[Help:Using Templates and HTML in Note Fields#Templates]].''
  
Linking tempaltes may create:
+
'''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 preferred or standardized way.
 +
 
 +
Linking templates may create:
 
* a wiki-link to another page in the wiki;  
 
* a wiki-link to another page in the wiki;  
 
* a link to a record in the ISFDB itself; or
 
* a link to a record in the ISFDB itself; or
Line 8: Line 10:
 
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.
 
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 complete list of linking templates may be found in [[:Category:Linking templates]].
  
 
The following table documents some of them:
 
The following table documents some of them:
Line 18: Line 20:
 
|-
 
|-
 
|'''[[: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 or author record number
 
|'''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 record number or 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
 
|'''name''' specifies the text for the link display
 
|-
 
|-
|colspan=5|''Links to ISFDB wiki pages''
+
|'''[[:Template:Series|Series]]'''
 +
|Link to an ISFDB series record display
 +
|the series record number
 +
|'''name''' specifies the text for the link display
 +
|-
 +
|'''[[:Template:PubSeries|PubSeries]]'''
 +
|Link to an ISFDB publication series record display. {{tl|PS}} is a shorthand that does the exact same thing.
 +
|the publication series record number
 +
|'''name''' specifies the text for the link display
 
|-
 
|-
|'''[[:Template:Publisher|Publisher]]'''
+
|'''[[:Template:IssueGrid‎|IssueGrid‎]]'''
|Links to a page in the Publisher namespace
+
|Links to an ISFDB Issue Grid display page for a magazine series. {{tl|IG}} is a shorthand that does the exact same thing
|the title of the page
+
|the magazine series record number
 
|'''name''' specifies the text for the link display
 
|'''name''' specifies the text for the link display
 +
|-
 +
|'''[[:Template:Pubr|Pubr]]'''
 +
|Link to an ISFDB publisher record display
 +
|the publisher record number; <br />
 +
'''name''' specifies the text for the link display
 +
|None
 +
|-
 +
|colspan=5|''Links to ISFDB wiki pages''
 
|-
 
|-
 
|'''[[:Template:Clute/Grant|Clute/Grant]]'''
 
|'''[[:Template:Clute/Grant|Clute/Grant]]'''
Line 57: Line 75:
 
|Links to the page '''Reference:Tuck'''
 
|Links to the page '''Reference:Tuck'''
 
|None
 
|None
 +
|None
 +
|-
 +
|'''[[:Template:tl|tl]]'''
 +
|Links to the page for a specified template
 +
|the name of the template
 
|None
 
|None
 
|-
 
|-
Line 83: Line 106:
 
|'''[[:Template:Locus|Locus]]'''
 
|'''[[:Template:Locus|Locus]]'''
 
|Links to the Locus Index to Science Fiction   
 
|Links to the Locus Index to Science Fiction   
|None
 
|None
 
|-
 
|'''[[:Template:Melvyl|Melvyl]]'''
 
|Links to the Catalog of the University of California Libraries
 
 
|None
 
|None
 
|None
 
|None
 
|}
 
|}
 +
 +
==See also==
 +
*[[Help:Header templates]]
 +
 +
[[Category:Wiki Help|{{SUBPAGENAME}}]]
 +
[[Category:ISFDB Help|{{SUBPAGENAME}}]]

Latest revision as of 15:36, 1 February 2022

Linking templates covered here are those designed for use within the ISFDB Wiki. Those designed for use in the Notes field of ISFDB records are covered at Help:Using Templates and HTML in Note Fields#Templates.

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 preferred 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 found 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 or author record number name specifies the text for the link display
P Link to an ISFDB publication record display the publication record number or 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
PubSeries Link to an ISFDB publication series record display. {{PS}} is a shorthand that does the exact same thing. the publication series record number name specifies the text for the link display
IssueGrid‎ Links to an ISFDB Issue Grid display page for a magazine series. {{IG}} is a shorthand that does the exact same thing the magazine series record number name specifies the text for the link display
Pubr Link to an ISFDB publisher record display the publisher record number;

name specifies the text for the link display

None
Links to ISFDB wiki pages
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
tl Links to the page for a specified template the name of the template 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

See also