Template:Douban/doc

It is intended for use in the external links section of an article.

For an external link to a person, use Douban people instead.

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

1. If it is a movie, then the URL should be like. In a Wikipedia article you may insert the code below

For example: Or
 * yields: "" (the current Wikipedia article's title will be used as the link's shown text)

For example:
 * yields: ""

2. If it is a book or a music, then the URL should be like (or   in place of  ). In a Wikipedia article you may insert the code below ， [Type] could be "book" or "music" [Link text] could be omitted, if so, the current Wikipedia article's title will be used For example:
 * yields: ""
 * yields: "" (the current Wikipedia article's title will be used as the link's shown text)

3. If it is a page of other type:

type: Type of the Douban webpage, or the  in the URL  All possible values: example: movie, game, subject, location/drama, etc.
 * Movie, book or music (all of which have URL like ), use 'movie', 'book' or 'music'
 * Page with URL like, use   (\"/\" is allowed)",

Parameters
{	"description": "To generate a link to a Douban webpage", "params": { "id": { "label": "ID", "description": "ID, that is the  in the URL  ", "example": "1292052", "type": "number", "aliases": [ "1 (or the first anonymous parameter)" ],			"required": true },		"title": { "label": "Link text", "description": "Text that is shown by the link", "example": "The Shawshank Redemption", "type": "string", "default": "The current Wikipedia article (or page of other type)'s title", "aliases": [ "2 (or the second anonymous parameter)" ]		},		"type": { "label": "Type", "description": "Type of the Douban webpage (see above)", "example": "\"movie\", \"game\", \"subject\", \"location/drama\", etc.", "type": "string", "default": "movie", "aliases": [ "3 (or the third anonymous parameter)" ]		}	},	"paramOrder": [ "id", "title", "type" ] }