Template:VoiceLineCite/doc: Difference between revisionsGive feedback
m no_pageref_file |
Gammaton32 (talk | contribs) updated |
||
| Line 48: | Line 48: | ||
"required": true | "required": true | ||
}, | }, | ||
"alt_name": { | |||
"type": "string", | |||
"description": "Display a different name", | |||
"required": false | |||
}, | |||
"alt_link": { | |||
"type": "string", | |||
"description": "Link to a different page", | |||
"required": false | |||
}, | |||
"suffix": { | "suffix": { | ||
"type": "string", | "type": "string", | ||
| Line 78: | Line 88: | ||
"paramOrder": [ | "paramOrder": [ | ||
"name", | "name", | ||
"alt_name", | |||
"alt_link", | |||
"suffix", | "suffix", | ||
"file", | "file", | ||
Revision as of 03:24, 30 April 2025
Usage
This template can be used to reference in-game voice lines.
{{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
Example:
{{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."
Example where the png icon for Amber Hand doesn't exist:
{{VoiceLineCite|name=Amber Hand|file=Lash kill wraith 02.mp3|transcription=Backed the wrong horse, Wraith. Like always.}}
Result:
Amber Hand's in-game voice line - "Backed the wrong horse, Wraith. Like always."
This can be handled by passing the parameter no_pageref_file=true.
{{VoiceLineCite|name=Amber Hand|no_pageref_file=true|file=Lash kill wraith 02.mp3|transcription=Backed the wrong horse, Wraith. Like always.}}
Result:
Amber Hand'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."
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 |
| file | file | The name of the uploaded voice-line sound file (must include the file extension eg. .mp3) | String | required |
| 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 |