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

From blackwiki
Jump to navigation Jump to search
imported>Primefac
(update)
imported>Joeyconnick
(update documentation)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
+
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
This template is used both for individuals as well as performing companies.
+
{{Uses Wikidata|P4456}}
 +
{{Tracks Wikidata|P4456}}
 +
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
  
==Usage==
+
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a web page at the [[Internet Off-Broadway Database]] (IOBDB), operated by the [[Lucille Lortel]] Foundation. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
<pre>
 
{{iobdb name|id|name}}
 
</pre>
 
  
Produces:
+
== Usage ==
 +
Unnamed parameters:
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | <var>ID</var> }}</code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }}</code>
  
{{iobdb name|id|name}}
+
Named parameters:
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>ID</var> }}</code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= <var>ID</var> | name= <var>NAME</var> }}</code>
  
Where:
+
Using [[Wikidata]] property {{Property|P4456}}:
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
 +
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= <var>NAME</var> <nowiki>}}</nowiki></code>
  
<pre>
+
== Instructions ==
id    = id number at the Internet off-Broadway Database (www.lortel.org)
+
# Go to [http://iobdb.com IOBDB.com] and search for a person
name = optional name, instead of using the page name
+
# Click on the correct link to go to the person's page. Be sure you're getting the correct person.
</pre>
+
# The page [[Uniform resource locator|URL]] should look like
 +
#: <code><nowiki>http://</nowiki>iobdb.com/CreditableEntity/{{hilite|#####}}</code>
 +
#: where "#####" indicates a number.
 +
# Add to the external links section the text:
 +
#: <code><nowiki>* {{</nowiki>Iobdb name|id=#####|name=''NAME''}}</code>
 +
#: where "#####" is the number you've copied, and ''NAME'' is the person's full formatted name.
  
==Example==
+
== Examples ==
<pre>
 
{{iobdb name|3238|Randall Duk Kim}}
 
</pre>
 
  
Produces:
+
=== Unnamed parameters ===
{{iobdb name|3238|Randall Duk Kim}}
+
''URL:''
 +
: <kbd><nowiki>http://iobdb.com/CreditableEntity/</nowiki>{{hilite|11244}}</kbd>
 +
 
 +
''Usage:''
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 11244 | Michelle Hurd <nowiki>}}</nowiki></code>
 +
 
 +
''Output:''
 +
:* {{{{BASEPAGENAME}} | 11244 | Michelle Hurd }}
 +
 
 +
=== Named parameters ===
 +
''URLs:''
 +
: <kbd><nowiki>http://http://iobdb.com/CreditableEntity/</nowiki>{{hilite|11244}}</kbd>
 +
 
 +
''Usage:''
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 11244 | name= Michelle Hurd <nowiki>}}</nowiki></code>
 +
 
 +
''Output:''
 +
:* {{{{BASEPAGENAME}} | id= 11244 | name= Michelle Hurd }}
 +
 
 +
=== 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 Off-Broadway Database (IOBDB), operated by the Lucille Lortel Foundation. 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: 11244 is the ID in http://iobdb.com/CreditableEntity/11244. This parameter is optional if Wikidata property P4456 exists, but required if not.",
 +
                        "type": "number",
 +
                        "required": false,
 +
"default": "Wikidata property P4456"
 +
                },
 +
                "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>
 +
 
 +
== Tracking categories ==
 +
* {{clc|Articles with Iobdb links}}
 +
* {{clc|Internet Off-Broadway Database person ID not in Wikidata}}
 +
* {{clc|Internet Off-Broadway Database person ID different from Wikidata}}
 +
* {{clc|Internet Off-Broadway Database person ID same as Wikidata}}
 +
* {{clc|Iobdb name template missing ID}}
  
 
==See also==
 
==See also==
*[[:Template:Iobdb venue]]
+
* {{tl|Iobdb venue}}
*[[:Template:Iobdb title]]
+
* {{tl|Iobdb title}}
*[[:Template:Iobdb show]]
+
* {{tl|Iobdb show}}
  
<includeonly>
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 +
<!--Categories below this line, please; interwikis at Wikidata-->
 
[[Category:Theatre external link templates]]
 
[[Category:Theatre external link templates]]
 
[[Category:People and person external link templates]]
 
[[Category:People and person external link templates]]
 
+
[[Category:External link templates using Wikidata]]
 
+
[[Category:Templates that add a tracking category]]
</includeonly>
+
}}</includeonly>

Revision as of 06:25, 26 May 2019

Template:Uses Wikidata Template:Tracks Wikidata

Template:Iobdb name displays an external link to a web page at the Internet Off-Broadway Database (IOBDB), operated by the Lucille Lortel Foundation. It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

{{Iobdb name | ID }}
{{Iobdb name | ID | NAME }}

Named parameters:

{{Iobdb name | id= ID }}
{{Iobdb name | id= ID | name= NAME }}

Using Wikidata property Template:Property:

{{Iobdb name}}
{{Iobdb name | name= NAME }}

Instructions

  1. Go to IOBDB.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://iobdb.com/CreditableEntity/#####
    where "#####" indicates a number.
  4. Add to the external links section the text:
    * {{Iobdb name|id=#####|name=NAME}}
    where "#####" is the number you've copied, and NAME is the person's full formatted name.

Examples

Unnamed parameters

URL:

http://iobdb.com/CreditableEntity/11244

Usage:

* {{Iobdb name | 11244 | Michelle Hurd }}

Output:

Named parameters

URLs:

http://http://iobdb.com/CreditableEntity/11244

Usage:

* {{Iobdb name | id= 11244 | name= Michelle Hurd }}

Output:

No ID in template or Wikidata

Usage:

{{Iobdb name}}

Output:

Template:PAGENAMEBASE at the Internet Off-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 Iobdb name

This template displays an external link to a web page at the Internet Off-Broadway Database (IOBDB), operated by the Lucille Lortel Foundation. 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: 11244 is the ID in http://iobdb.com/CreditableEntity/11244. This parameter is optional if Wikidata property P4456 exists, but required if not.

Default
Wikidata property P4456
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