Template:IMDb title: Difference between revisions

From Ikwipedia
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if: {{{id|}}}
{{#if: {{{id|}}}
   | [https://www.imdb.com/title/{{#if: {{#invoke:ustring|match|1={{{id}}}|2=^tt}}
   | [https://www.imdb.com/title/{{{id}}}/ {{#ifeq: {{{quotes|}}} | yes | "{{{title|{{PAGENAMEBASE}}}}}" | ''{{{title|{{PAGENAMEBASE}}}}}'' }} at IMDb]
    | {{Trim|{{{id}}}}}  <!-- Use IMDb ID if provided -->
    | tt{{padleft:{{{id}}}|7}}
    }}/
    {{#ifeq: {{#if: {{{quotes|}}} | "{{If empty|{{{title|}}}|{{PAGENAMEBASE}}}}" | ''{{If empty|{{{title|}}}|{{PAGENAMEBASE}}}}'' }}
    {{3|{{description|}}}}}} at IMDb
  ]
   | <!-- Blank if only qid is provided, no link -->
   | <!-- Blank if only qid is provided, no link -->
}}
}}

Revision as of 07:34, 6 November 2024