Difference between revisions of "Template:IBDB name"
imported>Howcheng (update URL) |
imported>Zyxw (If Wikidata property has multiple values, only use first one; see Cathy Rigby article for example. Use whitespace with {{#if:}} to make template easier to understand and maintain. Tested with /sandbox and /testcases.) |
||
Line 1: | Line 1: | ||
− | {{#if:{{{1<includeonly>|</includeonly>}}} | + | {{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} {{#property:P1220}} |
− | |[https://www.ibdb.com/broadway-cast-staff/{{ | + | |
− | |<span class="error">{{[[Template:IBDB name|IBDB name]]}} template missing ID and not present in Wikidata.</span>{{Main other|[[Category:IBDB name template missing ID]]}} | + | | [https://www.ibdb.com/broadway-cast-staff/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} |
+ | | {{{1|{{{id}}}}}} | ||
+ | | {{First word|1={{#property:P1220}}|sep=,}} | ||
+ | }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | ||
+ | | {{{2|{{{name}}}}}} | ||
+ | | {{PAGENAMEBASE}} | ||
+ | }}] at the [[Internet Broadway Database]]<includeonly>{{EditAtWikidata|pid=P1220|{{{1|{{{id|}}}}}}}}{{WikidataCheck|property=P1220|value={{{1|{{{id|}}}}}}|category=Internet Broadway Database person ID}}</includeonly> | ||
+ | |||
+ | | <span class="error">{{[[Template:IBDB name|IBDB name]]}} template missing ID and not present in Wikidata.</span>{{Main other|[[Category:IBDB name template missing ID]]}} | ||
+ | |||
}}{{Main other|[[Category:Articles with IBDb links]]}}<noinclude> | }}{{Main other|[[Category:Articles with IBDb links]]}}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 22:19, 2 August 2018
{{{name}}} at the Internet Broadway Database
Template:Uses Wikidata Template:Tracks Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
Template:IBDB name displays an external link to a web page at the Internet Broadway Database (IBDB), operated by the The Broadway League. This template should be used exclusively for people. It is intended for use in the external links section of an article.
If you need to link a show, use Template:IBDB show or Template:IBDB title instead.
Contents
Usage
Unnamed parameters:
{{IBDB name | ID }}
{{IBDB name | ID | NAME }}
Named parameters:
{{IBDB name | id= ID }}
{{IBDB name | id= ID | name= NAME }}
Using Wikidata property Template:Property:
{{IBDB name}}
{{IBDB name | name= NAME }}
Instructions
- Go to IBDB.com and search for a person
- Click on the correct link to go to the person's page. Be sure you're getting the correct person.
- The page URL should look like
https://www.ibdb.com/broadway-cast-staff/xxxxx-xxxxx-#####
- where "xxxxx-xxxxx" indicates the person's name and "#####" indicates a number.
- Add to the external links section the text:
* {{IBDB name|id=#####|name=NAME}}
- where "#####" is the number you've copied, and NAME is the person's full formatted name.
Examples
Unnamed parameters
URLs:
- https://www.ibdb.com/broadway-cast-staff/arthur-miller-4316
- https://www.ibdb.com/broadway-cast-staff/4316
- https://www.ibdb.com/person.php?id=4316
Usage:
* {{IBDB name | 4316 | Arthur Miller }}
Output:
- Arthur Miller at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".Template:WikidataCheck
Named parameters
URLs:
- https://www.ibdb.com/broadway-cast-staff/jerry-orbach-55157
- https://www.ibdb.com/broadway-cast-staff/55157
- https://www.ibdb.com/person.php?id=55157
Usage:
* {{IBDB name | id= 55157 | name= Jerry Orbach }}
Output:
- Jerry Orbach at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".Template:WikidataCheck
No ID in template or Wikidata
Usage:
{{IBDB name}}
Output:
- Template:PAGENAMEBASE at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".Template:WikidataCheck
TemplateData
TemplateData for IBDB name
This template displays an external link to a web page at the Internet Broadway Database (IBDB), operated by the The Broadway League. This template should be used exclusively for people. It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 1 | The "id" parameter (or unnamed parameter "1") may be used to specify the ID portion of the URL. Example: 4316 is the ID in https://www.ibdb.com/broadway-cast-staff/arthur-miller-4316, https://www.ibdb.com/broadway-cast-staff/4316, or https://www.ibdb.com/person.php?id=4316. This parameter is optional if Wikidata property P1220 exists, but required if not.
| Number | optional |
Name | name 2 | The "name" parameter (or unnamed parameter "2") may be used to specify the person's name, which is displayed in the link text. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation.
| String | optional |
Tracking categories
- ID parameter exists
- Category:Internet Broadway Database person ID same as Wikidata (0)
- Category:Internet Broadway Database person ID different from Wikidata (0)
- Category:Internet Broadway Database person ID not in Wikidata (0)
- ID parameter does not exist
See also
- {{IBDB title}}
- {{IBDB show}} for shows with multiple productions
- {{IBDB venue}} for named theatres
The above documentation is transcluded from Template:IBDB name/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |