Difference between revisions of "Template:P"

From ISFDB
Jump to navigation Jump to search
(I learned what "rollback" vs. "undo" does...)
(HTTPS upgrade)
Line 1: Line 1:
<span style="{{Linkcolor}}">[http://www.isfdb.org/cgi-bin/pl.cgi?{{{id|{{{1}}}}}} {{{name|{{{2|{{{id|{{{1}}}}}}}}}}}}]</span><noinclude>
+
<span style="{{Linkcolor}}">[httpa://www.isfdb.org/cgi-bin/pl.cgi?{{{id|{{{1}}}}}} {{{name|{{{2|{{{id|{{{1}}}}}}}}}}}}]</span><noinclude>
  
 
{{Template:P/Doc}}
 
{{Template:P/Doc}}
  
 
[[Category:Linking templates|P]]</noinclude>
 
[[Category:Linking templates|P]]</noinclude>

Revision as of 10:20, 8 September 2022

[httpa://www.isfdb.org/cgi-bin/pl.cgi?{{{1}}} {{{1}}}]

This template is for linking to an ISFDB publication record.

Usage

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

{{P|38228}}

gives this link: [httpa://www.isfdb.org/cgi-bin/pl.cgi?38228 38228]

Optionally, you can change the displayed link text.

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

gives this link: [httpa://www.isfdb.org/cgi-bin/pl.cgi?38228 Sheepfarmer's Daughter]

Note that any string can be passed instead of a publication title, for example, {{P|38228|this publication}} displays as [httpa://www.isfdb.org/cgi-bin/pl.cgi?38228 this publication].

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

  • {{P|id=38228}} displays as [httpa://www.isfdb.org/cgi-bin/pl.cgi?38228 38228].
  • {{P|id=38228|name=Sheepfarmer's Daughter}} displays as [httpa://www.isfdb.org/cgi-bin/pl.cgi?38228 Sheepfarmer's Daughter].
  • {{P|38228|name=Sheepfarmer's Daughter}} displays as [httpa://www.isfdb.org/cgi-bin/pl.cgi?38228 Sheepfarmer's Daughter].

This form is not allowed as name= must be used when id= is used:

  • {{P|id=38228|Sheepfarmer's Daughter}}

Note that while the examples on this page are using publication IDs, using a publication's tag, while deprecated, is still supported. Although very rare, a publication record's tag value can be changed rendering links to that publication invalid while its record number cannot be changed.


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