Template:VoiceLineCite: Difference between revisions

East (talk | contribs)
No edit summary
fixing what I broke
 
(34 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{HeroIcon|Hero={{{hero}}}}} {{{hero}}}'s in-game [[:File:{{{file}}}|voice line]] - "''{{{transcription}}}''"<noinclude>
<includeonly>{{PageRef|{{{name|{{{1}}}}}}|
==Usage==
alt_link={{{alt_link|{{{name|{{{1}}}}}}}}}|
This template can be used to reference in-game voice lines.
alt_name={{{alt_name|{{{name|{{{1}}}}}}}}}|
<nowiki>{{VoiceLineCite|hero=hero_name|file=file_name.extension|transcription=transcription}}</nowiki>
no_file={{{no_pageref_file|}}}}}{{#if:{{{nosuffix|}}}||{{{suffix|'s}}}}} {{#invoke:Dictionary|translate|In-game}} {{#if:{{{file|}}}|[[:file:{{{file}}}|{{#invoke:Dictionary|translate|VoiceLine}}]]}} {{#if:{{{quotes|}}}|[[{{{quotes}}}|{{#invoke:Dictionary|translate|VoiceLine}}]]}} {{{context|}}} - ''"{{{transcription}}}"''</includeonly><noinclude>{{Documentation}}[[Category:Citation templates]]</noinclude>
 
===Parameters===
There are three required parameters:
{| class="wikitable"
|-
! Parameter !! Explanation
|-
| hero || The name of the hero who the voice line belongs
|-
| file || The name of the uploaded voice-line sound file (must include the file extension eg. .mp3)
|-
| transcription || The transcription of the voice line
|}
 
==Example usage==
Example:
<nowiki>{{VoiceLineCite|hero=Lash|file=Lash kill wraith 02.mp3|transcription=Back the wrong horse, Wraith. Like always.}}</nowiki>
Result:
 
{{VoiceLineCite|hero=Lash|file=Lash kill wraith 02.mp3|transcription=Back the wrong horse, Wraith. Like always.}}
 
[[Category:Citation templates]]
</noinclude>