Difference between revisions of "Template:DBLP/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(note module used)
imported>Zyxw
(show document error message if no ID and not in Wikidata, add link to tracking category)
Line 15: Line 15:
 
: {{tlcw|{{BASEPAGENAME}} | pid{{=}} <var>PID</var> | name{{=}} <var>NAME</var> }}
 
: {{tlcw|{{BASEPAGENAME}} | pid{{=}} <var>PID</var> | name{{=}} <var>NAME</var> }}
  
Using [[Wikidata]] property {{wpl|P2456}}:
+
Using [[Wikidata]] property {{Property|2456}}:
 
: {{tlcw|{{BASEPAGENAME}} }}
 
: {{tlcw|{{BASEPAGENAME}} }}
 
: {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }}
 
: {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }}
Line 56: Line 56:
 
: <kbd>[https://dblp.org/pid/s/GuntherSchmidt https://dblp.org/pid/{{hilite|s/GuntherSchmidt}}]</kbd> (used in template)
 
: <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)
 
: <kbd>https://dblp.org/pers/hd/s/Schmidt_0001:Gunther</kbd> (redirect from above)
 +
 +
=== No ID in template or Wikidata ===
 +
''Usage:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} }}
 +
 +
''Output:''
 +
:* {{{{BASEPAGENAME}} }}
  
 
== TemplateData ==
 
== TemplateData ==
Line 87: Line 94:
 
</templatedata>
 
</templatedata>
  
== Tracking category ==
+
== Tracking categories ==
 
* {{clc|Pages using DBLP with the pid parameter}}
 
* {{clc|Pages using DBLP with the pid parameter}}
 +
* {{clc|DBLP template missing ID and not in Wikidata}}
  
 
== See also ==
 
== See also ==

Revision as of 14:43, 5 September 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: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/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)

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