Jump to content

Template:VoiceLineCite: Difference between revisions

From Deadlock Wiki
Gammaton32 (talk | contribs)
No edit summary
Gammaton32 (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>{{HeroIcon|{{{hero}}}}}'s in-game [[:File:{{{file}}}|voice line]] - "''{{{transcription}}}''"</includeonly><noinclude>{{Documentation}}
<includeonly>{{HeroIcon|{{{hero}}}}}'s in-game [[:File:{{{file}}}|voice line]] - "''{{{transcription}}}''"</includeonly><noinclude>{{Documentation}}[[Category:Citation templates]]</noinclude>
==Usage==
This template can be used to reference in-game voice lines.
 
<nowiki>{{VoiceLineCite|hero=hero_name|file=file_name.extension|transcription=transcription}}</nowiki>
 
==Example usage==
Example:
<nowiki>{{VoiceLineCite|Lash|file=Lash kill wraith 02.mp3|transcription=Back the wrong horse, Wraith. Like always.}}</nowiki>
Result:
 
{{VoiceLineCite|Lash|file=Lash kill wraith 02.mp3|transcription=Back the wrong horse, Wraith. Like always.}}
 
[[Category:Citation templates]]
</noinclude>

Revision as of 14:03, 28 November 2024

Template documentation [view] [edit] [history] [purge]

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:

[[File:{{{hero}}} MM.png|alt=|link={{{hero}}}|25px]] [[{{{hero}}}|{{{hero}}}]]'s in-game voice line - "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:

[[File:{{{hero}}} MM.png|alt=|link={{{hero}}}|25px]] [[{{{hero}}}|{{{hero}}}]]'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:

[[File:{{{hero}}} MM.png|alt=|link={{{hero}}}|25px]] [[{{{hero}}}|{{{hero}}}]]'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:

[[File:{{{hero}}} MM.png|alt=|link={{{hero}}}|25px]] [[{{{hero}}}|{{{hero}}}]]'s in-game voice line - "Don't worry, I'm on the case."

No description.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
namename 1

The name of the character to whom the voice line belongs

Stringrequired
suffixsuffix

Possessive suffix change for characters whose name ends with 's'

Stringoptional
filefile

The name of the uploaded voice-line sound file (must include the file extension eg. .mp3)

Stringrequired
contextcontext

Additional context to the line

Stringoptional
transcriptiontranscription

The transcription of the voice line (without quotation marks)

Stringrequired
no_pageref_fileno_pageref_file

Tells [[Template:PageRef]] to not use the icon file. Note that passing ''false'' does not work, the parameter must then be ommitted.

Example
true
Stringoptional