Editing Template:VoiceLineCite/docGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
==Usage== | ==Usage== | ||
This template can be used to reference in-game voice lines. | This template can be used to reference in-game voice lines. | ||
<nowiki>{{VoiceLineCite|name=hero_name|file=file_name.extension|transcription=transcription}}</nowiki> | <nowiki>{{VoiceLineCite|name=hero_name|file=file_name.extension|transcription=transcription}}</nowiki> | ||
| Line 9: | Line 7: | ||
==Example usages== | ==Example usages== | ||
Example | Example: | ||
<nowiki>{{VoiceLineCite|name=Lash| | <nowiki>{{VoiceLineCite|name=Lash|file=Lash kill wraith 02.mp3|context=(killed Wraith)|transcription=Backed the wrong horse, Wraith. Like always.}}</nowiki> | ||
Result: | Result: | ||
{{VoiceLineCite|name=Lash| | {{VoiceLineCite|name=Lash|file=Lash kill wraith 02.mp3|context=(killed Wraith)|transcription=Backed the wrong horse, Wraith. Like always.}} | ||
Example where the png icon for Amber Hand doesn't exist: | |||
<nowiki>{{VoiceLineCite|name=Amber Hand|file=Lash kill wraith 02.mp3|transcription=Backed the wrong horse, Wraith. Like always.}}</nowiki> | |||
Result: | Result: | ||
{{VoiceLineCite|name= | {{VoiceLineCite|name=Amber Hand|file=Lash kill wraith 02.mp3|transcription=Backed the wrong horse, Wraith. Like always.}} | ||
This can be handled by passing the parameter ''no_pageref_file=true''. | |||
<nowiki>{{VoiceLineCite|name= | <nowiki>{{VoiceLineCite|name=Amber Hand|no_pageref_file=true|file=Lash kill wraith 02.mp3|transcription=Backed the wrong horse, Wraith. Like always.}}</nowiki> | ||
Result: | Result: | ||
{{VoiceLineCite|name= | {{VoiceLineCite|name=Amber Hand|no_pageref_file=true||file=Lash kill wraith 02.mp3|transcription=Backed the wrong horse, Wraith. Like always.}} | ||
| Line 37: | Line 36: | ||
{{VoiceLineCite|name=Abrams|suffix='|file=Abrams select 01.mp3|transcription=Don't worry, I'm on the case.}} | {{VoiceLineCite|name=Abrams|suffix='|file=Abrams select 01.mp3|transcription=Don't worry, I'm on the case.}} | ||
<templatedata> | <templatedata> | ||
| Line 66: | Line 48: | ||
"required": true | "required": true | ||
}, | }, | ||
"suffix": { | "suffix": { | ||
"type": "string", | "type": "string", | ||
| Line 81: | Line 53: | ||
"required": false | "required": false | ||
}, | }, | ||
"file": { | "file": { | ||
"type": "string", | "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": | "required": true | ||
}, | }, | ||
"context": { | "context": { | ||
| Line 111: | Line 78: | ||
"paramOrder": [ | "paramOrder": [ | ||
"name", | "name", | ||
"suffix", | "suffix", | ||
"file", | "file", | ||
"context", | "context", | ||