Difference between revisions of "Template:Daum movie/doc"
imported>Zyxw (Hide link to template that does not exist. Fix example.) |
imported>St3095 |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 20: | Line 20: | ||
== Instructions == | == Instructions == | ||
− | # Search on [http://www.http://movie.daum.net Daum] for the title you want. On the Wikipedia page of the film concerned this can often be done with the link produced by previewing <code><nowiki>{{Daum movie}}</nowiki></code> (this may not work if the page title is more than just the film title). | + | # Search on [http://www.http://movie.daum.net Daum] for the title you want. On the Wikipedia page of the film concerned this can often be done with the link produced by previewing <span class="nowrap"><code><nowiki>{{Daum movie}}</nowiki></code></span> (this may not work if the page title is more than just the film title). |
# Click on the correct link to go to the movie'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 movie'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 37: | ||
=== Parameter: id (1) === | === Parameter: id (1) === | ||
− | # Search on [http://www.http://movie.daum.net Daum] for the title 늑대소년 (''A Werewolf Boy''). This can also be done on the Wikipedia page for [[A Werewolf Boy]] by previewing <code><nowiki>{{Daum movie}}</nowiki></code> and clicking that link (http://movie.daum.net/search/main?returnUrl=http%3A%2F%2Fmovie.daum.net%2Ftv%2Fmain%3FtvProgramId%3D74368&searchText=%EB%8A%91%EB%8C%80%EC%86%8C%EB%85%84#searchType=movie&page=1&sortType=acc). | + | # Search on [http://www.http://movie.daum.net Daum] for the title 늑대소년 (''A Werewolf Boy''). This can also be done on the Wikipedia page for [[A Werewolf Boy]] by previewing <span class="nowrap"><code><nowiki>{{Daum movie}}</nowiki></code></span> and clicking that link (http://movie.daum.net/search/main?returnUrl=http%3A%2F%2Fmovie.daum.net%2Ftv%2Fmain%3FtvProgramId%3D74368&searchText=%EB%8A%91%EB%8C%80%EC%86%8C%EB%85%84#searchType=movie&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/moviedb/main?movieId=</nowiki>{{Hilite|67118}}</code> | #: <code><nowiki>http://movie.daum.net/moviedb/main?movieId=</nowiki>{{Hilite|67118}}</code> | ||
# Copy <code>67118</code> and add it to the template. | # Copy <code>67118</code> and add it to the template. | ||
− | Example: <code><nowiki>{{Daum movie | | + | Example: <code><nowiki>{{Daum movie | 67118 }}</nowiki></code> |
− | : Result: {{Daum movie | | + | : Result: {{Daum movie | 67118 }} |
− | Example: <code><nowiki>{{Daum movie |id= | + | Example: <code><nowiki>{{Daum movie |id= 67118 }}</nowiki></code> |
− | : Result: {{Daum movie | id= | + | : Result: {{Daum movie | id= 67118 }} |
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 62: | Line 62: | ||
Example: <code><nowiki>{{Daum movie | id= 67118 | title= A Werewolf Boy | description= (2012 South Korean Movie) }}</nowiki></code> | Example: <code><nowiki>{{Daum movie | id= 67118 | title= A Werewolf Boy | description= (2012 South Korean Movie) }}</nowiki></code> | ||
− | : Result: {{Daum movie | id= 67118 | title= A Werewolf Boy | description= (2012 South Korean Movie) }} | + | : Result: {{Daum movie | id= 67118 | title= A Werewolf Boy | description= (2012 South Korean Movie) }} |
==TemplateData== | ==TemplateData== | ||
Line 73: | Line 73: | ||
"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: 67118 is the ID portion of http://movie.daum.net/moviedb/main?movieId=67118.", |
"type": "number", | "type": "number", | ||
"required": true | "required": true | ||
}, | }, | ||
− | " | + | "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 movie or film. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(film)\". 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 96: | ||
</templatedata> | </templatedata> | ||
− | <includeonly>{{ | + | <includeonly>{{Sandbox other|| |
[[Category:Film external link templates]] | [[Category:Film external link templates]] | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 06:44, 4 June 2020
![]() | This is a documentation subpage for Template:Daum movie. It contains usage information, categories and other content that is not part of the original template page. |
This template is used to generate an external link to a web page at the Daum. It should be used exclusively for movies.
- For a TV series, use Template:Daum TV series.
Contents
Usage
Unnamed parameters:
{{Daum movie | ID }}
{{Daum movie | ID | TITLE }}
{{Daum movie | ID | TITLE | DESCRIPTION }}
Named parameters:
{{Daum movie | id= ID }}
{{Daum movie | id= ID | title= TITLE }}
{{Daum movie | id= ID | title= TITLE | description= DESCRIPTION }}
Instructions
- Search on Daum for the title you want. On the Wikipedia page of the film concerned this can often be done with the link produced by previewing
{{Daum movie}}
(this may not work if the page title is more than just the film title). - Click on the correct link to go to the movie'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/moviedb/main?movieId=####
- where
####
indicates a number.
- Copy the ID number that appears after
.net/moviedb/main?movieId=
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 movie | #### | Film Name }}
- or
{{Daum movie | id= #### | title= Film Name }}
- where
####
is the number you've copied, andFilm Name
is the title of the movie or show.
- (Optional) If you want to add an additional description to distinguish this film/show from another that may be on the same page with the same name, use the following text:
{{Daum movie | #### | Title | Description }}
- where
#######
is the number you've copied,Title
is the title of the movie or show, andDescription
is the description of the show, in parentheses.
Examples
Parameter: id (1)
- Search on Daum for the title 늑대소년 (A Werewolf Boy). This can also be done on the Wikipedia page for A Werewolf Boy by previewing
{{Daum movie}}
and clicking that link (http://movie.daum.net/search/main?returnUrl=http%3A%2F%2Fmovie.daum.net%2Ftv%2Fmain%3FtvProgramId%3D74368&searchText=%EB%8A%91%EB%8C%80%EC%86%8C%EB%85%84#searchType=movie&page=1&sortType=acc). - On the Daum search results page, click the link for "늑대소년". That Daum page URL is:
http://movie.daum.net/moviedb/main?movieId=67118
- Copy
67118
and add it to the template.
Example: {{Daum movie | 67118 }}
- Result: Template:PAGENAMEBASE at Daum (in Korean)
Example: {{Daum movie |id= 67118 }}
- Result: Template:PAGENAMEBASE at Daum (in Korean)
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 movie | 67118 | A Werewolf Boy }}
- Result: A Werewolf Boy at Daum (in Korean)
Example: {{Daum movie | id= 67118 | title= A Werewolf Boy }}
- Result: A Werewolf Boy at Daum (in Korean)
Parameter: description (3)
Example: {{Daum movie | 67118 | A Werewolf Boy | (2012 South Korean Movie) }}
- Result: A Werewolf Boy (2012 South Korean Movie) at Daum (in Korean)
Example: {{Daum movie | id= 67118 | title= A Werewolf Boy | description= (2012 South Korean Movie) }}
- Result: A Werewolf Boy (2012 South Korean Movie) at Daum (in Korean)
TemplateData
TemplateData for Daum movie
This template is used to generate an external link to a web page for a movie 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: 67118 is the ID portion of http://movie.daum.net/moviedb/main?movieId=67118. | Number | required |
Title | title 2 | The "title" parameter (or unnamed parameter "2") may be used to specify the title of the movie or film. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(film)". 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 |