Difference between revisions of "Template:IBDB name/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update usage, examples, TemplateData)
imported>Zyxw
m (module note)
Line 3: Line 3:
 
{{Uses Wikidata|P1220}}
 
{{Uses Wikidata|P1220}}
 
{{Tracks Wikidata|P1220}}
 
{{Tracks Wikidata|P1220}}
 +
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
  
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' 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 [[Wikipedia:External links|external links]] section of an article.
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' 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 [[Wikipedia:External links|external links]] section of an article.
Line 108: Line 109:
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<!--Categories below this line, please; interwikis at Wikidata-->
 
<!--Categories below this line, please; interwikis at Wikidata-->
 +
[[Category:Theatre external link templates]]
 
[[Category:People and person external link templates]]
 
[[Category:People and person external link templates]]
[[Category:Theatre external link templates]]
+
[[Category:External link templates using Wikidata]]
 
[[Category:Templates that add a tracking category]]
 
[[Category:Templates that add a tracking category]]
[[Category:External link templates using Wikidata]]
 
 
}}</includeonly>
 
}}</includeonly>

Revision as of 04:40, 10 May 2019

Template:Uses Wikidata Template:Tracks Wikidata

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.

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

  1. Go to IBDB.com and search for a person
  2. Click on the correct link to go to the person's page. Be sure you're getting the correct person.
  3. 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.
  4. 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:

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:

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

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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.

Template parameters

ParameterDescriptionTypeStatus
IDid 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.

Default
Wikidata property P1220
Numberoptional
Namename 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.

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

See also