模板:ResearchGate/doc

维基百科,自由的百科全书
跳转到导航 跳转到搜索

Template:ResearchGate generates an external link to a person's profile at ResearchGate.

Usage[编辑]

One parameter:

{{ResearchGate | ID }}
{{ResearchGate | id= ID }}

Two parameters:

{{ResearchGate | ID | NAME }}
{{ResearchGate | id= ID | name= NAME }}

Examples[编辑]

One parameter[编辑]

This parameter will be the ID string used in the URL at ResearchGate. When one parameter is used, the link text is the title of the Wikipedia article where the template is used.

URL:

http://www.researchgate.net/profile/jon_doe

Usage:

* {{ResearchGate | jon_doe }}
* {{ResearchGate | id= jon_doe }}

Output:

The lead name will change according to the name of the Wikipedia page used on.

Two parameters[编辑]

The first parameter will be the ID string used in the URL at ResearchGate. The second parameter will be used at the link text.

URL:

http://www.researchgate.net/profile/jon_doe

Usage:

* {{ResearchGate | jon_doe | Jon Doe }}
* {{ResearchGate | id= jon_doe | name= Jon Doe }}

Output:

No parameters and Wikidata property not defined[编辑]

Usage:

* {{ResearchGate}}

Output:

  • {{ResearchGate}} template missing ID and not present in Wikidata.

TemplateData[编辑]

以下是该模板的模板数据,适用于可视化编辑器等工具。

ResearchGate模板数据

<templatedata> {

       "description": "This template generates an external link to a person's profile at ResearchGate.",

"params": { "id": { "label": "ID", "aliases": [ "1" ], "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: jon_doe is the ID portion of http://www.researchgate.net/profile/jon_doe. This parameter is optional if Wikidata property P2038 exists, but required if not.", "type": "string", "required": false, "default": "Wikidata property P2038" }, "name": { "label": "Name", "aliases": [ "2" ], "description": "The \"name\" parameter (or unnamed parameter \"2\") may be used to specify the link text. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation.", "type": "string", "required": false, "default": "ResearchGate/doc" } }, "paramOrder": [ "id", "name" ] } </templatedata>

See also[编辑]