Template:KMDb person: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
If Wikidata property has multiple values, only use first one. Add edit link is using Wikidata. Display message if no ID and no Wikidata. Trim any leading spaces in unnamed parameter 1 that would break URL. Add fix for empty name parameter. Move documentation and category to expanded /doc. |
||
(7 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P1649}} |
|||
[http://www.kmdb.or.kr/eng/mm_basic.asp?person_id={{{1|{{{id|}}}}}} {{{2|{{{name|{{PAGENAME}}}}}}}}] at the [[Korean Movie Database]]<noinclude> |
|||
| [https://www.kmdb.or.kr/eng/db/per/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P1649}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[Korean Movie Database]]<includeonly>{{EditAtWikidata|pid=P1649|{{{1|{{{id|}}}}}}}}</includeonly> |
|||
== See also == |
|||
* {{tl|KMDb film}} |
|||
| <span class="error">{{[[Template:KMDb person|KMDb person]]}} template missing ID and not present in Wikidata.</span> |
|||
== External links == |
|||
* http://www.kmdb.or.kr/eng |
|||
}}<noinclude> |
|||
[[Category:People and person external link templates]] |
|||
{{Documentation}} |
|||
[[Category:Film external link templates]] |
|||
</noinclude> |
</noinclude> |
Latest revision as of 01:38, 2 April 2019
{{{name}}} at the Korean Movie Database
This template uses the Wikidata property:
- KMDb person ID (P1649) (see uses)
This template uses Lua: |
Template:KMDb person displays an external link to a page for a person at the Korean Movie Database (KMDb) website. It is intended for use in the external links section of an article.
Usage
Unnamed parameters:
{{KMDb person | ID }}
{{KMDb person | ID | NAME }}
Named parameters
{{KMDb person | id= ID }}
{{KMDb person | id= ID | name= NAME }}
Using Wikidata property KMDb person ID (P1649):
{{KMDb person}}
{{KMDb person | name= NAME }}
Examples
Unnamed parameters
Usage:
* {{KMDb person | 00001274 | Park Chan-wook }}
Output:
URLs:
- https://www.kmdb.or.kr/eng/db/per/00001274 (English)
- https://www.kmdb.or.kr/db/per/00001274 (Korean)
Named parameters
Usage:
* {{KMDb person | id= 00001318 | name= Kwak Jae-yong }}
Output:
Current URLs:
- https://www.kmdb.or.kr/eng/db/per/00001318 (English)
- https://www.kmdb.or.kr/db/per/00001318 (Korean)
Former URLs:
- http://www.kmdb.or.kr/eng/mm_basic.asp?person_id=00001318 (archive)
- http://www.kmdb.or.kr/actor/mm_basic.asp?person_id=00001318 (archive)
- http://www.kmdb.or.kr/eng/vod/mm_basic.asp?person_id=00001318 (archive)
- http://www.kmdb.or.kr/vod/mm_basic.asp?person_id=00001318 (archive)
No ID in template or Wikidata
Usage:
* {{KMDb person}}
Output:
- {{KMDb person}} template missing ID and not present in Wikidata.
See also
- {{KMDb film}}
- {{KMDb documentary}}