Template:AFI film/doc
< Template:AFI film
Jump to navigation
Jump to search
Revision as of 18:49, 29 July 2018 by blackwiki>Zyxw (updated for use of Wikidata property P3593 and new URL format, added a second example)
| This is a documentation subpage for Template:AFI film. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Template:AFI film displays an external link to a web page at the AFI Catalog of Feature Films, published by the American Film Institute. It is intended for use in the external links section of an article.
Contents
Usage
Unnamed parameters:
{{AFI film | ID }}{{AFI film | ID | TITLE }}
Named parameters:
{{AFI film | id= ID }}{{AFI film | id= ID | title= TITLE }}
Using Wikidata property P3593:
{{AFI film}}{{AFI film | title= TITLE }}
Instructions
- Search AFI Catalog for the film title you want, and click on the correct link to go to that film's page.
- The page URL should look like this:
https://catalog.afi.com/Catalog/moviedetails/#####- or
http://www.afi.com/members/catalog/DetailView.aspx?s=&Movie=##### - where "
#####" indicates a number.
- Copy only that number. Add the following text to the External links section:
* {{AFI film | ##### | TITLE }}- or
* {{AFI film | id= ##### | title= TITLE }} - where
#####is the number you've copied, - and
TITLEis the title of the film (default is the article's name).
Examples
Unnamed parameters
URL:
- https://catalog.afi.com/Catalog/moviedetails/64729
- http://www.afi.com/members/catalog/DetailView.aspx?s=&Movie=64729
Usage:
* {{AFI film | 64729 | Quantum of Solace }}
Output:
- Quantum of Solace at the American Film Institute CatalogScript error: No such module "EditAtWikidata".
Named parameters
URL:
- https://catalog.afi.com/Catalog/moviedetails/52231
- http://www.afi.com/members/catalog/DetailView.aspx?s=&Movie=52231
Usage:
* {{AFI film | id= 52231 | title= The Incredible Shrinking Man }}
Output:
- The Incredible Shrinking Man at the American Film Institute CatalogScript error: No such module "EditAtWikidata".
No ID in template or Wikidata
Usage:
{{AFI film}}
Output:
- Template:PAGENAMEBASE at the American Film Institute CatalogScript error: No such module "EditAtWikidata".
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for AFI film
Syntax error in JSON.
See also
Similar film title templates:
- {{IMDb title}}
- {{AllMovie title}}
- {{TCMDb title}}