Difference between revisions of "Template:DBLP/doc"

From blackwiki
Jump to navigation Jump to search
(doc)
imported>Uzume
(→‎Examples: update)
 
(26 intermediate revisions by 9 users not shown)
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}}
 +
{{Lua|Module:EditAtWikidata}}
 +
 +
This template generates an external link to an person's page at the computer science bibliography website [[DBLP]].
  
 
== Usage ==
 
== Usage ==
To link to the [[DBLP]] entry of [[C. A. R. Hoare]] use:
+
Unnamed parameters:
* <code><nowiki>{{DBLP|id=Hoare:C_A_R}}</nowiki></code> (i.e., the page name is the parameter)
+
: {{tlcw|{{BASEPAGENAME}} | <var>PID</var> }}
 +
: {{tlcw|{{BASEPAGENAME}} | <var>PID</var> | <var>NAME</var> }}
  
Note: do '''not''' add ".html" to the id. This is a common mistake and will lead to a ''Page not found'' error.
+
Named parameters:
 +
: {{tlcw|{{BASEPAGENAME}} | pid{{=}} <var>PID</var> }}
 +
: {{tlcw|{{BASEPAGENAME}} | pid{{=}} <var>PID</var> | name{{=}} <var>NAME</var> }}
 +
 
 +
Using [[Wikidata]] property {{Property|2456}}:
 +
: {{tlcw|{{BASEPAGENAME}} }}
 +
: {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }}
 +
 
 +
== Examples ==
 +
 
 +
===One parameter===
 +
''Usage in the article [[Tony Hoare]], with article name as [[link text]]:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | h/CARHoare }}
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | pid{{=}} h/CARHoare }}
 +
 
 +
''Output:''
 +
:* {{{{BASEPAGENAME}} | h/CARHoare | Tony Hoare }}
 +
 
 +
''URLs:''
 +
: <kbd>[https://dblp.org/pid/h/CARHoare https://dblp.org/pid/{{hilite|h/CARHoare}}]</kbd> (used in template)
 +
: <kbd>https://dblp.org/pers/h/Hoare:C=_A=_R=.html</kbd> (redirect from above)
 +
 
 +
===Two parameters===
 +
''Usage with name parameter as link text:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | 259/4132 | Hannah Miller }}
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | pid{{=}} 259/4132 | name{{=}} Hannah Miller }}
 +
 
 +
''Output:''
 +
:* {{{{BASEPAGENAME}} | 259/4132 | Hannah Miller }}
 +
 
 +
''URLs:''
 +
: <kbd>[https://dblp.org/pid/259/4132 https://dblp.org/pid/{{hilite|259/4132}}]</kbd> (used in template)
 +
: <kbd>https://dblp.org/pers/m/Miller:Hannah.html</kbd> (redirect from above)
 +
 
 +
=== ID in Wikidata ===
 +
''Usage in the article [[Gunther Schmidt]]:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} }}
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | name{{=}} Gunther Schmidt }}
 +
 
 +
''Output:''
 +
:* {{{{BASEPAGENAME}} | s/GuntherSchmidt | Gunther Schmidt }} [[File:OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px |alt=Edit this at Wikidata |link=https://www.wikidata.org/wiki/Q18752214#P2456 |Edit this at Wikidata]]
 +
 
 +
''URLs:''
 +
: <kbd>[https://dblp.org/pid/s/GuntherSchmidt https://dblp.org/pid/{{hilite|s/GuntherSchmidt}}]</kbd> (used in template)
 +
: <kbd>https://dblp.org/pers/s/Schmidt_0001:Gunther.html</kbd> (redirect from above)
 +
 
 +
=== No ID in template or Wikidata ===
 +
''Usage:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} }}
 +
 
 +
''Output:''
 +
:* {{{{BASEPAGENAME}} }}
 +
 
 +
== TemplateData ==
 +
{{TemplateData header}}
 +
<templatedata>
 +
{
 +
        "description": "This template generates an external link to an account at DBLP.",
 +
"params": {
 +
"pid": {
 +
"label": "PID",
 +
"description": "PID string used in the URL. Example: h/CARHoare in https://dblp.org/pid/h/CARHoare or 135/6935 in https://dblp.org/pid/135/6935. This parameter is optional if Wikidata property P2456 exists, but required if not.",
 +
"type": "string",
 +
"required": false,
 +
"default": "Wikidata property P2456",
 +
"aliases": [ "1" ]
 +
},
 +
"name": {
 +
"label": "Name",
 +
"description": "Name displayed as the link text.  This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation.",
 +
"type": "string",
 +
"required": false,
 +
"default": "{{PAGENAMEBASE}}",
 +
"aliases": [ "2" ]
 +
}
 +
},
 +
"paramOrder": [
 +
"pid",
 +
"name"
 +
]
 +
}
 +
</templatedata>
 +
 
 +
== Tracking categories ==
 +
* {{clc|Pages using DBLP with the pid parameter}}
 +
* {{clc|DBLP template missing ID and not in Wikidata}}
  
 
== See also ==
 
== See also ==
* {{Tl|AcademicSearch}}
+
* {{tl|Authority control}} which includes [[DBLP]] link
* {{Tl|MacTutor}}
+
* {{tl|AcademicSearch}}
 +
* {{tl|ACM Portal}}
 +
* {{tl|Google Scholar id}}
 +
* {{tl|MacTutor}}
 +
* {{tl|ORCID}}
 +
* {{tl|Scopus}}
 +
* {{tl|zbMATH}}
 +
* {{tl|MathGenealogy}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
<!-- Categories go here: -->
+
<!--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:External link templates using Wikidata]]
</includeonly>
+
[[Category:Templates that add a tracking category]]
 +
}}</includeonly>

Latest revision as of 04:36, 16 June 2020

Template:Uses Wikidata

This template generates an external link to an person's page at the computer science bibliography website DBLP.

Usage

Unnamed parameters:

Template:Tlcw
Template:Tlcw

Named parameters:

Template:Tlcw
Template:Tlcw

Using Wikidata property Template:Property:

Template:Tlcw
Template:Tlcw

Examples

One parameter

Usage in the article Tony Hoare, with article name as link text:

Template:Tlcw
Template:Tlcw

Output:

  • Tony Hoare at DBLP Bibliography ServerScript error: No such module "EditAtWikidata".

URLs:

https://dblp.org/pid/h/CARHoare (used in template)
https://dblp.org/pers/h/Hoare:C=_A=_R=.html (redirect from above)

Two parameters

Usage with name parameter as link text:

Template:Tlcw
Template:Tlcw

Output:

  • Hannah Miller at DBLP Bibliography ServerScript error: No such module "EditAtWikidata".

URLs:

https://dblp.org/pid/259/4132 (used in template)
https://dblp.org/pers/m/Miller:Hannah.html (redirect from above)

ID in Wikidata

Usage in the article Gunther Schmidt:

Template:Tlcw
Template:Tlcw

Output:

URLs:

https://dblp.org/pid/s/GuntherSchmidt (used in template)
https://dblp.org/pers/s/Schmidt_0001:Gunther.html (redirect from above)

No ID in template or Wikidata

Usage:

Template:Tlcw

Output:

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 DBLP

This template generates an external link to an account at DBLP.

Template parameters

ParameterDescriptionTypeStatus
PIDpid 1

PID string used in the URL. Example: h/CARHoare in https://dblp.org/pid/h/CARHoare or 135/6935 in https://dblp.org/pid/135/6935. This parameter is optional if Wikidata property P2456 exists, but required if not.

Default
Wikidata property P2456
Stringoptional
Namename 2

Name displayed as the link text. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation.

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

See also