Difference between revisions of "Template:Iobdb name/doc"
imported>Primefac (update) |
imported>Joeyconnick (update documentation) |
||
| 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|P4456}} | |
| + | {{Tracks Wikidata|P4456}} | ||
| + | {{Lua|Module:EditAtWikidata|Module:WikidataCheck}} | ||
| − | + | '''{{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. | |
| − | |||
| − | {{ | ||
| − | |||
| − | + | == 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|P4456}}: | |
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= <var>NAME</var> <nowiki>}}</nowiki></code> | ||
| − | < | + | == Instructions == |
| − | + | # Go to [http://iobdb.com IOBDB.com] and search for a person | |
| − | name | + | # 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 | |
| + | #: <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. | ||
| − | == | + | == Examples == |
| − | |||
| − | |||
| − | |||
| − | + | === Unnamed parameters === | |
| − | {{iobdb name| | + | ''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== | ||
| − | * | + | * {{tl|Iobdb venue}} |
| − | * | + | * {{tl|Iobdb title}} |
| − | * | + | * {{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
| This is a documentation subpage for Template:Iobdb name. It contains usage information, categories and other content that is not part of the original template page. |
Template:Uses Wikidata Template:Tracks Wikidata
| This template uses Lua: |
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.
Contents
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
- Go to IOBDB.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
http://iobdb.com/CreditableEntity/#####- where "#####" indicates a number.
- 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:
- Michelle Hurd at the Internet Off-Broadway DatabaseScript error: No such module "EditAtWikidata".Template:WikidataCheck
Named parameters
URLs:
- http://http://iobdb.com/CreditableEntity/11244
Usage:
* {{Iobdb name | id= 11244 | name= Michelle Hurd }}
Output:
- Michelle Hurd at the Internet Off-Broadway DatabaseScript error: No such module "EditAtWikidata".Template:WikidataCheck
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
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.
| 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: 11244 is the ID in http://iobdb.com/CreditableEntity/11244. This parameter is optional if Wikidata property P4456 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
- Category:Articles with Iobdb links (0)
- Category:Internet Off-Broadway Database person ID not in Wikidata (0)
- Category:Internet Off-Broadway Database person ID different from Wikidata (0)
- Category:Internet Off-Broadway Database person ID same as Wikidata (0)
- Category:Iobdb name template missing ID (0)
See also
- {{Iobdb venue}}
- {{Iobdb title}}
- {{Iobdb show}}