Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Voice actor: Difference between revisions

Template page
(add cat.)
(Updated documentation and added category)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><onlyinclude>[[{{#cargo_query:tables=voice_actors
<includeonly><onlyinclude>{{#cargo_query:tables=voice_actors
|fields=imdb_link
|fields=imdb_link=link, CONCAT("{{trim | {{{1}}} }}")=text
|where=name={{{1}}}
|where=name="{{trim | {{{1}}} }}"
|order by=name
|limit=1
|limit=1
|more results text=
|more results text=
|default={{{1}}}
|default={{trim | {{{1}}} }}
|format=list
|format=template
}}|{{{1}}}]]</onlyinclude></includeonly>
|named args=yes
|template=Url
}}</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]].


This template links a voice actor's IMDB page, if the entry exists.
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.


Usage (if voice actor exists): <code><nowiki>{{VA|Jennifer English}}</nowiki></code>
== Examples ==
Result: {{VA|Jennifer English}}
{{Template demo
 
| style = table
Usage (if voice actor doesn't exist): <code><nowiki>{{VA|Adam Smith}}</nowiki></code>
| <nowiki>{{VA|Jennifer English}}</nowiki>
Result: {{VA|Adam Smith}}
| <nowiki>{{VA|Robert G. Slade}}</nowiki>
| <nowiki>{{VA|Robert G Slade}}</nowiki>
}}


==Template data==
<templatedata>
{
"params": {
"1": {
"label": "voice actor",
"description": "The name of the voice actor, spelled '''exactly''' as on the voice actors page",
            "type": "string",
"required": true
}
},
"description": "Inserts a link to the IMDB page of a voice actor.",
"format": "inline"
}
</templatedata>}}
[[Category:Templates]]
[[Category:Templates]]
[[Category:Link templates]]
[[Category:External link templates]]
</noinclude>

Latest revision as of 22:12, 21 July 2024

Template documentation
Shortcuts

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

Markup Renders as
{{VA|Jennifer English}}
Jennifer English
{{VA|Robert G. Slade}}
Robert G. Slade
{{VA|Robert G Slade}}
Robert G Slade

Template data

Inserts a link to the IMDB page of a voice actor.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
voice actor1

The name of the voice actor, spelled '''exactly''' as on the voice actors page

Stringrequired