Difference between revisions of "Template:Isfdb name/doc"

From blackwiki
Jump to navigation Jump to search
(proper ids)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(11 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{documentation subpage}}
+
{{Documentation subpage}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
+
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
 +
{{Uses Wikidata|P1233}}
 
:{{Main|Wikipedia:How to edit a page|Wikipedia:Template messages|Wikipedia:Template messages/Maintenance}}
 
:{{Main|Wikipedia:How to edit a page|Wikipedia:Template messages|Wikipedia:Template messages/Maintenance}}
 +
 
== Usage ==
 
== Usage ==
 
The '''isfdb name''' [[Wikipedia:Template messages|template message]] is usually placed in the '''External links''' or '''References''' section of a [[speculative fiction]] author or artist's Wikipedia article to link it to that person's bibliography on the [[Internet Speculative Fiction Database]] (ISFDB). The tag is intended to inform people that a detailed author bibliography is available on ISFDB as a support reference for the article.
 
The '''isfdb name''' [[Wikipedia:Template messages|template message]] is usually placed in the '''External links''' or '''References''' section of a [[speculative fiction]] author or artist's Wikipedia article to link it to that person's bibliography on the [[Internet Speculative Fiction Database]] (ISFDB). The tag is intended to inform people that a detailed author bibliography is available on ISFDB as a support reference for the article.
  
 
If an author or artist's name on Wikipedia exactly matches the name used on ISFDB then add  <code><nowiki>{{isfdb name}}</nowiki></code> to the '''References''' or '''External links''' section for the author or artist. If the Wikipedia article is on a disambiguated page such as [[John Brunner (novelist)]] or you wish to link to a pseudonym used by the author then use the template with the ''id'' and ''name'' parameters; <code><nowiki>{{isfdb name|id=11|name=John Brunner}}</nowiki></code>.
 
If an author or artist's name on Wikipedia exactly matches the name used on ISFDB then add  <code><nowiki>{{isfdb name}}</nowiki></code> to the '''References''' or '''External links''' section for the author or artist. If the Wikipedia article is on a disambiguated page such as [[John Brunner (novelist)]] or you wish to link to a pseudonym used by the author then use the template with the ''id'' and ''name'' parameters; <code><nowiki>{{isfdb name|id=11|name=John Brunner}}</nowiki></code>.
 +
 +
Note that if the id parameter is not supplied, then the Wikidata property P1233 will be used as the ID value, if that property exists for the page. Only if the P1233 property does not exist is the page name used.
  
 
=== Examples ===
 
=== Examples ===
Line 35: Line 39:
 
* {{tl|Isfdb title}} links to the ISFDB record for a novel or story (Bibliography).
 
* {{tl|Isfdb title}} links to the ISFDB record for a novel or story (Bibliography).
  
<includeonly>
+
<includeonly>{{Sandbox other||
<!-- ADD CATEGORIES BELOW THIS LINE -->
+
<!--Categories below this line, please; interwikis at Wikidata-->
[[Category:External link templates|{{PAGENAME}}]]
+
[[Category:Author and writer external link templates]]
[[Category:Book templates|{{PAGENAME}}]]
+
[[Category:Book templates]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
+
[[Category:Catalog lookup templates]]
[[bg:Шаблон:Isfdb name]]
+
[[Category:Templates using data from Wikidata]]
[[es:Plantilla:Isfdb nombre]]
+
[[Category:External link templates using Wikidata]]
[[ko:틀:Isfdb 이름]]
+
}}</includeonly>
[[ja:Template:Isfdb name]]
 
[[ru:Шаблон:Isfdb name]]
 
[[vi:Tiêu bản:Isfdb name]]
 
</includeonly>
 

Latest revision as of 22:32, 25 April 2020

Template:Uses Wikidata

Usage

The isfdb name template message is usually placed in the External links or References section of a speculative fiction author or artist's Wikipedia article to link it to that person's bibliography on the Internet Speculative Fiction Database (ISFDB). The tag is intended to inform people that a detailed author bibliography is available on ISFDB as a support reference for the article.

If an author or artist's name on Wikipedia exactly matches the name used on ISFDB then add {{isfdb name}} to the References or External links section for the author or artist. If the Wikipedia article is on a disambiguated page such as John Brunner (novelist) or you wish to link to a pseudonym used by the author then use the template with the id and name parameters; {{isfdb name|id=11|name=John Brunner}}.

Note that if the id parameter is not supplied, then the Wikidata property P1233 will be used as the ID value, if that property exists for the page. Only if the P1233 property does not exist is the page name used.

Examples

The following examples assume you are adding the template to the Isaac Asimov article.

Link where the author's name exactly matches the name used on ISFDB

* {{isfdb name}}

displays as

and links to http://www.isfdb.org/cgi-bin/ea.cgi?Isaac_Asimov

Please be aware that if you use the {{isfdb name}} form of the link and the article is later moved, usually for disambiguation, that the link will break. Thus, while it is convenient, it should not be used unless the odds are low that the author or artist's page will be moved.

Override just the link to the bibliography on ISFDB. This would most often be used on author disambiguation pages or where for some reason there's a slight difference in the formatting or spelling of an author's name between Wikipedia and the ISFDB. For example, from John Brunner (novelist) disambiguated article you can use

* {{isfdb name|11}}

which displays as

and links to http://www.isfdb.org/cgi-bin/ea.cgi?11

Override both the display name and link such to link to the bibliography for an author's pseudonym

* {{isfdb name|id=23225|name=George E. Dale}}

displays as

and links to http://www.isfdb.org/cgi-bin/ea.cgi?23225

See also

  • {{Isfdb contents}} links to the ISFDB record for one publication including its contents.
  • {{Isfdb series}} links to the ISFDB record for a series (Series Bibliography).
  • {{Isfdb title}} links to the ISFDB record for a novel or story (Bibliography).