Template:TV.com show/doc: Difference between revisions

From Seeds of the Word, the encyclopedia of the influence of the Gospel on culture
Content deleted Content added
m 1 revision imported
No edit summary
 
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{Uses Wikidata|P2638}}
{{Uses Wikidata|P1559}}
{{Tracks Wikidata|P2638}}
{{Tracks Wikidata|P1559}}
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}


Line 20: Line 20:
: <code>{{<nowiki/>{{BASEPAGENAME}} | id= <var>ID</var> | title= <var>TITLE</var> | type= web }}</code>
: <code>{{<nowiki/>{{BASEPAGENAME}} | id= <var>ID</var> | title= <var>TITLE</var> | type= web }}</code>


Using [[Wikidata]] property {{Property|2638}}:
Using [[Wikidata]] property {{Property|1559}}:
: <code>{{<nowiki/>{{BASEPAGENAME}}}}</code>
: <code>{{<nowiki/>{{BASEPAGENAME}}}}</code>
: <code>{{<nowiki/>{{BASEPAGENAME}} | title= <var>TITLE</var> }}</code>
: <code>{{<nowiki/>{{BASEPAGENAME}} | title= <var>TITLE</var> }}</code>
Line 71: Line 71:
"type": "string",
"type": "string",
"required": false,
"required": false,
"default": "Wikidata property P2638"
"default": "Wikidata property P1559"
},
},
"title": {
"title": {

Latest revision as of 21:13, September 22, 2020

Template:TV.com show displays an external link to a television show's web page at TV.com. It is intended for use in the external links section of an article.

Usage

Unnamed parameters (for ID and TITLE):

{{TV.com show | ID }}
{{TV.com show | ID | type= web }}
{{TV.com show | ID | TITLE }}
{{TV.com show | ID | TITLE | type= web }}

Named parameters:

{{TV.com show | id= ID }}
{{TV.com show | id= ID | type= web }}
{{TV.com show | id= ID | title= TITLE }}
{{TV.com show | id= ID | title= TITLE | type= web }}

Using Wikidata property TV.com ID (P1559):

{{TV.com show}}
{{TV.com show | title= TITLE }}

The second parameter ("title") is optional; if it is not specified, the template will use the article's title instead.

The default setting is for television shows, which use a URL in the form http://www.tv.com/shows/show-name/.

Web shows use a URL of the form http://www.tv.com/web/show-name/. To get the correct link, use |type=web

Examples

Unnamed parameters

URL:

http://www.tv.com/shows/firefly/

Usage:

* {{TV.com show | firefly | Firefly }}

Output:

Named parameters

URL:

http://www.tv.com/web/a-day-in-the-life-hulu/

Usage:

* {{TV.com show | type= web | id= a-day-in-the-life-hulu | title= A Day in the Life }}

Output:

No ID in template or Wikidata

Usage:

* {{TV.com show}}

Output:

  • {{TV.com show}} template missing ID and not present in Wikidata.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for TV.com show

This template displays an external link to a television show's web page at TV.com. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The "id" parameter (or unnamed parameter "1") may be used to specify the ID portion of the URL. Examples: firefly is the ID in http://www.tv.com/shows/firefly/ and a-day-in-the-life-hulu in http://www.tv.com/web/a-day-in-the-life-hulu/. This parameter is optional if Wikidata property P2638 exists, but required if not.

Default
Wikidata property P1559
Stringoptional
Titletitle name 2

The "title" parameter (or "name", or unnamed parameter "2") may be used to specify the show's name or title, which is displayed in italic type in the link text. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation.

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

template with ID
template missing ID

See also