12,170
editsUpdated documentation and added category
No edit summary |
(Updated documentation and added category) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#cargo_query:tables=voice_actors | <includeonly><onlyinclude>{{#cargo_query:tables=voice_actors | ||
|fields=imdb_link=link, CONCAT("{{{1}}}")=text | |fields=imdb_link=link, CONCAT("{{trim | {{{1}}} }}")=text | ||
|where=name="{{{1}}}" | |where=name="{{trim | {{{1}}} }}" | ||
|order by=name | |order by=name | ||
|limit=1 | |limit=1 | ||
|more results text= | |more results text= | ||
|default={{{1}}} | |default={{trim | {{{1}}} }} | ||
|format=template | |format=template | ||
|named args=yes | |named args=yes | ||
Line 12: | Line 12: | ||
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]]. | 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]]. | ||
In order to fetch the IMDB link, the parameter must exactly match an entry in the database. Otherwise, the template will omit the link and just display the name. | |||
== Examples == | |||
{{Template demo | |||
| style = table | |||
| <nowiki>{{VA|Jennifer English}}</nowiki> | |||
| <nowiki>{{VA|Robert G. Slade}}</nowiki> | |||
| <nowiki>{{VA|Robert G Slade}}</nowiki> | |||
}} | |||
==Template data== | ==Template data== | ||
<templatedata> | <templatedata> | ||
Line 28: | Line 29: | ||
"label": "voice actor", | "label": "voice actor", | ||
"description": "The name of the voice actor, spelled '''exactly''' as on the voice actors page", | "description": "The name of the voice actor, spelled '''exactly''' as on the voice actors page", | ||
"type": "string", | |||
"required": true | "required": true | ||
} | } | ||
Line 34: | Line 36: | ||
"format": "inline" | "format": "inline" | ||
} | } | ||
</templatedata> | </templatedata>}} | ||
}} | [[Category:Templates]] | ||
[[Category:Link templates]] | |||
[[Category:External link templates]] | |||
</noinclude> | </noinclude> |