Template:URL-IMDbTitle: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly>[https://www.imdb.com/title/{{{1}}} IMDb title page]{{#if:{{{2|}}}|. Retrieved {{{2}}}{{#if:{{{3|}}}| (error: {{{3}}})|}}.|}}</includeonly><noinclude> == Usa..." |
m template now uses date template |
||
| Line 1: | Line 1: | ||
<includeonly>[https://www.imdb.com/title/{{{1}}} IMDb title page]{{#if:{{{2|}}}|. Retrieved {{{2}}}{{#if:{{{3|}}}| (error: {{{3}}})|}}.|}}</includeonly><noinclude> | <includeonly>[https://www.imdb.com/title/{{{1}}} IMDb title page]{{#if:{{{2|}}}|. Retrieved {{date|{{{2}}}}}{{#if:{{{3|}}}| (error: {{{3}}})|}}.|}}</includeonly><noinclude> | ||
== Usage == | == Usage == | ||
Use this template with '''anonymous''' parameters: | Use this template with '''anonymous''' parameters: | ||
Revision as of 08:12, 29 September 2019
Usage
Use this template with anonymous parameters:
{{URL-IMDbTitle|<URL>|<date>|<HTML Error Code>}}
Use the available URL templates in the {{LINKS}} section of an article page, with the following order:
- Template:URLwebsite
- Template:URLwikipedia
- Template:URL-FBprofile
- Template:URL-FBpage
- Template:URL-FBgroup
- Template:URLtwitter
- Template:URL-IMDbName
- Template:URL-IMDbTitle
Note: Only use the <date> parameter when you have retrieved the URL.
Examples
{{URL-IMDbTitle|nm2911561}}
IMDb title page{{#if:|. Retrieved {{#switch:{{#invoke:String|len|s={{{2}}}}}
|0 |1 |2 =
|3 |4 |5 = {{#time:Y|{{{2}}} }}
|6 |7 |8 = {{#time:F Y|{{{2}}} }}
|9 |10 = {{#time:j F Y|{{{2}}} }}
|#default = error
}}{{#if:| (error: {{{3}}})|}}.|}}
{{URL-IMDbTitle|nm2911561|2019-09-15}}
IMDb title page{{#if:2019-09-15|. Retrieved {{#switch:{{#invoke:String|len|s=2019-09-15}}
|0 |1 |2 =
|3 |4 |5 = {{#time:Y|2019-09-15 }}
|6 |7 |8 = {{#time:F Y|2019-09-15 }}
|9 |10 = {{#time:j F Y|2019-09-15 }}
|#default = error
}}{{#if:| (error: {{{3}}})|}}.|}}
{{URL-IMDbTitle|nm2911561|2019-09-15|404}}
IMDb title page{{#if:2019-09-15|. Retrieved {{#switch:{{#invoke:String|len|s=2019-09-15}}
|0 |1 |2 =
|3 |4 |5 = {{#time:Y|2019-09-15 }}
|6 |7 |8 = {{#time:F Y|2019-09-15 }}
|9 |10 = {{#time:j F Y|2019-09-15 }}
|#default = error
}}{{#if:404| (error: 404)|}}.|}}