Difference between revisions of "Template:Baidu Baike"
imported>MarioGom (fix bug) |
imported>MarioGom (move "in lang" first) |
||
| Line 1: | Line 1: | ||
| − | [{{#if: {{{id|}}}|https://baike.baidu.com/view/{{{id}}}.htm|https://baike.baidu.com/item/{{{1|{{{title}}}}}}{{#if:{{{2|{{{subid}}}}}}|/{{{2|{{{subid}}}}}}|}}}} {{{1|{{{title}}}}}}] at ''[[Baidu Baike]]'' | + | {{in lang|zh}} [{{#if: {{{id|}}}|https://baike.baidu.com/view/{{{id}}}.htm|https://baike.baidu.com/item/{{{1|{{{title}}}}}}{{#if:{{{2|{{{subid}}}}}}|/{{{2|{{{subid}}}}}}|}}}} {{{1|{{{title}}}}}}] at ''[[Baidu Baike]]''{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Articles with Baidu Baike links]]|}}<noinclude> |
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 22:44, 15 April 2020
(in Chinese) {{{title}}} at Baidu Baike
This template can be used to provide a link to Baidu Baike's article on a given subject.
Usage
This template may be used in the "External links" section of an article. Given Wikipedia's policy on user-generated content, its usage is generally not appropriate for references.
Unnamed parameters:
Named parameters:
TOPIC is the topic name of the Baidu Baike article in question. It is the first part of an url after /item. For example, in https://baike.baidu.com/item/鲸目/1521573 the TOPIC is "鲸目".
SUBID is an optional numberic id. For example, in https://baike.baidu.com/item/鲸目/1521573 the SUBID is "1521573".
ID is an alternative stable identifier for the page that can be found in URLs in the form of https://baike.baidu.com/view/84227.html or by looking for the "lemmaId": in the source code. See for example How to view the HTML source code of a web page if you need help with this.
This template places articles in Category:Articles with Baidu Baike links.
See also
- {{Baike.com}}
- {{Britannica}}
| The above documentation is transcluded from Template:Baidu Baike/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |