Difference between revisions of "Template:T"

From ISFDB
Jump to navigation Jump to search
m (Protected "Template:T": High risk template, with little need for change [edit=sysop:move=sysop])
(Allow for unnamed display text)
Line 1: Line 1:
<span style="{{Linkcolor}}">[http://www.isfdb.org/cgi-bin/title.cgi?{{{1}}} {{{name|{{{1}}}}}}]</span><noinclude>
+
<span style="{{Linkcolor}}">[http://www.isfdb.org/cgi-bin/title.cgi?{{{id|{{{1}}}}}} {{{name|{{{2|{{{id|{{{1}}}}}}}}}}}}]</span><noinclude>
  
 
{{Template:T/doc}}
 
{{Template:T/doc}}
  
 
[[Category:Linking templates|T]]</noinclude>
 
[[Category:Linking templates|T]]</noinclude>

Revision as of 16:32, 26 October 2008

{{{1}}}


Documentation for Template:T transcluded from Template:T/doc.

This template is for linking to an ISFDB title record, It takes as its argument a title record number. Thus, for example

{{T|6105}}

gives this link: 6105

Optionally, you can change the displayed link text with the name parameter. For example:

{{T|6105|name=Sheepfarmer's Daughter}}

gives this link: Sheepfarmer's Daughter

and

{{T|6105|name=SFD}}

gives this link: SFD


When a title (bibliography) record is displayed or edited, the record number will be included in the URL (web address) after "title.cgi?".