Difference between revisions of "Template:DBLP/doc"
(update) |
|||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Categories go at the bottom of this page. --> | <!-- Categories go at the bottom of this page. --> | ||
| + | {{Uses Wikidata|P2456}} | ||
| + | |||
| + | This template generates an external link to an person's page at [[DBLP]]. | ||
== Usage == | == Usage == | ||
| − | + | One parameter: | |
| − | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |''PID''}}</code> | |
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |pid=''PID''}}</code> | ||
| + | |||
| + | Two parameters: | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |''PID'' |''NAME''}}</code> | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |pid=''ID'' |name=''NAME''}}</code> | ||
| + | |||
| + | == Examples == | ||
| + | |||
| + | ===One parameter=== | ||
| + | This parameter will be the PID string used in the [[URL]] at DBLP. When one parameter is used, the [[link text]] is the title of the Wikipedia article where the template is used. | ||
| + | |||
| + | : URL: <code><nowiki>http://</nowiki>dblp.org/pid/{{hilite|h/CARHoare}}</code> | ||
| + | # <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |h/CARHoare}}</code> | ||
| + | #: {{{{BASEPAGENAME}} |h/CARHoare}} | ||
| + | # <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |pid=h/CARHoare}}</code> | ||
| + | #: {{{{BASEPAGENAME}} |pid=h/CARHoare}} | ||
| + | |||
| + | [The name of the Wikipedia page you now are looking at is displayed above. The lead name will change according to the name of the Wikipedia page the template is used on.] | ||
| − | + | ===Two parameters=== | |
| + | The first parameter will be the PID string used in the [[URL]] at DBLP. The second parameter will be used at the [[link text]]. | ||
| − | + | : URL: <code><nowiki>http://</nowiki>dblp.org/pid/{{hilite|h/CARHoare}}</code> | |
| + | # <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |h/CARHoare |C. A. R. Hoare}}</code> | ||
| + | #: {{{{BASEPAGENAME}} |h/CARHoare |C. A. R. Hoare}} | ||
| + | # <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |pid=h/CARHoare |name=C. A. R. Hoare}}</code> | ||
| + | #: {{{{BASEPAGENAME}} |pid=h/CARHoare |name=C. A. R. Hoare}} | ||
| − | < | + | == Template data == |
| − | + | {{TemplateDataHeader}} | |
| + | <templatedata> | ||
| + | { | ||
| + | "description": "This template generates an external link to an account at DBLP.", | ||
| + | "params": { | ||
| + | "pid": { | ||
| + | "label": "PID", | ||
| + | "description": "PID string used in the URL.", | ||
| + | "type": "string", | ||
| + | "required": false, | ||
| + | "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> | ||
| − | {{ | + | == Compatibility usage == |
| + | To link to the [[DBLP]] entry of [[C. A. R. Hoare]] use: | ||
| + | *<code><nowiki>{{</nowiki>{{BASEPAGENAME}} |id=Hoare:C=_A=_R= |title=Anyname Youwant}}</code> (i.e., the page name is the parameter) | ||
| + | *:{{{{BASEPAGENAME}} |id=Hoare:C=_A=_R= |title=Anyname Youwant}} | ||
| + | Note: do '''not''' add ".html" to the {{para|id}}. This is a common mistake and will lead to a ''Page not found'' error. | ||
| − | If the | + | If the {{para|title}} parameter is not supplied, the name shown for the person will default to that of the Wikipedia page where the template is included: |
| + | *<code><nowiki>{{</nowiki>{{BASEPAGENAME}} |id=Hoare:C=_A=_R=}}</code> | ||
| + | *:{{{{BASEPAGENAME}} |id=Hoare:C=_A=_R=}} | ||
== See also == | == See also == | ||
| − | * {{ | + | {{Wikidata property|2456}} |
| + | * {{Tl|AcademicSearch}} | ||
* {{tl|ACMPortal}} | * {{tl|ACMPortal}} | ||
| − | * {{ | + | * {{Tl|Google Scholar id}} |
| − | * {{ | + | * {{Tl|MacTutor}} |
* {{tl|ORCID}} | * {{tl|ORCID}} | ||
* {{tl|Scopus}} | * {{tl|Scopus}} | ||
| − | <includeonly> | + | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
| − | <!-- Categories | + | <!--Categories below this line, please; interwikis at Wikidata--> |
| + | {{DEFAULTSORT:DBLP}} | ||
[[Category:Computer science templates]] | [[Category:Computer science templates]] | ||
[[Category:Mathematics source templates]] | [[Category:Mathematics source templates]] | ||
[[Category:People and person external link templates]] | [[Category:People and person external link templates]] | ||
| − | + | [[Category:Templates using data from Wikidata]] | |
| − | </includeonly> | + | }}</includeonly> |
Revision as of 06:23, 17 October 2016
| This is a documentation subpage for Template:DBLP. It contains usage information, categories and other content that is not part of the original template page. |
This template generates an external link to an person's page at DBLP.
Contents
Usage
One parameter:
{{DBLP |PID}}{{DBLP |pid=PID}}
Two parameters:
{{DBLP |PID |NAME}}{{DBLP |pid=ID |name=NAME}}
Examples
One parameter
This parameter will be the PID string used in the URL at DBLP. When one parameter is used, the link text is the title of the Wikipedia article where the template is used.
- URL:
http://dblp.org/pid/h/CARHoare
{{DBLP |h/CARHoare}}- Template:PAGENAMEBASE at DBLP Bibliography ServerScript error: No such module "EditAtWikidata".
{{DBLP |pid=h/CARHoare}}- Template:PAGENAMEBASE at DBLP Bibliography ServerScript error: No such module "EditAtWikidata".
[The name of the Wikipedia page you now are looking at is displayed above. The lead name will change according to the name of the Wikipedia page the template is used on.]
Two parameters
The first parameter will be the PID string used in the URL at DBLP. The second parameter will be used at the link text.
- URL:
http://dblp.org/pid/h/CARHoare
{{DBLP |h/CARHoare |C. A. R. Hoare}}- C. A. R. Hoare at DBLP Bibliography ServerScript error: No such module "EditAtWikidata".
{{DBLP |pid=h/CARHoare |name=C. A. R. Hoare}}- C. A. R. Hoare at DBLP Bibliography ServerScript error: No such module "EditAtWikidata".
Template data
TemplateData for DBLP
This template generates an external link to an account at DBLP.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| PID | pid 1 | PID string used in the URL. | String | optional |
| Name | name 2 | Name displayed as the link text. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation. | String | optional |
Compatibility usage
To link to the DBLP entry of C. A. R. Hoare use:
{{DBLP |id=Hoare:C=_A=_R= |title=Anyname Youwant}}(i.e., the page name is the parameter)- Anyname Youwant at DBLP Bibliography ServerScript error: No such module "EditAtWikidata".
Note: do not add ".html" to the |id=. This is a common mistake and will lead to a Page not found error.
If the |title= parameter is not supplied, the name shown for the person will default to that of the Wikipedia page where the template is included:
{{DBLP |id=Hoare:C=_A=_R=}}- Template:PAGENAMEBASE at DBLP Bibliography ServerScript error: No such module "EditAtWikidata".
See also
- {{AcademicSearch}}
- {{ACMPortal}}
- {{Google Scholar id}}
- {{MacTutor}}
- {{ORCID}}
- {{Scopus}}