Template:Speaker/doc: Difference between revisions

From Guild of Archivists
m (Added a pointer to the quote template)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
The {{tlx|Speaker}} template should be used to identify the speaker of a line of dialogue. This template is intended to be used primarily in [[:Category:Dialogue|Dialogue]] reference material.
The {{tlx|Speaker}} template should be used to identify the speaker of a line of dialogue. This template is intended to be used primarily in [[:Category:Dialogue|Dialogue]] reference material. When including quotes from people in regular articles, use the {{tlx|Quote}} template.


== Usage ==
== Usage ==
There is a single unnamed parameter. The template should be placed on its own line, just above their first line of dialogue.
The template should be placed on its own line, just above their first line of dialogue. There are two unnamed parameters; the first identifies the speaker. It can be used by itself to produce the following markup:


{{markup
{{markup
Line 8: Line 8:
I realized the moment I fell into the Fissure that the Book would not be destroyed as I had planned.</nowiki>
I realized the moment I fell into the Fissure that the Book would not be destroyed as I had planned.</nowiki>


|{{Speaker|Atrus}}
|{{Speaker|Atrus}}I realized the moment I fell into the Fissure that the Book would not be destroyed as I had planned.}}
I realized the moment I fell into the Fissure that the Book would not be destroyed as I had planned.}}
<!-- The markup template does some weird extra formatting on the template, wrapping it in a <p> tag, if it's on its own line. I know the code here doesn't replicate the proper usage, but proper usage creates an unwanted gap that doesn't actually appear in normal usage. tl;dr: don't add a line break to this code block, but *do* add one when using the template normally. -->
 
The second parameter identifies the person the speaker is addressing. This parameter can be left off if there is no direct subject (such as in an opening voiceover), or if the player is the only subject for the entire "conversation".
 
{{markup
|<nowiki>{{Speaker|Gehn|Atrus}}
Father? I am no longer your father, because you are no longer my son!</nowiki>
 
|{{Speaker|Gehn|Atrus}}Father? I am no longer your father, because you are no longer my son!}}

Latest revision as of 18:27, 15 May 2018

The {{Speaker}} template should be used to identify the speaker of a line of dialogue. This template is intended to be used primarily in Dialogue reference material. When including quotes from people in regular articles, use the {{Quote}} template.

Usage[edit]

The template should be placed on its own line, just above their first line of dialogue. There are two unnamed parameters; the first identifies the speaker. It can be used by itself to produce the following markup:

Markup Renders as
{{Speaker|Atrus}}
I realized the moment I fell into the Fissure that the Book would not be destroyed as I had planned. 
[Atrus]
I realized the moment I fell into the Fissure that the Book would not be destroyed as I had planned.

The second parameter identifies the person the speaker is addressing. This parameter can be left off if there is no direct subject (such as in an opening voiceover), or if the player is the only subject for the entire "conversation".

Markup Renders as
{{Speaker|Gehn|Atrus}}
Father? I am no longer your father, because you are no longer my son! 
[Gehn] (to Atrus)
Father? I am no longer your father, because you are no longer my son!