Difference between revisions of "Template:HanCinema person/doc"
Jump to navigation
Jump to search
imported>CherryPie94 m (→TemplateData) |
imported>Zyxw m (module note) |
||
Line 3: | Line 3: | ||
{{Uses Wikidata|P3045}} | {{Uses Wikidata|P3045}} | ||
{{Tracks Wikidata|P3045}} | {{Tracks Wikidata|P3045}} | ||
+ | {{Lua|Module:EditAtWikidata|Module:WikidataCheck}} | ||
This template is used to generate an external link to a web page for a person 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 person in the HanCinema. It should only be used in the "external links" section of an article. | ||
Line 59: | Line 60: | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:People and person external link templates]] | [[Category:People and person external link templates]] | ||
+ | [[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 04:38, 10 May 2019
![]() | This is a documentation subpage for Template:HanCinema person. 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 person in the HanCinema. It should only be used in the "external links" section of an article.
- For films/movies, use HanCinema film.
- For TV series, use HanCinema drama.
Usage
No parameters
{{HanCinema person}}
and the template will pull the ID from Wikidata (if present there) and extract the link text from the page name, minus an parenthetical disambiguation.
With parameters
- The template then uses the article title as the anchor text:
* {{HanCinema person | ID }} * {{HanCinema person | id= ID }}
- To have the link text be other than the article title, use second parameter:
* {{HanCinema person | ID | Name }} * {{HanCinema person | id= ID | name= Name }}
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 person
This template is used to generate an external link to a web page for a person in the HanCinema Database.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 1 | The HanCinema person ID for the target page. | Number | optional |
Name | name 2 | Name that you want to have displayed. Defaults to article title. | String | optional |
Tracking categories
- Category:HanCinema person ID not in Wikidata (0)
- Category:HanCinema person ID different from Wikidata (0)
- Category:HanCinema person ID same as Wikidata (0)
- Category:Hancinema person template with no id set (exists in template, not created)