Difference between revisions of "Template:Daum movie/doc"

From blackwiki
Jump to navigation Jump to search
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 | 87636 }}</nowiki></code>
+
Example: <code><nowiki>{{Daum movie | 67118 }}</nowiki></code>
: Result: {{Daum movie | 87636 }}
+
: Result: {{Daum movie | 67118 }}
  
Example: <code><nowiki>{{Daum movie |id= 62982 }}</nowiki></code>
+
Example: <code><nowiki>{{Daum movie |id= 67118 }}</nowiki></code>
: Result: {{Daum movie | id= 62982 }}
+
: 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) }}xx
+
: 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 Daum movie ID for the target page.",
+
"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
 
},
 
},
"name": {
+
"title": {
"label": "Name",
+
"label": "Title",
 
"aliases": ["2"],
 
"aliases": ["2"],
"description": "Name that you want to have displayed. Defaults to article title.",
+
"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": "Description of the production.",
+
                        "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
                        "aliases" : [ "3" ]
 
 
                 }
 
                 }
 
}
 
}
Line 95: Line 96:
 
</templatedata>
 
</templatedata>
  
<includeonly>{{#switch:{{SUBPAGENAME}}|sandbox=|#default=
+
<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 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.

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

  1. 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).
  2. 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.
  3. The page URL should look like this:
    http://movie.daum.net/moviedb/main?movieId=####
    where #### indicates a number.
  4. 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.
  5. 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, and Film Name is the title of the movie or show.
  6. (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, and Description is the description of the show, in parentheses.

Examples

Parameter: id (1)

  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).
  2. On the Daum search results page, click the link for "늑대소년". That Daum page URL is:
    http://movie.daum.net/moviedb/main?movieId=67118
  3. 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

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Daum movie

This template is used to generate an external link to a web page for a movie in the Daum database.

Template parameters

ParameterDescriptionTypeStatus
IDid 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.

Numberrequired
Titletitle 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.

Default
{{PAGENAMEBASE}}
Stringoptional
Descriptiondescription 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.

Stringoptional