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

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update list)
imported>Zyxw
(update intro)
 
(5 intermediate revisions by the same user not shown)
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 in the "Films, TV and people" section of the [[British Film Institute]] (BFI) 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> | individual{{=}} <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 |individual= Terry Pratchett }}</code>
  
<nowiki>{{bfidb individual|592017|PRATCHETT, Terry}}</nowiki>
+
''Output:''
 +
:* {{{{BASEPAGENAME}} | 592017 | Terry Pratchett }}
 +
:* {{{{BASEPAGENAME}} |id= 592017 |individual= 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 ==
Line 30: Line 45:
  
 
<includeonly>{{Sandbox other||
 
<includeonly>{{Sandbox other||
<!-- Categories and interwikis go here: -->
+
<!-- Categories go here and interwikis go in Wikidata. -->
 
[[Category:British Film Institute]]
 
[[Category:British Film Institute]]
 +
[[Category:Film external link templates|BFI]]
 +
[[Category:People and person external link templates|BFI]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 03:15, 9 August 2020

Template:Bfidb individual displays an external link to a web page for an individual in the "Films, TV and people" section of the British Film Institute (BFI) 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 |individual= Terry Pratchett }}

Output:

Current URL:

Former URL:

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

See also