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

From blackwiki
Jump to navigation Jump to search
imported>DixonDBot
m (Migrating 10 interwiki links, now provided by Wikidata on d:Q6290754)
imported>Zyxw
(update documentation, add TemplateData)
Line 1: Line 1:
{{documentation subpage}}
+
{{Documentation subpage}}
 +
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
  
This is a template to generate links to [[Internet Broadway Database]]. This template '''should be used exclusively for ''PEOPLE'''''.
+
This template generates an external link to a page at the [[Internet Broadway Database]]. This template '''should be used exclusively for ''PEOPLE'''''.
  
 
If you need to link a show, use [[Template:IBDB title]] instead.
 
If you need to link a show, use [[Template:IBDB title]] instead.
 +
 +
== Usage ==
 +
One parameter:
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code>
 +
 +
Two parameters:
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code>
  
 
== Instructions ==
 
== Instructions ==
# Go to [http://www.ibdb.com ibdb.com] and search for the person you want
+
# Go to [http://www.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 [[Uniform resource locator|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
# Add to the external links section the text:<br><code><nowiki>{{IBDB name|id=#####|name=Name}}</nowiki></code><br>where "#####" is the number you've copied, and "Name" is the person's name.
+
#: <code><nowiki>http://</nowiki>www.ibdb.com/person.asp?ID={{hilite|#####}}</code>
 +
#: where "#####" indicates a number.
 +
# Add to the external links section the text:
 +
#: <code><nowiki>* {{</nowiki>IBDB name|id=#####|name=''NAME''}}</code>
 +
#: where "#####" is the number you've copied, and ''NAME'' is the person's name.
  
==Example==
+
== Examples ==
#Searching for "Jerry Orbach", you'll reach this page: <br>http://www.ibdb.com/person.asp?ID=55157
+
Searching for "Jerry Orbach", you'll reach this page:
#Copy "55157" and then write:<br><code><nowiki>{{IBDB name|id=55157|name=Jerry Orbach}}</nowiki></code>
+
: <code><nowiki>http://</nowiki>www.ibdb.com/person.asp?ID={{hilite|55157}}</code>
The result is
+
 
:{{IBDB name|id=55157|name=Jerry Orbach}}
+
One parameter:
 +
# <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | 55157 }}</code>
 +
#: {{{{BASEPAGENAME}} | 55157 }}
 +
# <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= 55157 }}</code>
 +
#: {{{{BASEPAGENAME}} | id= 55157 }}
 +
 
 +
Two parameters:
 +
# <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | 55157 | Jerry Orbach }}</code>
 +
#: {{{{BASEPAGENAME}} | 55157 | Jerry Orbach }}
 +
# <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= 55157 | name= Jerry Orbach }}</code>
 +
#: {{{{BASEPAGENAME}} | id= 55157 | name= Jerry Orbach }}
 +
 
 +
== Template data ==
 +
{{TemplateDataHeader}}
 +
<templatedata>
 +
{
 +
        "description": "This template generates an external link to a page at the Internet Broadway Database.",
 +
"params": {
 +
"id": {
 +
"label": "ID",
 +
"description": "ID number used in the URL.",
 +
"type": "number",
 +
"required": true,
 +
"aliases": [ "1" ]
 +
},
 +
"name": {
 +
"label": "Name",
 +
"description": "Name displayed as the link text. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation.",
 +
"type": "string",
 +
                        "required": false,
 +
"aliases": [ "2" ]
 +
}
 +
}
 +
}
 +
</templatedata>
  
 
==See also==
 
==See also==
*{{tl|IBDB title}}
+
* {{tl|IBDB title}}
*{{tl|IBDB show}} for shows with multiple productions
+
* {{tl|IBDB show}} for shows with multiple productions
*{{tl|IBDB name}} for the names of individual people
+
* {{tl|IBDB venue}} for named theatres
*{{tl|IBDB venue}} for named theatres
 
  
<includeonly>
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- ADD CATEGORIES BELOW THIS LINE -->
+
<!--Categories below this line, please; interwikis at Wikidata-->
 +
[[Category:People and person external link templates]]
 
[[Category:Theatre external link templates]]
 
[[Category:Theatre external link templates]]
 
[[Category:Film external link templates]]
 
[[Category:Film external link templates]]
[[Category:People and person external link templates]]
 
 
[[Category:Television external link templates]]
 
[[Category:Television external link templates]]
 
+
}}</includeonly>
</includeonly>
 
 
 
<includeonly>
 
[[ca:Plantilla:Ibdb name]]
 
</includeonly>
 

Revision as of 02:06, 28 September 2014

This template generates an external link to a page at the Internet Broadway Database. This template should be used exclusively for PEOPLE.

If you need to link a show, use Template:IBDB title instead.

Usage

One parameter:

{{IBDB name | ID }}
{{IBDB name | id= ID }}

Two parameters:

{{IBDB name | ID | NAME }}
{{IBDB name | id= ID | 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
    http://www.ibdb.com/person.asp?ID=#####
    where "#####" 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 name.

Examples

Searching for "Jerry Orbach", you'll reach this page:

http://www.ibdb.com/person.asp?ID=55157

One parameter:

  1. {{IBDB name | 55157 }}
    Template:PAGENAMEBASE at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".Template:WikidataCheck
  2. {{IBDB name | id= 55157 }}
    Template:PAGENAMEBASE at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".Template:WikidataCheck

Two parameters:

  1. {{IBDB name | 55157 | Jerry Orbach }}
    Jerry Orbach at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".Template:WikidataCheck
  2. {{IBDB name | id= 55157 | name= Jerry Orbach }}
    Jerry Orbach at the Internet Broadway DatabaseScript error: No such module "EditAtWikidata".Template:WikidataCheck

Template data

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 generates an external link to a page at the Internet Broadway Database.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

ID number used in the URL.

Numberrequired
Namename 2

Name displayed as the link text. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation.

Stringoptional

See also