Difference between revisions of "Template:Bfidb individual/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update list)
imported>Zyxw
(update note, usage, examples)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
 
 +
{{Warning|1=The [[British Film Institute]] (BFI) website has changed its database and the ID number required for this template is no longer displayed. Existing transclusions of this template continue to work, but to create new links use [[Template:BFI]].}}
 +
 
 +
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a web page for an individual at the [[British Film Institute]] Film and TV Database. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
  
 
== Usage ==
 
== Usage ==
Very straightforward, locate the individual within the Film & Television Database and use the number from the end of the URL in the template. For example, "PRATCHETT, Terry" is located at...
+
If the subject of the Wikipedia article is the same as the BFI page, only the ID number is required. The template then uses the Wikipedia article name as the [[anchor text]].
 +
* {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }}
 +
* {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> }}
  
http://ftvdb.bfi.org.uk/sift/individual/592017
+
To have the link text be other than the article name, use the second parameter.
 +
* {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }}
 +
* {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }}
  
...so we take "592017" and place it into the template format to produce...
+
== Examples ==
 +
''Usage:''
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 592017 | Terry Pratchett }}</code>
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |id= 592017 |name= Terry Pratchett }}</code>
  
<nowiki>{{bfidb individual|592017|PRATCHETT, Terry}}</nowiki>
+
''Output:''
 +
:* {{{{BASEPAGENAME}} | 592017 | Terry Pratchett }}
 +
:* {{{{BASEPAGENAME}} |id= 592017 |name= Terry Pratchett }}
  
...which in turn produces...
+
''Current URL:''
 +
* [http://www.bfi.org.uk/films-tv-people/sift/individual/592017 http://www.bfi.org.uk/films-tv-people/sift/individual/{{highlight|592017}}]
  
{{bfidb individual|592017|PRATCHETT, Terry}}
+
''Former URL:''
 +
* http://<nowiki/>ftvdb.bfi.org.uk/sift/individual/{{highlight|592017}}
  
 
== See also ==
 
== See also ==

Revision as of 01:24, 9 August 2020

Template:Bfidb individual displays an external link to a web page for an individual at the British Film Institute Film and TV Database. It is intended for use in the external links section of an article.

Usage

If the subject of the Wikipedia article is the same as the BFI page, only the ID number is required. The template then uses the Wikipedia article name as the anchor text.

To have the link text be other than the article name, use the second parameter.

Examples

Usage:

* {{Bfidb individual | 592017 | Terry Pratchett }}
* {{Bfidb individual |id= 592017 |name= Terry Pratchett }}

Output:

Current URL:

Former URL:

  • http://ftvdb.bfi.org.uk/sift/individual/592017

See also