Difference between revisions of "Template:HanCinema drama"
Jump to navigation
Jump to search
imported>Primefac m (Protected "Template:HanCinema drama": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access...) |
imported>CherryPie94 (Will be creating a template documentation since I noticed it doesn't have one) |
||
Line 1: | Line 1: | ||
− | [http://www.hancinema.net/korean_drama_{{{1|{{{id}}}}}}.php ''{{{2|{{{title|{{PAGENAMEBASE}}}}}}}}''] at [[HanCinema]]<noinclude> | + | [http://www.hancinema.net/korean_drama_{{{1|{{{id}}}}}}.php ''{{{2|{{{title|{{PAGENAMEBASE}}}}}}}}''] at [[HanCinema]] |
− | + | <noinclude> | |
− | + | {{documentation}} | |
− | |||
− | |||
− | |||
[[Category:Television external link templates]] | [[Category:Television external link templates]] | ||
</noinclude> | </noinclude> |
Revision as of 09:09, 14 April 2018
Template:PAGENAMEBASE at HanCinema
Template:Uses Wikidata Template:Tracks Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
This template is used to generate an external link to a web page for a TV series in the HanCinema. It should only be used in the "external links" section of an article.
- For films/movies, use HanCinema film.
- For actors, directors, or screenwriters, use HanCinema person.
Contents
Usage
No parameters
{{HanCinema drama}}
and the template will pull the ID from Wikidata (if present there) and extract the link text from the page title, minus an parenthetical disambiguation.
With parameters
- The template then uses the article title as the anchor text:
* {{HanCinema drama | ID }} * {{HanCinema drama | id= ID }}
- To have the link text be other than the article title, use second parameter:
* {{HanCinema drama | ID | Title }} * {{HanCinema drama | id= ID | title= Title }}
Detailed instructions
- Copy and paste one of the options above into the article
- Go to Hancinema.net and search for the TV series you want (say, Save Me)
- Click on the correct Save Me in the list; this will bring up the page:
- Copy only the title (here, "
Save_Me
"), omitting the other text - Replace "
ID
" in the template code with the number- For the first option above, you'll then have
* {{HanCinema drama|Save_Me}}
resulting in:
- For the first option above, you'll then have
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 HanCinema drama
This template is used to generate an external link to a web page for a TV series in the HanCinema Database.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 1 | The HanCinema drama ID for the target page. | Number | optional |
Title | title 2 | Title that you want to have displayed. Defaults to article title. | String | optional |
Tracking category
- Category:HanCinema drama ID not in Wikidata (0)
- Category:HanCinema drama ID different from Wikidata (0)
- Category:HanCinema drama ID same as Wikidata (0)
- Category:Hancinema drama template with no id set (exists in template, not created)
The above documentation is transcluded from Template:HanCinema drama/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |