Difference between revisions of "Template:P/Doc"

From ISFDB
Jump to navigation Jump to search
(copyedit)
(Move translusion notice to bottom)
Line 1: Line 1:
------
 
Documentation for '''[[:Template:P]]''' transcluded from '''[[:Template:P/Doc]]'''.
 
 
 
== Purpose ==
 
== Purpose ==
 
This template is for linking to an ISFDB publication record.
 
This template is for linking to an ISFDB publication record.
Line 23: Line 20:
 
This form is not allowed:
 
This form is not allowed:
 
* <code><nowiki>{{P|tag=SHPFRMRSD2000|Sheepfarmer's Daughter}}</nowiki></code>.
 
* <code><nowiki>{{P|tag=SHPFRMRSD2000|Sheepfarmer's Daughter}}</nowiki></code>.
 +
 +
------
 +
Documentation for '''[[:Template:P]]''' is transcluded from '''[[:Template:P/Doc]]'''.

Revision as of 15:38, 26 October 2008

Purpose

This template is for linking to an ISFDB publication record.

Usage

Call this template with a publication's tag or record number and, optionally, the publication's name or any string to display for the link.

{{P|SHPFRMRSD2000}}

gives this link: SHPFRMRSD2000

Optionally, you can change the displayed link text.

{{P|SHPFRMRSD2000|Sheepfarmer's Daughter}}

gives this link: Sheepfarmer's Daughter

Note that any string can be passed instead of a publication title, for example, {{P|SHPFRMRSD2000|this publication}} would display as this publication.

The template parameters can also be referenced using the names tag and name respectively with the only requirement being that if the named tag parameter name is used then name must be used if the second parameter is used. These forms are valid

This form is not allowed:

  • {{P|tag=SHPFRMRSD2000|Sheepfarmer's Daughter}}.

Documentation for Template:P is transcluded from Template:P/Doc.