Anonymous user
Template:IMDb title: Difference between revisions
added cast section
Johnrdorazio (talk | contribs) No edit summary |
(added cast section) |
||
Line 1: | Line 1: | ||
[https://www.imdb.com/{{#if: {{{1|{{{id|}}}}}} | [https://www.imdb.com/{{#if: {{{1|{{{id|}}}}}} | ||
| title/{{# | | title/{{#if:{{#invoke:ustring|match|1={{{1|{{{id}}}}}}|2=^tt}} | ||
| {{Trim|{{{1|{{{id}}}}}}}}/ | | {{Trim|{{{1|{{{id}}}}}}}}/{{WikidataCheck|property=P345|value={{Trim|{{{1|{{{id|}}}}}}}}|category=IMDb ID|qid={{{qid|}}}}} | ||
| tt{{padleft:{{{1|{{{id}}}}}}|7}}/{{WikidataCheck|property=P345|value=tt{{padleft:{{Trim|{{{1|{{{id|}}}}}}}}|7}}|category=IMDb ID|qid={{{qid|}}}}} | |||
}} | }} | ||
| {{#if: {{#property: | | {{#if: {{#property:P345|from={{{qid|}}}}} | ||
| title/{{First word|1={{#property: | | title/{{First word|1={{#property:P345|from={{{qid|}}}}}|sep=,}}/ | ||
| find?q={{urlencode:{{ | | find?q={{urlencode:{{PAGENAMEBASE}}}}&s=tt | ||
}} | }} | ||
}}{{#if: {{{1|}}} {{{id|}}} {{#property: | }}{{#if: {{{1|}}} {{{id|}}} {{#property:P345|from={{{qid|}}}}} | {{#switch: {{lc:{{{section|}}}}} | ||
| award | awards = awards Awards for | | award | awards = awards Awards for | ||
| cast = fullcredits Full cast and crew of | |||
}}}} {{Trim|{{#if:{{{quotes|}}}|"|''}}{{#if: {{{2|{{{title|}}}}}} | }}}} {{Trim|{{#if:{{{quotes|}}}|"|''}}{{#if: {{{2|{{{title|}}}}}} | ||
| {{{2|{{{title}}}}}} | | {{{2|{{{title}}}}}} | ||
| {{PAGENAMEBASE}} | | {{PAGENAMEBASE}} | ||
}}{{#if:{{{quotes|}}}|"|''}} {{{3|{{{description|}}}}}}}}] | }}{{#if:{{{quotes|}}}|"|''}} {{{3|{{{description|}}}}}}}}] at {{#if:{{{link_hide|}}}| IMDb |[[IMDb]]}}<includeonly>{{#if: {{{1|{{{id|}}}}}}{{#property:P345|from={{{qid|}}}}} | ||
| {{EditAtWikidata|pid= | | {{EditAtWikidata|pid=P345|nbsp=yes|{{{1|{{{id|}}}}}}|qid={{{qid|}}}}} | ||
| {{Main other|[[Category:IMDb template with no id set]]}} | | {{Main other|[[Category:IMDb template with no id set]]}} | ||
}}<!-- Tracking categories | |||
-->{{#switch: {{#invoke:String2|matchAny|^tt.........|^tt.......|tt|.........|source={{{1|{{{id}}}}}}|plain=false}}<!-- | |||
-->| 1 | 3 = {{Main other|[[Category:IMDb template with invalid id set]]}}{{Preview warning|IMDb ID starting with ''tt'' should be followed by seven or eight digits, such as ''tt0000567'' or ''tt12345678''}}<!-- | |||
-->| 4 = {{Main other|[[Category:IMDb template with invalid id set]]}}{{Preview warning|IMDb ID should not contain more than eight digits}}<!-- | |||
-->}}<!-- | |||
-->{{#ifeq: {{Wikidata|property|raw|P31}} | Q21191270 | [[Category:Pages using IMDb title instead of IMDb episode]]{{Preview warning|[[Template:IMDb episode]] should be used for television episodes}} }}<!-- | |||
-->{{#ifeq: {{Wikidata|property|raw|P360}} | Q21191270 | [[Category:Pages using IMDb title instead of IMDb episodes]]{{Preview warning|[[Template:IMDb episodes]] should be used for list of television episodes}} }}<!-- | |||
--></includeonly><noinclude> | |||
{{ | {{Documentation}} | ||
</noinclude> | </noinclude> |