8,856
editsno edit summary
(Create) |
No edit summary |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><onlyinclude> | <includeonly><onlyinclude>{{#cargo_query:tables=voice_actors | ||
|fields=imdb_link | |fields=imdb_link=link, CONCAT("{{{1}}}")=text | ||
|where=name={{{1}}} | |where=name="{{{1}}}" | ||
|order by=name | |||
|limit=1 | |limit=1 | ||
|more results text= | |more results text= | ||
|default={{{1}}} | |default={{{1}}} | ||
|format= | |format=template | ||
|named args=yes | |||
|template=Url | |||
This template links a voice actor's IMDB page, if the entry exists. | }}</onlyinclude></includeonly><noinclude>{{documentation|content={{shortcut|VA|va}} | ||
This template links a voice actor's IMDB page, if the entry exists. The entries are put into the database using [[Template:VA/Insert]] on page [[Voice actors]]. | |||
Usage (if voice actor exists): <code><nowiki>{{VA|Jennifer English}}</nowiki></code> | Usage (if voice actor exists): <code><nowiki>{{VA|Jennifer English}}</nowiki></code> | ||
Line 15: | Line 17: | ||
Usage (if voice actor doesn't exist): <code><nowiki>{{VA|Adam Smith}}</nowiki></code> | Usage (if voice actor doesn't exist): <code><nowiki>{{VA|Adam Smith}}</nowiki></code> | ||
Result: {{VA|Adam Smith}} | Result: {{VA|Adam Smith}} | ||
Test VA with period: {{VA|Robert G. Slade}} | |||
[[Category:Templates]] | |||
==Template data== | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "voice actor", | |||
"description": "The name of the voice actor, spelled '''exactly''' as on the voice actors page", | |||
"required": true | |||
} | |||
}, | |||
"description": "Inserts a link to the IMDB page of a voice actor.", | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
}} | |||
</noinclude> |