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  



Download as PDF
Printable version
 
















Appearance
   

 





Help
 

From Wikipedia, the free encyclopedia
 

< Template:AFI film

Browse history interactively
 Previous edit
Content deleted Content added
added high-use.
→‎See also: remove deleted template
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:

{{Documentation subpage}}

{{Documentation subpage}}

<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->

<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->

{{High-use| 4,000 }}

{{High-use}}

{{Uses Wikidata|P3593}}

{{Uses Wikidata|P3593}}

{{Lua|Module:EditAtWikidata}}

{{Lua|Module:EditAtWikidata}}



'''{{NAMESPACE}}:{{BASEPAGENAME}}''' 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 [[Wikipedia:External links|external links]] section of an article.

'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a page for a film at the ''[[AFI Catalog of Feature Films|AFI Catalog]]'', published by the [[American Film Institute]]. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.



== Usage ==

== Usage ==

Unnamed parameters:

; Unnamed parameters

: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code>

: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | <var>ID</var> }}</code>

: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''TITLE'' }}</code>

: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | <var>ID</var> | <var>TITLE</var> }}</code>



Named parameters:

; Named parameters

: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code>

: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>ID</var> }}</code>

: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | title= ''TITLE'' }}</code>

: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>ID</var> | title= <var>TITLE</var> }}</code>



Using [[Wikidata]] property [[d:Property:P3593|P3593]]:

; Using Wikidata property:

: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>

: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>

: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | title= ''TITLE'' <nowiki>}}</nowiki></code>

: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | title= <var>TITLE</var> <nowiki>}}</nowiki></code>



== Instructions ==

== Instructions ==

Line 25: Line 25:

#: <code><nowiki>https://catalog.afi.com/Catalog/moviedetails/</nowiki>{{Hilite|#####}}</code>

#: <code><nowiki>https://catalog.afi.com/Catalog/moviedetails/</nowiki>{{Hilite|#####}}</code>

#: or <code><nowiki>http://www.afi.com/members/catalog/DetailView.aspx?s=&Movie=</nowiki>{{Hilite|#####}}</code>

#: or <code><nowiki>http://www.afi.com/members/catalog/DetailView.aspx?s=&Movie=</nowiki>{{Hilite|#####}}</code>

#: or <code><nowiki>https://catalog.afi.com/Film/</nowiki>{{Hilite|#####}}-NAME</code><!-- https://catalog.afi.com/Film/21594-WHOS-MINDINGTHEMINT -->

#: where "<code>#####</code>" indicates a number.

#: where "<code>#####</code>" indicates a number.

# Copy {{em|only}} that number. Add the following text to the '''External links''' section:

# Copy {{em|only}} that number. Add the following text to the '''External links''' section:

Line 35: Line 36:


=== Unnamed parameters ===

=== Unnamed parameters ===

; Usage

''URL:''

: <kbd><nowiki>https://catalog.afi.com/Catalog/moviedetails/</nowiki>{{Hilite|64729}}</kbd>

: <kbd><nowiki>http://www.afi.com/members/catalog/DetailView.aspx?s=&Movie=</nowiki>{{Hilite|64729}}</kbd>


''Usage:''

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 64729 | Quantum of Solace <nowiki>}}</nowiki></code>

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 64729 | Quantum of Solace <nowiki>}}</nowiki></code>



''Output:''

; Output

:* {{{{BASEPAGENAME}} | 64729 | Quantum of Solace }}

:* {{{{BASEPAGENAME}} | 64729 | Quantum of Solace }}



; Current URL

=== Named parameters ===

: <kbd>[https://catalog.afi.com/Catalog/moviedetails/64729 https://catalog.afi.com/Catalog/moviedetails/{{Highlight|64729}}]</kbd>

''URL:''

: <kbd><nowiki>https://catalog.afi.com/Catalog/moviedetails/</nowiki>{{Hilite|52231}}</kbd>

: <kbd><nowiki>http://www.afi.com/members/catalog/DetailView.aspx?s=&Movie=</nowiki>{{Hilite|52231}}</kbd>



; Former URLs

''Usage:''

: <kbd><nowiki>http://www.afi.com/members/catalog/DetailView.aspx?s=&Movie=</nowiki>{{Highlight|64729}}</kbd> ([https://web.archive.org/web/20140403004318/http://www.afi.com/members/catalog/DetailView.aspx?s=&Movie=64729 archive])

: <kbd><nowiki>https://catalog.afi.com/Film/</nowiki>{{Highlight|64729}}-QUANTUM-OFSOLACE</kbd> ([https://web.archive.org/web/20210523185555/https://catalog.afi.com/Film/64729-QUANTUM-OFSOLACE archive])


=== Named parameters ===

; Usage

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 52231 | title= The Incredible Shrinking Man <nowiki>}}</nowiki></code>

