Template:TV.com show: Difference between revisions
Johnrdorazio (talk | contribs) m 1 revision imported |
Johnrdorazio (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
| {{{2|{{{name|{{{title}}}}}}}}} |
| {{{2|{{{name|{{{title}}}}}}}}} |
||
| {{PAGENAMEBASE}} |
| {{PAGENAMEBASE}} |
||
}}''] at [[TV.com]]{{#iferror: {{#expr: 0 + {{{1|{{{id}}}}}} }} |
}}''] at [[wikipedia:TV.com|TV.com]]{{#iferror: {{#expr: 0 + {{{1|{{{id}}}}}} }} |
||
| <!--non-numeric id--> |
| <!--non-numeric id--> |
||
| [[Category:TV.com template using numeric id]] |
| [[Category:TV.com template using numeric id]] |
||
}}{{#if: {{#titleparts:{{{1|{{{id|}}}}}}|1|2}} |
}}{{#if: {{#titleparts:{{{1|{{{id|}}}}}}|1|2}} |
||
| [[Category:TV.com template with unexpected input]] |
| [[Category:TV.com template with unexpected input]] |
||
}}{{WikidataCheck |property= |
}}{{WikidataCheck |property=P1559 |value={{#ifeq: {{{type|}}} | web |
||
| web |
| web |
||
| shows |
| shows |
||
Line 19: | Line 19: | ||
}} |category=TV.com template with ID |namespaces=0 |nocatsame=1}} |
}} |category=TV.com template with ID |namespaces=0 |nocatsame=1}} |
||
| {{#if: {{#property: |
| {{#if: {{#property:P1559}} |
||
| [http://www.tv.com/{{First word|1={{#property: |
| [http://www.tv.com/{{First word|1={{#property:P1559}}|sep=,}}/ ''{{#if: {{{2|{{{name|{{{title|}}}}}}}}} |
||
| {{{2|{{{name|{{{title}}}}}}}}} |
| {{{2|{{{name|{{{title}}}}}}}}} |
||
| {{PAGENAMEBASE}} |
| {{PAGENAMEBASE}} |
||
}}''] at [[TV.com]]{{EditAtWikidata|pid= |
}}''] at [[TV.com]]{{EditAtWikidata|pid=P1559}} |
||
| <span class="error">{{[[Template:TV.com show|TV.com show]]}} template missing ID and not present in Wikidata.</span>{{Main other|[[Category:TV.com template missing ID and not in Wikidata]]}} |
| <span class="error">{{[[Template:TV.com show|TV.com show]]}} template missing ID and not present in Wikidata.</span>{{Main other|[[Category:TV.com template missing ID and not in Wikidata]]}} |
Latest revision as of 21:12, September 22, 2020
- TV.com ID (P1559) (see uses)
This template uses Lua: |
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
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 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.
| String | optional |
Title | title 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.
| String | optional |
Tracking categories
- template with ID
- Category:TV.com template with ID different from Wikidata (0)
- Category:TV.com template with ID not in Wikidata (0)
- Category:TV.com template using numeric id (0)
- Category:TV.com template with unexpected input (0)
- template missing ID
See also
- {{TV.com anthology}}
- {{TV.com episode}}
- {{TV.com episodes}}
- {{TV.com movie}}