Template:VoiceLineCite/doc: Difference between revisions
Jump to navigation
Jump to search
Gammaton32 (talk | contribs) Created page with "<templatedata> { "params": { "hero": { "type": "string", "description": "The name of the hero who the voice line belongs", "required": true }, "file": { "type": "string", "description": "The name of the uploaded voice-line sound file (must include the file extension eg. .mp3)", "required": true }, "transcription": { "type": "string", "description": "The transcription of the voice line", "required": true } }, "format": "i..." |
m example added that shows it works if icon doesnt exist |
||
(9 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
==Usage== | |||
This template can be used to reference in-game voice lines. | |||
<nowiki>{{VoiceLineCite|1=hero_name|file=file_name.extension|transcription=transcription}}</nowiki> | |||
==Example usages== | |||
Example: | |||
<nowiki>{{VoiceLineCite|1=Lash|file=Lash kill wraith 02.mp3|transcription=Back the wrong horse, Wraith. Like always.}}</nowiki> | |||
Result: | |||
{{VoiceLineCite|1=Lash|file=Lash kill wraith 02.mp3|transcription=Back the wrong horse, Wraith. Like always.}} | |||
Example where the png icon for Amber Hand doesn't exist: | |||
<nowiki>{{VoiceLineCite|1=Amber Hand|file=Lash kill wraith 02.mp3|transcription=Back the wrong horse, Wraith. Like always.}}</nowiki> | |||
Result: | |||
{{VoiceLineCite|1=Amber Hand|file=Lash kill wraith 02.mp3|transcription=Back the wrong horse, Wraith. Like always.}} | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"hero": { | "hero": { | ||
"aliases": [ | |||
"1" | |||
], | |||
"description": "The name of the hero who the voice line belongs", | "description": "The name of the hero who the voice line belongs", | ||
"required": true | "required": true | ||
}, | }, | ||
"file": { | "file": { | ||
"type": "string", | "aliases": [ | ||
"2" | |||
], | |||
"type": "string", | |||
"description": "The name of the uploaded voice-line sound file (must include the file extension eg. .mp3)", | "description": "The name of the uploaded voice-line sound file (must include the file extension eg. .mp3)", | ||
"required": true | "required": true | ||
}, | }, | ||
"transcription": { | "transcription": { | ||
"aliases": [ | |||
"description": "The transcription of the voice line", | "3" | ||
], | |||
"description": "The transcription of the voice line (without quotation marks)", | |||
"required": true | "required": true | ||
} | } |
Latest revision as of 17:55, 28 November 2024
Usage[edit source]
This template can be used to reference in-game voice lines.
{{VoiceLineCite|1=hero_name|file=file_name.extension|transcription=transcription}}
Example usages[edit source]
Example:
{{VoiceLineCite|1=Lash|file=Lash kill wraith 02.mp3|transcription=Back the wrong horse, Wraith. Like always.}}
Result:
Lash's in-game voice line - "Back the wrong horse, Wraith. Like always."
Example where the png icon for Amber Hand doesn't exist:
{{VoiceLineCite|1=Amber Hand|file=Lash kill wraith 02.mp3|transcription=Back the wrong horse, Wraith. Like always.}}
Result:
Amber Hand's in-game voice line - "Back the wrong horse, Wraith. Like always."
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
hero | hero 1 | The name of the hero who the voice line belongs | Unknown | required |
file | file 2 | The name of the uploaded voice-line sound file (must include the file extension eg. .mp3) | String | required |
transcription | transcription 3 | The transcription of the voice line (without quotation marks) | Unknown | required |