Template:TV Guide show/doc: Difference between revisions
Appearance
Content deleted Content added
{{Wikidata property|P3804}} |
updates for use of Wikidata |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> |
|||
{{ |
{{Uses Wikidata|P3804}} |
||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> |
|||
{{Lua|Module:EditAtWikidata}} |
|||
__TOC__ |
|||
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a page for a television show at the ''[[TV Guide]]'' website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article. |
|||
== Usage == |
== Usage == |
||
Unnamed parameters: |
|||
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }} |
|||
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>TITLE</var> }} |
|||
Named parameters: |
|||
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> }} |
|||
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | title{{=}} <var>TITLE</var> }} |
|||
Using [[Wikidata]] property {{Property|3804}}: |
|||
: {{tlcw|{{BASEPAGENAME}} }} |
|||
: {{tlcw|{{BASEPAGENAME}} | title{{=}} <var>TITLE</var> }} |
|||
== Instructions == |
|||
# Go to [http://www.tvguide.com TVGuide.com] and search for the show you want. |
# Go to [http://www.tvguide.com TVGuide.com] and search for the show you want. |
||
# Click on the correct link to go to the show's page. Be sure you're getting the right show. |
# Click on the correct link to go to the show's page. Be sure you're getting the right show. |
||
# The page [[URL]] should look like: <blockquote><code><nowiki> |
# The page [[URL]] should look like: <blockquote><code><nowiki>https://www.tvguide.com/tvshows/show-title/</nowiki><span style="background-color: #FFFF88">#######</span></code></blockquote> where "#######" indicates a number. |
||
# Add this text to the '''External links''' section: |
# Add this text to the '''External links''' section: |
||
::<code><nowiki>{{TV Guide |####### |Title }}</nowiki></code> |
::<code><nowiki>{{TV Guide | ####### | Title }}</nowiki></code> |
||
:where <blockquote>"<code>#######</code>" is the number you've copied, and <br>"<code>Title</code>" is the show's |
:where <blockquote>"<code>#######</code>" is the number you've copied, and <br>"<code>Title</code>" is the television show's title (default is article name.)</blockquote> |
||
==Examples== |
==Examples== |
||
From <code>http://www.tvguide.com/tvshow/title/100320</code> and <br><code>http://www.tvguide.com/tvshow/title/281127</code> we can make: |
|||
=== ID in template === |
|||
<blockquote><code><nowiki>{{TV Guide show |100320 |NCIS }}</nowiki></code><br><code><nowiki>{{TV Guide show |281127 |Ugly Betty}}</nowiki></code></blockquote> |
|||
''Usage in the article [[NCIS (TV series)]], with article name as [[link text]]:'' |
|||
which generates: <blockquote>{{TV Guide show |100320 |NCIS }}<br>{{TV Guide show|281127|Ugly Betty}}</blockquote> |
|||
: {{tlcw|a=1|{{BASEPAGENAME}} | 100320 }} |
|||
: {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} 100320 }} |
|||
''Usage with name parameter as link text:'' |
|||
: {{tlcw|a=1|{{BASEPAGENAME}} | 100320 | NCIS }} |
|||
: {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} 100320 | name{{=}} NCIS }} |
|||
''Output:'' |
|||
:* {{{{BASEPAGENAME}} | 100320 | NCIS }} |
|||
''URLs:'' |
|||
: <kbd>[http://www.tvguide.com/detail/tv-show.aspx?tvobjectid=100320 http://www.tvguide.com/detail/tv-show.aspx?tvobjectid={{Hilite|100320}}]</kbd> |
|||
: <kbd>[https://www.tvguide.com/tvshows/100320/ https://www.tvguide.com/tvshows/{{Hilite|100320}}/]</kbd> |
|||
: <kbd>[https://www.tvguide.com/tvshows/ncis/100320/ https://www.tvguide.com/tvshows/ncis/{{Hilite|100320}}/]</kbd> |
|||
=== ID in Wikidata === |
|||
''Usage in the article [[Ugly Betty]]:'' |
|||
: {{tlcw|a=1|{{BASEPAGENAME}} }} |
|||
: {{tlcw|a=1|{{BASEPAGENAME}} | name{{=}} Ugly Betty }} |
|||
''Output:'' |
|||
:* {{{{BASEPAGENAME}} | 281127 | Ugly Betty }} [[File:Blue pencil.svg |frameless |text-top |10px |alt=Edit this at Wikidata |link=https://www.wikidata.org/wiki/Q276528#P3804 |Edit this at Wikidata]] |
|||
''URLs:'' |
|||
: <kbd>[http://www.tvguide.com/detail/tv-show.aspx?tvobjectid=281127 http://www.tvguide.com/detail/tv-show.aspx?tvobjectid={{Hilite|281127}}]</kbd> |
|||
: <kbd>[https://www.tvguide.com/tvshows/281127/ https://www.tvguide.com/tvshows/{{Hilite|281127}}/]</kbd> |
|||
: <kbd>[https://www.tvguide.com/tvshows/ugly-betty/281127/ https://www.tvguide.com/tvshows/ugly-betty/{{Hilite|281127}}/]</kbd> |
|||
=== No ID in template or Wikidata === |
|||
''Usage:'' |
|||
: {{tlcw|a=1|{{BASEPAGENAME}} }} |
|||
''Output:'' |
|||
:* {{{{BASEPAGENAME}} }} |
|||
== See also == |
== See also == |
||
*{{tl|TV Guide person}} |
* {{tl|TV Guide person}} |
||
*[[User talk:The Bipolar Anon-IP Gnome/Selected filmography#Examples|Selected filmography]] … examples of other templates |
* [[User talk:The Bipolar Anon-IP Gnome/Selected filmography#Examples|Selected filmography]] … examples of other templates |
||
<includeonly> |
<includeonly>{{Sandbox other|| |
||
<!-- Categories below this line and interwikis at Wikidata --> |
|||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> |
|||
[[Category:Television external link templates]] |
[[Category:Television external link templates]] |
||
[[Category:External link templates using Wikidata]] |
|||
⚫ | |||
[[ko:틀:TV 가이드 쇼]] |
|||
[[ro:Format:TV Guide]] |
|||
[[zh:Template:TV Guide]] |
|||
⚫ |
Revision as of 19:30, 30 March 2019
This is a documentation subpage for Template:TV Guide show. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses the Wikidata property:
This template uses Lua: |
Template:TV Guide show displays an external link to a page for a television show at the TV Guide website. It is intended for use in the external links section of an article.
Usage
Unnamed parameters:
{{TV Guide show | ID }}
{{TV Guide show | ID | TITLE }}
Named parameters:
{{TV Guide show | id= ID }}
{{TV Guide show | id= ID | title= TITLE }}
Using Wikidata property TV Guide show ID (former scheme) (P3804):
{{TV Guide show}}
{{TV Guide show | title= TITLE }}
Instructions
- Go to TVGuide.com and search for the show you want.
- Click on the correct link to go to the show's page. Be sure you're getting the right show.
- The page URL should look like:
where "#######" indicates a number.https://www.tvguide.com/tvshows/show-title/#######
- Add this text to the External links section:
{{TV Guide | ####### | Title }}
- where
"
#######
" is the number you've copied, and
"Title
" is the television show's title (default is article name.)
Examples
ID in template
Usage in the article NCIS (TV series), with article name as link text:
* {{TV Guide show | 100320 }}
* {{TV Guide show | id= 100320 }}
Usage with name parameter as link text:
* {{TV Guide show | 100320 | NCIS }}
* {{TV Guide show | id= 100320 | name= NCIS }}
Output:
URLs:
- http://www.tvguide.com/detail/tv-show.aspx?tvobjectid=100320
- https://www.tvguide.com/tvshows/100320/
- https://www.tvguide.com/tvshows/ncis/100320/
ID in Wikidata
Usage in the article Ugly Betty:
* {{TV Guide show}}
* {{TV Guide show | name= Ugly Betty }}
Output:
URLs:
- http://www.tvguide.com/detail/tv-show.aspx?tvobjectid=281127
- https://www.tvguide.com/tvshows/281127/
- https://www.tvguide.com/tvshows/ugly-betty/281127/
No ID in template or Wikidata
Usage:
* {{TV Guide show}}
Output:
- {{TV Guide show}} template missing ID and not present in Wikidata.
See also
- {{TV Guide person}}
- Selected filmography … examples of other templates