Template:VoiceLineCite: Difference between revisionsGive feedback
Created page with "{{HeroIcon|Hero={{{hero}}}}}'s in-game [[:File:{{{file}}}|voice line]] - "''{{{transcription}}}''"<noinclude> ==Usage== This template can be used to reference in-game voice lines. <nowiki>{{VoiceLineCite|hero_name|file_name.extension|transcription}}</nowiki> ===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..." |
Gammaton32 (talk | contribs) fixing what I broke |
||
| (36 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | <includeonly>{{PageRef|{{{name|{{{1}}}}}}| | ||
= | alt_link={{{alt_link|{{{name|{{{1}}}}}}}}}| | ||
alt_name={{{alt_name|{{{name|{{{1}}}}}}}}}| | |||
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> | |||
{| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
|} | |||
{{ | |||
[[Category:Citation templates]] | |||
</noinclude> | |||
Latest revision as of 13:47, 14 July 2026
Usage
[edit source]This template can be used to reference in-game voice lines. The template can link to either a "quotes" page or a voice line file.
{{VoiceLineCite|name=hero_name|quotes=Hero/Quotes|transcription=transcription}}
{{VoiceLineCite|name=hero_name|file=file_name.extension|transcription=transcription}}
There's an optional parameter to change the possessive suffix and one to add extra context to the line.
Example usages
[edit source]Example using quotes link:
{{VoiceLineCite|name=Lash|quotes=Lash/Quotes#Hero-Specific Voice Lines|context=(killed Wraith)|transcription=Backed the wrong horse, Wraith. Like always.}}
Result:
Lash's in-game voice line (killed Wraith) - "Backed the wrong horse, Wraith. Like always."
Example using file link:
{{VoiceLineCite|name=Lash|file=Lash kill wraith 02.mp3|context=(killed Wraith)|transcription=Backed the wrong horse, Wraith. Like always.}}
Result:
Lash's in-game voice line (killed Wraith) - "Backed the wrong horse, Wraith. Like always."
To remove the icon file (note: in most common cases of pages without icons, this is already handled as exceptions by the template itself):
{{VoiceLineCite|name=Lash|no_pageref_file=true|file=Lash kill wraith 02.mp3|transcription=Backed the wrong horse, Wraith. Like always.}}
Result:
Lash's in-game voice line - "Backed the wrong horse, Wraith. Like always."
Example of suffix change:
{{VoiceLineCite|name=Abrams|suffix='|file=Abrams select 01.mp3|transcription=Don't worry, I'm on the case.}}
Result:
Abrams' in-game voice line - "Don't worry, I'm on the case."
Example of alt name:
{{VoiceLineCite|name=Lash|alt_name=Jacob|file=Lash kill wraith 02.mp3|transcription=Backed the wrong horse, Wraith. Like always.}}
Result:
Jacob's in-game voice line - "Backed the wrong horse, Wraith. Like always."
Example of alt link:
{{VoiceLineCite|name=Lash|alt_link=Abrams|file=Lash kill wraith 02.mp3|transcription=Backed the wrong horse, Wraith. Like always.}}
Result:
Lash's in-game voice line - "Backed the wrong horse, Wraith. Like always."
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| name | name 1 | The name of the character to whom the voice line belongs | String | required |
| alt_name | alt_name | Display a different name | String | optional |
| alt_link | alt_link | Link to a different page | String | optional |
| suffix | suffix | Possessive suffix change for characters whose name ends with 's' | String | optional |
| quotes | quotes | Link to a character ''quotes'' page, preferably including the section header of the relevant quote (use this or ''file'', not both) | String | optional |
| file | file | The name of the uploaded voice line sound file (must include the file extension eg. .mp3) (use this or ''quotes'', not both) | String | optional |
| context | context | Additional context to the line | String | optional |
| transcription | transcription | The transcription of the voice line (without quotation marks) | String | required |
| no_pageref_file | no_pageref_file | Tells [[Template:PageRef]] to not use the icon file. Note that passing ''false'' does not work, the parameter must then be ommitted.
| String | optional |