Difference between revisions of "Template:P/Doc"

From ISFDB
Jump to navigation Jump to search
(Clean up overall look)
(Copyedit)
Line 10: Line 10:
 
gives this link: {{P|SHPFRMRSD2000|Sheepfarmer's Daughter}}
 
gives this link: {{P|SHPFRMRSD2000|Sheepfarmer's Daughter}}
  
Note that any string can be passed instead of a publication title, for example, <code><nowiki>{{P|SHPFRMRSD2000|this publication}}</nowiki></code> would display as {{P|SHPFRMRSD2000|this publication}}.
+
Note that any string can be passed instead of a publication title, for example, <code><nowiki>{{P|SHPFRMRSD2000|this publication}}</nowiki></code> displays as {{P|SHPFRMRSD2000|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
 
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
Line 17: Line 17:
 
* <code><nowiki>{{P|SHPFRMRSD2000|name=Sheepfarmer's Daughter}}</nowiki></code> displays as {{P|SHPFRMRSD2000|name=Sheepfarmer's Daughter}}.
 
* <code><nowiki>{{P|SHPFRMRSD2000|name=Sheepfarmer's Daughter}}</nowiki></code> displays as {{P|SHPFRMRSD2000|name=Sheepfarmer's Daughter}}.
  
This form is not allowed:
+
This form is not allowed as ''name='' must be used when ''tag='' is used:
* <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]]'''.
 
Documentation for '''[[:Template:P]]''' is transcluded from '''[[:Template:P/Doc]]'''.

Revision as of 15:43, 26 October 2008

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}} displays 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 as name= must be used when tag= is used:

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

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