Jump to content

Template:IBDB title: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
add parameter for description as found in Template:IMDb title, tested with /sandbox and /testcases
If no ID in template use Wikidata property or display error message. Tested with /sandbox, /testcases, and previews in articles.
Line 1: Line 1:
{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} {{#property:P1218}}
[https://www.ibdb.com/broadway-production/{{Trim|{{{1|{{{id}}}}}}}} <i>{{Trim|{{{2|{{{title|{{PAGENAMEBASE}}}}}}}}}}</i>{{#if:{{{3|{{{description|}}}}}}|&#32;{{{3|{{{description}}}}}}}}] at the [[Internet Broadway Database]]{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Articles with IBDb links]]|}}<noinclude>

| [https://www.ibdb.com/broadway-production/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P1218}}|sep=,}} }} <i>{{#if: {{{2|{{{title|}}}}}} | {{{2|{{{title}}}}}} | {{PAGENAMEBASE}} }}</i>{{#if: {{{3|{{{description|}}}}}} | &#32;{{{3|{{{description}}}}}} }}] at the [[Internet Broadway Database]]<includeonly>{{EditAtWikidata|pid=P1218|{{{1|{{{id|}}}}}}}}</includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#if:{{{1|{{{id|}}}}}}||[[Category:IBDB title template using Wikidata]]}}}}

| <span class="error">&#123;&#123;[[Template:IBDB title|IBDB title]]&#125;&#125; template missing ID and not present in Wikidata.</span>{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:IBDB title template missing ID and not in Wikidata]]}}

}}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 20:06, 8 May 2022

IBDB title at the Internet Broadway Database