Difference between revisions of "Template:BBC programme/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update usage, examples, category links, and TemplateData)
imported>WOSlinker
(fix code tag)
Line 21: Line 21:
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}}}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}}}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | title= ''TITLE'' }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | title= ''TITLE'' }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | title= ''TITLE'' | description= ''DESCRIPTION'' }}</code></code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | title= ''TITLE'' | description= ''DESCRIPTION'' }}</code>
  
 
The template has the following optional parameters:
 
The template has the following optional parameters:

Revision as of 12:06, 27 August 2019

Template:Uses Wikidata Template:Tracks Wikidata

This template displays an external link to the BBC Programmes page at BBC Online for a BBC television or radio programme. It is intended for use in the external links section of an article.

Usage

Unnamed parameters
{{BBC programme | ID }}
{{BBC programme | ID | TITLE }}
{{BBC programme | ID | TITLE | DESCRIPTION }}
Named parameters
{{BBC programme | id= ID }}
{{BBC programme | id= ID | title= TITLE }}
{{BBC programme | id= ID | title= TITLE | description= DESCRIPTION }}
Using Wikidata property Template:Property
{{BBC programme}}
{{BBC programme | title= TITLE }}
{{BBC programme | title= TITLE | description= DESCRIPTION }}

The template has the following optional parameters:

Parameter Notes
id Programme id given after https://www.bbc.co.uk/programmes/. For example, the EastEnders entry is at https://www.bbc.co.uk/programmes/b006m86d and the id is b006m86d.
title Programme name, for the above example this would be EastEnders. The title is automatically formatted.
description Additional description

Examples

One parameter
* {{BBC programme | b006m86d }}
* {{BBC programme |id= b006m86d }}
Two parameters
* {{BBC programme | b006m86d | EastEnders }}
* {{BBC programme | id= b006m86d | title= EastEnders }}
Three parameters
* {{BBC programme | b006m86d | EastEnders | (British TV series) }}
* {{BBC programme | id= b006m86d | title= EastEnders | description= (British TV series) }}
No ID in template or Wikidata
* {{BBC programme}}

Tracking categories

ID parameter exists
ID parameter does not exist

See also

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for BBC programme

This template displays an external link to the BBC Programmes page at BBC Online for a BBC television or radio programme. It is intended for use in the external links section of an article.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Programme identifierid 1

The "id" parameter (or unnamed parameter "1") should contain the identifier (ID) portion of the URL. Example: b006m86d is the ID portion of https://www.bbc.co.uk/programmes/b006m86d. This parameter is optional if Wikidata property P827 exists, but required if not.

Default
Wikidata property P827
Example
b006m86d
Stringoptional
Programme titletitle 2

The "title" parameter (or unnamed parameter "2") may be used to specify the title of the programme. 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.

Default
{{PAGENAMEBASE}}
Example
EastEnders
Stringoptional
Programme descriptiondescription 3

The "description" parameter (or unnamed parameter "3") may be used to add a description of the programme. It is displayed in a non-italic font.

Stringoptional