Jump to content

Template:Douban people/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
No edit summary
Line 2: Line 2:
{{Uses Wikidata|P5284|P6441|P6446}}
{{Uses Wikidata|P5284|P6441|P6446}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a page for an artist (person, animal, or company) at the [[Douban]] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a page for a person at the [[Douban]] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article.


For external links to films and television series, use {{tl|Douban}} instead.
For external links to titles, use {{tl|Douban}} instead.


== Usage ==
== Usage ==

Revision as of 19:39, 11 April 2024

Template:Douban people displays an external link to a page for a person at the Douban website. It is intended for use in the external links section of an article.

For external links to titles, use {{Douban}} instead.

Usage

Go to Douban.com (Douban), search and find the page of the person that you are looking for, check out its URL.

1. If it is a movie celebrity, then the URL should be like https://movie.douban.com/celebrity/[ID]/. In a Wikipedia article you may insert the code below

{{Douban people|[ID]}}

For example:

  • {{Douban people|1053554}} yields: "Douban people/doc at Douban (in Chinese)" (the current Wikipedia article's title will be used as the link's shown text)

Or

{{Douban people|[ID]|[Link text]}}

For example:

2. If it is a book author, then the URL should be like https://book.douban.com/author/[ID]/. In a Wikipedia article you may insert the code below

{{Douban people|[ID]|type=book}}

For example:

  • {{Douban people|4506751|type=book}} yields: "Douban people/doc at Douban (in Chinese)" (the current Wikipedia article's title will be used as the link's shown text)

Or

{{Douban people|[ID]|[Link text]|type=book}}

For example:

3. If it is a musician, then the URL should be like https://music.douban.com/musician/[ID]/. In a Wikipedia article you may insert the code below

{{Douban people|[ID]|type=music}}

For example:

  • {{Douban people|103873|type=music}} yields: "Douban people/doc at Douban (in Chinese)" (the current Wikipedia article's title will be used as the link's shown text)

Or

{{Douban people|[ID]|[Link text]|type=music}}

For example:

  • {{Douban people|103873|Joi Chua|type=music}} yields: "Joi Chua at Douban (in Chinese)"

Parameters

To generate a link to a Douban person webpage

Template parameters

ParameterDescriptionTypeStatus
IDid 1 (or the first anonymous parameter)

ID, that is the <code>[ID]</code> in the URL <code><nowiki>https://[type/www].douban.com/[dir]/[ID]/</nowiki></code>

Example
1292052
Numberrequired
Link texttitle 2 (or the second anonymous parameter)

Text that is shown by the link

Default
The current Wikipedia article (or page of other type)'s title
Example
The Shawshank Redemption
Stringoptional
Typetype 4 (or the fourth anonymous parameter)

Type of the Douban webpage (see above)

Default
movie
Example
"movie", "game", "subject", "location/drama", etc.
Stringoptional

See also