Template:BBC episode/doc

This template displays an external link to the BBC programme episode page at BBC Online for a BBC television or radio episode.

There are some specific rules about it's usage.
 * It is not a general BBC linking template. Use a normal external URL link, not this template.
 * It can only be used on the main article about a single episode, not related articles like the main programme article, "List of" articles, character articles etc.
 * Where an article covers more than one episode, do not use this template for any of the episode links.
 * It should only be used in the external links section of an article and should not be used inside a reference.
 * For programme articles use BBC programme instead.

All other uses (or multiple uses in the same article) will result in conflicts between Wikipedia and Wikidata, causing the article to appear in the error categories below.

Usage
This template is for linking to the BBC Programme episodes page at BBC Online for BBC television and radio episodes. It should appear in the External links section.

The template has the following parameters:

Example
The following usage:

Produces:

Tracking categories

 * ID parameter exists
 * ID parameter does not exist
 * ID parameter does not exist
 * ID parameter does not exist
 * ID parameter does not exist

TemplateData
{	"params": { "id": { "label": "Episode identifier", "description": "The \"id\" parameter should contain the identifier (ID) portion of the URL. Example: b007b9g6 is the ID portion of https://www.bbc.co.uk/programmes/b007b9g6", "example": "b007b9g6", "type": "string", "required": true },		"episode": { "label": "Episode title", "description": "The \"title\" parameter may be used to specify the title of the episode. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(TV series)\". It is displayed in an italic font.", "type": "string", "default": "" },		"qid": { "description": "QID of a Wikidata page to pull id from other than the page the template is used on ", "default": "Page used on" }	},	"description": "This template is for linking to the BBC Programmes page at BBC Online for BBC television and radio episodes. It should appear in the External links section. " }