Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Instructions  





3 Examples  



3.1  Unnamed parameters  





3.2  Named parameters  





3.3  No ID in template or Wikidata  







4 TemplateData  





5 See also  














Template:AFI film/doc: Difference between revisions







Add links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Printable version
 
















Appearance
   

 





Help
 

From Wikipedia, the free encyclopedia
 

< Template:AFI film

Browse history interactively
 Previous editNext edit 
Content deleted Content added
m fix syntax error in json
Add
Line 98: Line 98:

* {{tl|AllMovie title}}

* {{tl|AllMovie title}}

* {{tl|TCMDb title}}

* {{tl|TCMDb title}}

* {{tl|BFI}}

* {{tl|Rotten Tomatoes}}

* {{tl|Metacritic film}}

* {{tl|Mojo title}}



<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||


Revision as of 18:50, 15 December 2019

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.

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

  1. Search AFI Catalog for the film title you want, and click on the correct link to go to that film's page.
  2. The page URL should look like this:
    https://catalog.afi.com/Catalog/moviedetails/#####
    orhttp://www.afi.com/members/catalog/DetailView.aspx?s=&Movie=#####
    where "#####" indicates a number.
  3. 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 TITLE is 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:

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:

No ID in template or Wikidata

Usage:

{{AFI film}}

Output:

{{AFI film}} template missing ID and not present in Wikidata.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:AFI film in articles based on its TemplateData.

TemplateData for AFI film

This template 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.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 64729 is the ID in https://catalog.afi.com/Catalog/moviedetails/64729 or http://www.afi.com/members/catalog/DetailView.aspx?s=&Movie=64729. This parameter is optional if Wikidata property P3593 exists, but required if not.

Default
Wikidata property P3593
Numberoptional
Titletitle 2

The "title" parameter (or unnamed parameter "2") may be used to specify the film title, which is displayed in italic type in the link text. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(film)".

Default
{{PAGENAMEBASE}}
Stringoptional

See also

Similar film title templates:



Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:AFI_film/doc&oldid=930902792"

Hidden category: 
Template documentation pages
 



This page was last edited on 15 December 2019, at 18:50 (UTC).

This version of the page has been revised. Besides normal editing, the reason for revision may have been that this version contains factual inaccuracies, vandalism, or material not compatible with the Creative Commons Attribution-ShareAlike License.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki