Template:Douban people/doc
This is a documentation subpage for Template:Douban people. It may contain usage information, categories and other content that is not part of the original template page. |
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:
{{Douban people|1053554|Satoshi Kon}}
yields: "Satoshi Kon at Douban (in Chinese)"
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:
{{Douban people|4506751|Honoré de Balzac|type=book}}
yields: "Honoré de Balzac at Douban (in Chinese)"
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:
Parameters
To generate a link to a Douban person webpage
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 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>
| Number | required |
Link text | title 2 (or the second anonymous parameter) | Text that is shown by the link
| String | optional |
Type | type 4 (or the fourth anonymous parameter) | Type of the Douban webpage (see above)
| String | optional |
See also