Difference between revisions of "Template:DBLP/doc"

From blackwiki
Jump to navigation Jump to search
imported>Uzume
(http->https)
imported>Zyxw
(updates for use of Wikidata property, add category)
Line 6: Line 6:
  
 
== Usage ==
 
== Usage ==
One parameter:
+
Unnamed parameters:
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |''PID''}}</code>
+
: {{tlcw|{{BASEPAGENAME}} | <var>PID</var> }}
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |pid=''PID''}}</code>
+
: {{tlcw|{{BASEPAGENAME}} | <var>PID</var> | <var>NAME</var> }}
  
Two parameters:
+
Named parameters:
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |''PID'' |''NAME''}}</code>
+
: {{tlcw|{{BASEPAGENAME}} | pid{{=}} <var>PID</var> }}
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |pid=''ID'' |name=''NAME''}}</code>
+
: {{tlcw|{{BASEPAGENAME}} | pid{{=}} <var>PID</var> | name{{=}} <var>NAME</var> }}
 +
 
 +
Using [[Wikidata]] property {{wpl|P2456}}:
 +
: {{tlcw|{{BASEPAGENAME}} }}
 +
: {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }}
  
 
== Examples ==
 
== Examples ==
  
 
===One parameter===
 
===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.
+
''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 }}
  
: URL: <code><nowiki>https://</nowiki>dblp.org/pid/{{hilite|h/CARHoare}}</code>
+
''Output:''
# <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |h/CARHoare}}</code>
+
:* {{{{BASEPAGENAME}} | h/CARHoare | Tony Hoare }}
#: {{{{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.]
+
''URLs:''
 +
: <kbd>[https://dblp.org/pid/h/CARHoare https://dblp.org/pid/{{hilite|h/CARHoare}}]</kbd> (used in template)
 +
: <kbd>https://dblp.org/pers/hd/h/Hoare:C=_A=_R=</kbd> (redirect from above)
  
 
===Two parameters===
 
===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]].
+
''Usage with name parameter as link text:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | 135/6935 | Hannah Miller }}
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | pid{{=}} 135/6935 | name{{=}} Hannah Miller }}
 +
 
 +
''Output:''
 +
:* {{{{BASEPAGENAME}} | 135/6935 | Hannah Miller }}
 +
 
 +
''URLs:''
 +
: <kbd>[https://dblp.org/pid/135/6935 https://dblp.org/pid/{{hilite|135/6935}}]</kbd> (used in template)
 +
: <kbd>https://dblp.org/pers/hd/m/Miller:Hannah</kbd> (redirect from above)
  
: URL: <code><nowiki>https://</nowiki>dblp.org/pid/{{hilite|h/CARHoare}}</code>
+
=== ID in Wikidata ===
# <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |h/CARHoare |C. A. R. Hoare}}</code>
+
''Usage in the article [[Gunther Schmidt]]:''
#: {{{{BASEPAGENAME}} |h/CARHoare |C. A. R. Hoare}}
+
: {{tlcw|a=1|{{BASEPAGENAME}} }}
# <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |pid=h/CARHoare |name=C. A. R. Hoare}}</code>
+
: {{tlcw|a=1|{{BASEPAGENAME}} | name{{=}} Gunther Schmidt }}
#: {{{{BASEPAGENAME}} |pid=h/CARHoare |name=C. A. R. Hoare}}
 
  
== Template data ==
+
''Output:''
{{TemplateDataHeader}}
+
:* {{{{BASEPAGENAME}} | s/GuntherSchmidt | Gunther Schmidt }} [[File:Blue pencil.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/hd/s/Schmidt_0001:Gunther</kbd> (redirect from above)
 +
 
 +
== TemplateData ==
 +
{{TemplateData header}}
 
<templatedata>
 
<templatedata>
 
{
 
{
Line 44: Line 64:
 
"pid": {
 
"pid": {
 
"label": "PID",
 
"label": "PID",
"description": "PID string used in the URL.",
+
"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",
 
"type": "string",
 
"required": false,
 
"required": false,
 +
"default": "Wikidata property P2456",
 
"aliases": [ "1" ]
 
"aliases": [ "1" ]
 
},
 
},
 
"name": {
 
"name": {
 
"label": "Name",
 
"label": "Name",
"description": "Name displayed as the link text. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation.",
+
"description": "Name displayed as the link text. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation.",
 
"type": "string",
 
"type": "string",
                        "required": false,
+
"required": false,
 +
"default": "{{PAGENAMEBASE}}",
 
"aliases": [ "2" ]
 
"aliases": [ "2" ]
 
}
 
}
}
+
},
 +
"paramOrder": [
 +
"pid",
 +
"name"
 +
]
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
 +
== Tracking category ==
 +
* {{clc|Pages using DBLP with the pid parameter}}
  
 
== See also ==
 
== See also ==
{{Wikidata property|P2456}}
+
* {{tl|AcademicSearch}}
* {{Tl|AcademicSearch}}
 
 
* {{tl|ACM Portal}}
 
* {{tl|ACM Portal}}
* {{Tl|Google Scholar id}}
+
* {{tl|Google Scholar id}}
* {{Tl|MacTutor}}
+
* {{tl|MacTutor}}
 
* {{tl|ORCID}}
 
* {{tl|ORCID}}
 
* {{tl|Scopus}}
 
* {{tl|Scopus}}
 
* {{tl|zbMATH}}
 
* {{tl|zbMATH}}
 
* {{tl|MathGenealogy}}
 
* {{tl|MathGenealogy}}
* {{cl|Pages using DBLP with the pid parameter|count=yes}}
 
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
Line 78: Line 105:
 
[[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]]
 
 
[[Category:External link templates using Wikidata]]
 
[[Category:External link templates using Wikidata]]
 +
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 05:15, 28 July 2018

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:Wpl:

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/hd/h/Hoare:C=_A=_R= (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/135/6935 (used in template)
https://dblp.org/pers/hd/m/Miller:Hannah (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/hd/s/Schmidt_0001:Gunther (redirect from above)

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 category

See also