: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 52231 | title= The Incredible Shrinking Man <nowiki>}}</nowiki></code>



''Output:''

; Output

:* {{{{BASEPAGENAME}} | id= 52231 | title= The Incredible Shrinking Man }}

:* {{{{BASEPAGENAME}} | id= 52231 | title= The Incredible Shrinking Man }}


; Current URL

: <kbd>[https://catalog.afi.com/Catalog/moviedetails/52231 https://catalog.afi.com/Catalog/moviedetails/{{Highlight|52231}}]</kbd>


; Former URLs

: <kbd><nowiki>http://www.afi.com/members/catalog/DetailView.aspx?s=&Movie=</nowiki>{{Highlight|52231}}</kbd> ([https://web.archive.org/web/20140329033557/http://www.afi.com/members/catalog/DetailView.aspx?s=&Movie=52231 archive])

: <kbd><nowiki>http://catalog.afi.com/Film/</nowiki>{{Highlight|52231}}-THE-INCREDIBLE-SHRINKING-MAN</kbd> ([https://web.archive.org/web/20190424110508/http://catalog.afi.com/Film/52231-THE-INCREDIBLE-SHRINKING-MAN?cxt=filmography archive])



=== No ID in template or Wikidata ===

=== No ID in template or Wikidata ===

''Usage:''

; Usage

: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>

: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>



''Output:''

; Output

: {{ {{BASEPAGENAME}} }}

: {{ {{BASEPAGENAME}} }}



Line 72: Line 79:

"aliases" : [ "1" ],

"aliases" : [ "1" ],

"label": "ID",

"label": "ID",

"description": "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.",

"description": "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 or https://catalog.afi.com/Film/64729-QUANTUM-OFSOLACE. This parameter is optional if Wikidata property P3593 exists, but required if not.",

"type": "number",

"type": "number",

"default": "Wikidata property P3593",

"default": "Wikidata property P3593",

Line 82: Line 89:

"description": "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)\".",

"description": "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)\".",

"type": "string",

"type": "string",

"default": "{{PAGENAMEBASE}}",

"default": "{{PAGENAMEBASE}}",

"required": false,

"required": false

}

}

},

},

Line 94: Line 101:


== See also ==

== See also ==

Similar film title templates:

Other AFI templates:

* {{tl|AFI person}}

Other film title templates:

* {{tl|IMDb title}}

* {{tl|IMDb title}}

* {{tl|AllMovie title}}

* {{tl|AllMovie title}}

* {{tl|TCMDb title}}

* {{tl|TCMDb title}}

* {{tl|Rotten Tomatoes}}

* {{tl|Metacritic film}}

* {{tl|Mojo title}}



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

<includeonly>{{Sandbox other||

<!-- Categories go here and interwikis go in Wikidata. -->

<!-- Categories go here and interwikis go in Wikidata. -->

[[Category:Film external link templates]]

[[Category:Film external link templates]]


Latest revision as of 12:03, 12 December 2023

Template:AFI film displays an external link to a page for a film at the AFI Catalog, published by the American Film Institute. It is intended for use in the external links section of an article.

Usage[edit]

Unnamed parameters
{{AFI film | ID }}
{{AFI film | ID | TITLE }}
Named parameters
{{AFI film | id= ID }}
{{AFI film | id= ID | title= TITLE }}
Using Wikidata property
{{AFI film}}
{{AFI film | title= TITLE }}

Instructions[edit]

  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=#####
    orhttps://catalog.afi.com/Film/#####-NAME
    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[edit]

Unnamed parameters[edit]

Usage
* {{AFI film | 64729 | Quantum of Solace }}
Output
Current URL
https://catalog.afi.com/Catalog/moviedetails/64729
Former URLs
http://www.afi.com/members/catalog/DetailView.aspx?s=&Movie=64729 (archive)
https://catalog.afi.com/Film/64729-QUANTUM-OFSOLACE (archive)

Named parameters[edit]

Usage
* {{AFI film | id= 52231 | title= The Incredible Shrinking Man }}
Output
Current URL
https://catalog.afi.com/Catalog/moviedetails/52231
Former URLs
http://www.afi.com/members/catalog/DetailView.aspx?s=&Movie=52231 (archive)
http://catalog.afi.com/Film/52231-THE-INCREDIBLE-SHRINKING-MAN (archive)

No ID in template or Wikidata[edit]

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

TemplateData[edit]

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 or https://catalog.afi.com/Film/64729-QUANTUM-OFSOLACE. 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[edit]

Other AFI templates:

Other film title templates:



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

Hidden category: 
Template documentation pages
 



This page was last edited on 12 December 2023, at 12:03 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki