Difference between revisions of "Template:HanCinema drama/doc"
Jump to navigation
Jump to search
imported>CherryPie94 m (→TemplateData) |
imported>Vanisaac m (→Tracking category: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
{{Uses Wikidata|P5091}} | {{Uses Wikidata|P5091}} | ||
{{Tracks Wikidata|P5091}} | {{Tracks Wikidata|P5091}} | ||
+ | {{Lua|Module:EditAtWikidata|Module:WikidataCheck}} | ||
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. | 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. | ||
Line 64: | Line 65: | ||
* {{clc|HanCinema drama ID different from Wikidata}} | * {{clc|HanCinema drama ID different from Wikidata}} | ||
* {{clc|HanCinema drama ID same as Wikidata}} | * {{clc|HanCinema drama ID same as Wikidata}} | ||
+ | * {{cl|Hancinema drama template with no id set}} (exists in template, not created) | ||
− | <includeonly>{{ | + | <includeonly>{{Sandbox other|| |
<!--Categories below this line, please; interwikis at Wikidata--> | <!--Categories below this line, please; interwikis at Wikidata--> | ||
− | + | [[Category:Television external link templates]] | |
− | [[Category: | ||
[[Category:External link templates using Wikidata]] | [[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 16:37, 25 April 2020
![]() | This is a documentation subpage for Template:HanCinema drama. 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 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:
- Template:PAGENAMEBASE at HanCinemaScript error: No such module "EditAtWikidata".Template:WikidataCheck
- 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)