Difference between revisions of "Template:Daum TV series/doc"
imported>Vanisaac m (→Tracking categories: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
|||
| (5 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| + | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> | ||
{{Uses Wikidata|P4270}} | {{Uses Wikidata|P4270}} | ||
{{Tracks Wikidata|P4270}} | {{Tracks Wikidata|P4270}} | ||
| + | {{Lua|Module:EditAtWikidata|Module:WikidataCheck}} | ||
This template is used to generate an external link to a web page at the [[Daum (web portal)|Daum]]. It should be used '''exclusively for ''TV series'''''. | This template is used to generate an external link to a web page at the [[Daum (web portal)|Daum]]. It should be used '''exclusively for ''TV series'''''. | ||
: ''For a movies, use [[Template:Daum movie]].'' | : ''For a movies, use [[Template:Daum movie]].'' | ||
| − | : ''For a person (actor, actress, etc.), use | + | <!-- |
| + | : ''For a person (actor, actress, etc.), use [[Template:Daum name]].'' | ||
| + | --> | ||
== Usage == | == Usage == | ||
| Line 18: | Line 22: | ||
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | title= ''TITLE'' <nowiki>}}</nowiki></code> | * <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | title= ''TITLE'' <nowiki>}}</nowiki></code> | ||
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | title= ''TITLE'' | description= ''DESCRIPTION'' <nowiki>}}</nowiki></code> | * <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | title= ''TITLE'' | description= ''DESCRIPTION'' <nowiki>}}</nowiki></code> | ||
| + | |||
| + | Using [[Wikidata]] property {{Property|4270}}: | ||
| + | * <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
| + | * <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | title= ''TITLE'' <nowiki>}}</nowiki></code> | ||
| + | * <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | title= ''TITLE'' | description= ''DESCRIPTION'' <nowiki>}}</nowiki></code> | ||
== Instructions == | == Instructions == | ||
| − | # Search on [http://movie.daum.net Daum] for the title you want. On the Wikipedia page of the TV series concerned this can often be done with the link produced by previewing <code><nowiki>{{Daum TV series}}</nowiki></code> (this may not work if the page title is more than just the TV series title). | + | # Search on [http://movie.daum.net Daum] for the title you want. On the Wikipedia page of the TV series concerned this can often be done with the link produced by previewing <span class="nowrap"><code><nowiki>{{Daum TV series}}</nowiki></code></span> (this may not work if the page title is more than just the TV series title). |
# Click on the correct link to go to the TV series's page (or whatever you're looking for). Be sure you're getting on the correct title page. | # Click on the correct link to go to the TV series's page (or whatever you're looking for). Be sure you're getting on the correct title page. | ||
# The page [[Uniform resource locator|URL]] should look like this: | # The page [[Uniform resource locator|URL]] should look like this: | ||
| Line 37: | Line 46: | ||
=== Parameter: id (1) === | === Parameter: id (1) === | ||
| − | # Search on [http://movie.daum.net Daum] for the title 시그널 (''Signal''). This can also be done on the Wikipedia page for [[Signal (TV series)|Signal]] by previewing <code><nowiki>{{Daum TV series}}</nowiki></code> and clicking that link (http://movie.daum.net/search/main?returnUrl=http%3A%2F%2Fmovie.daum.net%2Ftv%2Fmain%3FtvProgramId%3D69728&searchText=%EC%8B%9C%EA%B7%B8%EB%84%90#searchType=tv&page=1&sortType=acc). | + | # Search on [http://movie.daum.net Daum] for the title 시그널 (''Signal''). This can also be done on the Wikipedia page for [[Signal (South Korean TV series)|Signal]] by previewing <span class="nowrap"><code><nowiki>{{Daum TV series}}</nowiki></code></span> and clicking that link (http://movie.daum.net/search/main?returnUrl=http%3A%2F%2Fmovie.daum.net%2Ftv%2Fmain%3FtvProgramId%3D69728&searchText=%EC%8B%9C%EA%B7%B8%EB%84%90#searchType=tv&page=1&sortType=acc). |
# On the Daum search results page, click the link for "시그널". That Daum page URL is: | # On the Daum search results page, click the link for "시그널". That Daum page URL is: | ||
#: <code><nowiki>http://movie.daum.net/tv/main?tvProgramId=</nowiki>{{Hilite|69728}}</code> | #: <code><nowiki>http://movie.daum.net/tv/main?tvProgramId=</nowiki>{{Hilite|69728}}</code> | ||
# Copy <code>69728</code> and add it to the template. | # Copy <code>69728</code> and add it to the template. | ||
| − | Example: <code><nowiki>{{Daum TV series | | + | Example: <code><nowiki>{{Daum TV series | 69728 }}</nowiki></code> |
| − | : Result: {{Daum TV series | | + | : Result: {{Daum TV series | 69728 }} |
| − | Example: <code><nowiki>{{Daum TV series |id= | + | Example: <code><nowiki>{{Daum TV series |id= 69728 }}</nowiki></code> |
| − | : Result: {{Daum TV series | id= | + | : Result: {{Daum TV series | id= 69728 }} |
Typically this is a list item in the external links section (even if there is only one link), so you should add "*" in front. | Typically this is a list item in the external links section (even if there is only one link), so you should add "*" in front. | ||
| Line 63: | Line 72: | ||
Example: <code><nowiki>{{Daum TV series | id= 69728 | title= Signal | description= (2016 South Korean TV series) }}</nowiki></code> | Example: <code><nowiki>{{Daum TV series | id= 69728 | title= Signal | description= (2016 South Korean TV series) }}</nowiki></code> | ||
: Result: {{Daum TV series | id= 69728 | title= Signal | description= (2016 South Korean TV series) }} | : Result: {{Daum TV series | id= 69728 | title= Signal | description= (2016 South Korean TV series) }} | ||
| + | |||
| + | === No ID in template or Wikidata === | ||
| + | Example: <code><nowiki>{{Daum TV series}}</nowiki></code> | ||
| + | : Result: {{Daum TV series}} | ||
==TemplateData== | ==TemplateData== | ||
| Line 68: | Line 81: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| − | "description": "This template is used to generate an external link to a web page for a TV series in the Daum | + | "description": "This template is used to generate an external link to a web page for a TV series in the Daum database.", |
"params": { | "params": { | ||
"id": { | "id": { | ||
"label": "ID", | "label": "ID", | ||
"aliases": [ "1" ], | "aliases": [ "1" ], | ||
| − | "description": "The | + | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 69728 is the ID portion of http://movie.daum.net/tv/main?tvProgramId=69728. This parameter is optional if Wikidata property P4270 exists, but required if not.", |
"type": "number", | "type": "number", | ||
| − | "required": | + | "required": false, |
| + | "default": "Wikidata property P4270" | ||
}, | }, | ||
| − | " | + | "title": { |
| − | "label": " | + | "label": "Title", |
"aliases": ["2"], | "aliases": ["2"], | ||
| − | "description": " | + | "description": "The \"title\" parameter (or unnamed parameter \"2\") may be used to specify the title of the TV series. 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.", |
"type": "string", | "type": "string", | ||
| − | "required": false | + | "required": false, |
| + | "default": "{{PAGENAMEBASE}}" | ||
| + | |||
}, | }, | ||
"description": { | "description": { | ||
"label": "Description", | "label": "Description", | ||
| − | "description": " | + | "aliases" : [ "3" ], |
| + | "description": "The \"description\" parameter (or unnamed parameter \"3\") may be used to add a description of the production. It is displayed in a non-italic font.", | ||
"type": "string", | "type": "string", | ||
| − | "required": false | + | "required": false |
| − | |||
} | } | ||
} | } | ||
| Line 95: | Line 111: | ||
</templatedata> | </templatedata> | ||
| − | == Tracking | + | == Tracking categories == |
| + | ; ID parameter exists | ||
* {{clc|Daum TV series ID not in Wikidata}} | * {{clc|Daum TV series ID not in Wikidata}} | ||
* {{clc|Daum TV series ID different from Wikidata}} | * {{clc|Daum TV series ID different from Wikidata}} | ||
* {{clc|Daum TV series ID same as Wikidata}} | * {{clc|Daum TV series ID same as Wikidata}} | ||
| − | * {{clc|Daum TV series template | + | ; ID parameter does not exist |
| + | * {{clc|Daum TV series template missing ID and not in Wikidata}} | ||
| − | <includeonly>{{ | + | <includeonly>{{Sandbox other|| |
[[Category:Television external link templates]] | [[Category:Television external link templates]] | ||
| − | [[Category: | + | [[Category:External link templates using Wikidata]] |
[[Category:Templates that add a tracking category]] | [[Category:Templates that add a tracking category]] | ||
| − | |||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 22:50, 24 April 2020
| This is a documentation subpage for Template:Daum TV series. It contains usage information, categories and other content that is not part of the original template page. |
Template:Uses Wikidata Template:Tracks Wikidata
| This template uses Lua: |
This template is used to generate an external link to a web page at the Daum. It should be used exclusively for TV series.
- For a movies, use Template:Daum movie.
Contents
Usage
Unnamed parameters:
{{Daum TV series | ID }}{{Daum TV series | ID | TITLE }}{{Daum TV series | ID | TITLE | DESCRIPTION }}
Named parameters:
{{Daum TV series | id= ID }}{{Daum TV series | id= ID | title= TITLE }}{{Daum TV series | id= ID | title= TITLE | description= DESCRIPTION }}
Using Wikidata property Template:Property:
{{Daum TV series}}{{Daum TV series | title= TITLE }}{{Daum TV series | title= TITLE | description= DESCRIPTION }}
Instructions
- Search on Daum for the title you want. On the Wikipedia page of the TV series concerned this can often be done with the link produced by previewing
{{Daum TV series}}(this may not work if the page title is more than just the TV series title). - Click on the correct link to go to the TV series's page (or whatever you're looking for). Be sure you're getting on the correct title page.
- The page URL should look like this:
http://movie.daum.net/tv/main?tvProgramId=####- where
####indicates a number.
- Copy the ID number that appears after
.net/tv/main?tvProgramId=in the URL. The leading zeros in the number are not needed, but are recommended for Linksearch uniformity. - Add the following to the external links section of the article:
{{Daum TV series | #### | TV series Name }}- or
{{Daum TV series | id= #### | title= TV series Name }} - where
####is the number you've copied, andTV series Nameis the title of the TV series or show.
- (Optional) If you want to add an additional description to distinguish this TV series/show from another that may be on the same page with the same name, use the following text:
{{Daum TV series | #### | Title | Description }}- where
#######is the number you've copied,Titleis the title of the TV series or show, andDescriptionis the description of the show, in parentheses.
Examples
Parameter: id (1)
- Search on Daum for the title 시그널 (Signal). This can also be done on the Wikipedia page for Signal by previewing
{{Daum TV series}}and clicking that link (http://movie.daum.net/search/main?returnUrl=http%3A%2F%2Fmovie.daum.net%2Ftv%2Fmain%3FtvProgramId%3D69728&searchText=%EC%8B%9C%EA%B7%B8%EB%84%90#searchType=tv&page=1&sortType=acc). - On the Daum search results page, click the link for "시그널". That Daum page URL is:
http://movie.daum.net/tv/main?tvProgramId=69728
- Copy
69728and add it to the template.
Example: {{Daum TV series | 69728 }}
- Result: Template:PAGENAMEBASE at Daum (in Korean)Script error: No such module "EditAtWikidata".Template:WikidataCheck
Example: {{Daum TV series |id= 69728 }}
- Result: Template:PAGENAMEBASE at Daum (in Korean)Script error: No such module "EditAtWikidata".Template:WikidataCheck
Typically this is a list item in the external links section (even if there is only one link), so you should add "*" in front.
Parameter: title (2)
Example: {{Daum TV series | 69728 | Signal }}
- Result: Signal at Daum (in Korean)Script error: No such module "EditAtWikidata".Template:WikidataCheck
Example: {{Daum TV series | id= 69728 | title= Signal }}
- Result: Signal at Daum (in Korean)Script error: No such module "EditAtWikidata".Template:WikidataCheck
Parameter: description (3)
Example: {{Daum TV series | 69728 | Signal | (2016 South Korean TV series) }}
- Result: Signal (2016 South Korean TV series) at Daum (in Korean)Script error: No such module "EditAtWikidata".Template:WikidataCheck
Example: {{Daum TV series | id= 69728 | title= Signal | description= (2016 South Korean TV series) }}
- Result: Signal (2016 South Korean TV series) at Daum (in Korean)Script error: No such module "EditAtWikidata".Template:WikidataCheck
No ID in template or Wikidata
Example: {{Daum TV series}}
- Result: Template:PAGENAMEBASE at Daum (in Korean)Script error: No such module "EditAtWikidata".Template:WikidataCheck
TemplateData
TemplateData for Daum TV series
This template is used to generate an external link to a web page for a TV series in the Daum database.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| ID | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 69728 is the ID portion of http://movie.daum.net/tv/main?tvProgramId=69728. This parameter is optional if Wikidata property P4270 exists, but required if not.
| Number | optional |
| Title | title 2 | The "title" parameter (or unnamed parameter "2") may be used to specify the title of the TV series. 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 |
| Description | description 3 | The "description" parameter (or unnamed parameter "3") may be used to add a description of the production. It is displayed in a non-italic font. | String | optional |
Tracking categories
- ID parameter exists
- Category:Daum TV series ID not in Wikidata (0)
- Category:Daum TV series ID different from Wikidata (0)
- Category:Daum TV series ID same as Wikidata (0)
- ID parameter does not exist