模板: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[編輯]