Difference between revisions of "Template:Baidu Baike"

From blackwiki
Jump to navigation Jump to search
imported>MarioGom
(fix bug)
imported>MarioGom
(fix bug)
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}}{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Articles with Baidu Baike links]]|}}<noinclude>
+
[{{#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}}{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Articles with Baidu Baike links]]|}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 23:38, 14 April 2020

{{{title}}} at Baidu Baike (in Chinese)

Template documentation[view] [edit] [history] [purge]

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:

Template:Tlcw
Template:Tlcw

Named parameters:

Template:Tlcw
Template:Tlcw
Template:Tlcw

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