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

From blackwiki
Jump to navigation Jump to search
(→‎Example: cleanup)
imported>Zyxw
m (→‎Tracking categories: add headings)
 
(39 intermediate revisions by 25 users not shown)
Line 1: Line 1:
{{documentation subpage}}
+
{{Documentation subpage}}
 +
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
 +
{{Uses Wikidata|P1220}}
 +
{{Tracks Wikidata|P1220}}
 +
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
  
This is a template to generate links to [[Internet Broadway Database]]. This template '''should be used exclusively for ''PEOPLE'''''.
+
'''{{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.
  
If you need to link a show, use [[Template:Ibdb title]] instead.
+
If you need to link a show, use [[Template:IBDB show]] or [[Template:IBDB title]] instead.
 +
 
 +
== Usage ==
 +
Unnamed parameters:
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | <var>ID</var> }}</code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }}</code>
 +
 
 +
Named parameters:
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>ID</var> }}</code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>ID</var> | name= <var>NAME</var> }}</code>
 +
 
 +
Using [[Wikidata]] property {{Property|P1220}}:
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= <var>NAME</var> <nowiki>}}</nowiki></code>
  
 
== Instructions ==
 
== Instructions ==
# Go to [http://www.ibdb.com ibdb.com] and search for the person you want
+
# Go to [http://ibdb.com 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.
 
# 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 <nowiki>www.ibdb.com/person.asp?ID=#####</nowiki>, where "#####" indicates a number.
+
# The page [[Uniform resource locator|URL]] should look like
 +
#: <code><nowiki>https://</nowiki>www.ibdb.com/broadway-cast-staff/xxxxx-xxxxx-{{hilite|#####}}</code>
 +
#: where "xxxxx-xxxxx" indicates the person's name and "#####" indicates a number.
 
# Add to the external links section the text:
 
# Add to the external links section the text:
:<nowiki>{{ibdb name|id=#####|name=Name}}</nowiki>
+
#: <code><nowiki>* {{</nowiki>IBDB name|id=#####|name=''NAME''}}</code>
:where "#####" is the number you've copied, and "Name" is the person's name
+
#: where "#####" is the number you've copied, and ''NAME'' is the person's full formatted name.
  
==Example==
+
== Examples ==
#Searching for "Jerry Orbach", you'll reach this page: <br>http://www.ibdb.com/person.asp?ID=55157
 
#Copy "55157" and then write:<br><code><nowiki>{{ibdb name|id=55157|name=Jerry Orbach}}</nowiki></code>
 
The result is
 
:{{ibdb name|id=55157|name=Jerry Orbach}}
 
  
==See also==
+
=== Unnamed parameters ===
*{{tl|ibdb title}}
+
''URLs:''
 +
: <kbd><nowiki>https://www.ibdb.com/broadway-cast-staff/arthur-miller-</nowiki>{{hilite|4316}}</kbd>
 +
: <kbd><nowiki>https://www.ibdb.com/broadway-cast-staff/</nowiki>{{hilite|4316}}</kbd>
 +
: <kbd><nowiki>https://www.ibdb.com/person.php?id=</nowiki>{{hilite|4316}}</kbd>
 +
 
 +
''Usage:''
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 4316 | Arthur Miller <nowiki>}}</nowiki></code>
 +
 
 +
''Output:''
 +
:* {{{{BASEPAGENAME}} | 4316 | Arthur Miller }}
 +
 
 +
=== Named parameters ===
 +
''URLs:''
 +
: <kbd><nowiki>https://www.ibdb.com/broadway-cast-staff/jerry-orbach-</nowiki>{{hilite|55157}}</kbd>
 +
: <kbd><nowiki>https://www.ibdb.com/broadway-cast-staff/</nowiki>{{hilite|55157}}</kbd>
 +
: <kbd><nowiki>https://www.ibdb.com/person.php?id=</nowiki>{{hilite|55157}}</kbd>
 +
 
 +
''Usage:''
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 55157 | name= Jerry Orbach <nowiki>}}</nowiki></code>
 +
 
 +
''Output:''
 +
:* {{{{BASEPAGENAME}} | id= 55157 | name= Jerry Orbach }}
 +
 
 +
=== No ID in template or Wikidata ===
 +
''Usage:''
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
 +
 
 +
''Output:''
 +
: {{ {{BASEPAGENAME}} }}
 +
 
 +
==TemplateData==
 +
{{TemplateData header}}
 +
<templatedata>
 +
{
 +
        "description": "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.",
 +
        "params": {
 +
                "id": {
 +
                        "label": "ID",
 +
                        "aliases" : [ "1" ],
 +
                        "description": "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.",
 +
                        "type": "number",
 +
                        "required": false,
 +
"default": "Wikidata property P1220"
 +
                },
 +
                "name": {
 +
                        "label": "Name",
 +
                        "aliases" : [ "2" ],
 +
                        "description": "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.",
 +
                        "type": "string",
 +
                        "required": false,
 +
"default": "{{PAGENAMEBASE}}"
 +
                }
 +
},
 +
"paramOrder": [
 +
"id",
 +
"name"
 +
]
 +
}
 +
</templatedata>
  
<includeonly>
+
== Tracking categories ==
<!-- ADD CATEGORIES BELOW THIS LINE -->
+
* {{clc|Articles with IBDb links}}
[[Category:Theatre external link templates|{{PAGENAME}}]]
+
; ID parameter exists
[[Category:Film external link templates|{{PAGENAME}}]]
+
* {{clc|Internet Broadway Database person ID same as Wikidata}}
[[Category:Television external link templates|{{PAGENAME}}]]
+
* {{clc|Internet Broadway Database person ID different from Wikidata}}
 +
* {{clc|Internet Broadway Database person ID not in Wikidata}}
 +
; ID parameter does not exist
 +
* {{clc|IBDB name template missing ID}}
  
 +
==See also==
 +
* {{tl|IBDB title}}
 +
* {{tl|IBDB show}} for shows with multiple productions
 +
* {{tl|IBDB venue}} for named theatres
  
[[bg:Шаблон:Ibdb name]]
+
<includeonly>{{Sandbox other||
[[hr:Predložak:Ibdb name]]
+
<!--Categories below this line, please; interwikis at Wikidata-->
</includeonly>
+
[[Category:Theatre external link templates]]
 +
[[Category:People and person external link templates]]
 +
[[Category:External link templates using Wikidata]]
 +
[[Category:Templates that add a tracking category]]
 +
}}</includeonly>

Latest revision as of 18:03, 10 May 2020

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

ID parameter exists
ID parameter does not exist

See also