Template:Dialogue/doc: Difference between revisions

no edit summary
m (1 revision imported)
No edit summary
 
Line 2: Line 2:
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->


This is a complex template designed to make it easy to write out lines of [[dialogue]]. '''This template ''cannot'' be <code>subst:</code>'d'''. The template can handle most standard formats of writing dialogue, and can be indented, bulleted or numbered.
This is a complex template designed to make it easy to write out lines of [[wikipedia:dialogue|dialogue]]. '''This template ''cannot'' be <code>subst:</code>'d'''. The template can handle most standard formats of writing dialogue, and can be indented, bulleted or numbered.


{{tl|Dialogue}} facilitates the writing of [[dialogue]] in a standard format.
{{tl|Dialogue}} facilitates the writing of [[wikipedia:dialogue|dialogue]] in a standard format.


==Syntax==
==Syntax==
This is how to write the template in [[wikitext]] onto your article:
This is how to write the template in [[wikipedia:wikitext|wikitext]] onto your article:


<pre>{{dialogue
<pre>{{dialogue
Line 34: Line 34:
Name shortcuts apply to your main dialogue text. If you use a shortcut specified here for a character name, then the full name will be replaced for it.
Name shortcuts apply to your main dialogue text. If you use a shortcut specified here for a character name, then the full name will be replaced for it.


Named parameters of the form "<code>mood1</code>", "<code>mood2</code>", "<code>mood3</code>", etc., up to "<code>mood10</code>", specify moods for the corresponding line number (e.g. "<code>mood1</code>" specifies line 1). They are placed in a line like this:
Named parameters of the form "<code>mood1</code>", "<code>mood2</code>", "<code>mood3</code>", etc., up to "<code>mood25</code>", specify moods for the corresponding line number (e.g. "<code>mood1</code>" specifies line 1). They are placed in a line like this:


<pre>...
<pre>...
Line 52: Line 52:
:;<code>Parameter 7</code> ''(optional)'' : so on...
:;<code>Parameter 7</code> ''(optional)'' : so on...


This extends for 10 lines at maximum. After that, unfortunately the template will have to be manually called again from the code.
This extends for 25 lines at maximum. After that, unfortunately the template will have to be manually called again from the code.


Note: if any character is called "<code>action</code>" then that line will be construed as an action line. It still counts as a ''line'' nonetheless.
Note: if any character is called "<code>action</code>" then that line will be construed as an action line. It still counts as a ''line'' nonetheless.
Line 60: Line 60:


<pre>{{dialogue
<pre>{{dialogue
|harry=[[Harry Enfield|Harry]]
|harry=[[wikipedia:Harry Enfield|Harry]]
|bryan=[[Bryan Adams|Bryan]]
|bryan=[[wikipedia:Bryan Adams|Bryan]]


|harry|Hello!                |mood1=happy
|harry|Hello!                |mood1=happy
Line 78: Line 78:


{{dialogue
{{dialogue
|harry=[[Harry Enfield|Harry]]
|harry=[[wikipedia:Harry Enfield|Harry]]
|bryan=[[Bryan Adams|Bryan]]
|bryan=[[wikipedia:Bryan Adams|Bryan]]


|harry|Hello!                |mood1=happy
|harry|Hello!                |mood1=happy
Line 159: Line 159:
You will get the odd spacing error (e.g. "Speech<code><space></code>") if you lay out your dialogue on multiple lines. If you need 11 or more lines, you must split the template up. Otherwise you'll see this:
You will get the odd spacing error (e.g. "Speech<code><space></code>") if you lay out your dialogue on multiple lines. If you need 11 or more lines, you must split the template up. Otherwise you'll see this:


{{dialogue|Line 10|21=Demonstration}}
{{dialogue|Line 25|51=Demonstration}}


==See also==
==See also==