This is a documentation subpage for Template:BBC episode. It may contain usage information, categories and other content that is not part of the original template page. |
- BBC programme ID (P827) (see uses)
This template uses Lua: |
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
editThis 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.
* {{BBC episode|id=|episode=}}
The template has the following parameters:
Parameter | Notes |
---|---|
id | Episode id given after https://www.bbc.co.uk/programmes/. For example, the "Time On Our Hands" entry is at https://www.bbc.co.uk/programmes/b007b9g6 and the id is b007b9g6. |
episode | Episode title, for the above example this would be Time On Our Hands. The title is automatically formatted. |
Example
editThe following usage:
* {{BBC episode|id=b007b9g6|episode=Time On Our Hands}}
Produces:
Tracking categories
edit- ID parameter exists
- Category:BBC episode ID not in Wikidata (1)
- Category:BBC episode ID different from Wikidata (0)
- Category:BBC episode ID same as Wikidata (228)
- ID parameter does not exist
- Category:BBC episode template missing ID and not in Wikidata (0)
- Category:BBC episode template using Wikidata (2)
See also
edit- {{BBC programme}} – for links to programmes on the BBC Programmes page
- {{BBC Online}} – for general links to BBC Online pages
TemplateData
editTemplateData for BBC episode
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Episode identifier | id | 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
| String | required |
Episode title | episode | 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.
| String | optional |
qid | qid | QID of a Wikidata page to pull id from other than the page the template is used on
| Unknown | optional |