Difference between revisions of "Template:Dialogue"

From SpiralKnights

Jump to: navigation, search
m (there's probably a better way to code this condition WITH the same flexibility, not sure how - so of course, we go with the chunky primitive stuff until someone makes it elegant - Goes up to 20 now.)
m (force height)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{location|}}}|Location: {{{location}}}
+
<includeonly>{| cellpadding="0" cellspacing="0" align="{{{align|*}}}" style="width: {{{width|400px}}}; border: {{{border-width|5px}}} {{{border-type|transparent}}} #000000; background: #ebc94d; margin: {{{margin|0px}}}; border-radius: 14px;"
----
+
|-
|}}{{#if:{{{notes|}}}|{{#if:{{{location|}}}|<br>|}}Notes: {{{notes}}}
+
| <table cellpadding="0" cellspacing="10" width="100%" style="background: none; height: 39px; color: #000000"><tr>
----
+
<td align="left"><big><big><big>{{#if:{{{character|}}}|'''''{{{character|Character Name}}}'''''|}}</big></big></big></td>
|}}
+
</tr></table>
{{SKWindow/Dialogue
+
|-
|character = {{{character}}}
+
| align="center" |
|dialogue  = {{{cd 1}}}
+
{| cellpadding="0" cellspacing="5" align="center" valign="top" style="border: {{{body border-width|5px}}} {{{border-type|solid}}} #D1DDF2; background: #BACAE0; width: 100%; height:{{{height|300px}}}; border-radius: 10px; color: #114255"
}}
+
| valign = "top" | <big>{{{cd}}}</big>
*{{{pd 1}}}{{#if:{{{cd 2|}}}|<br><br>{{SKWindow/Dialogue
+
|}
|character = {{{character 2|{{{character}}}}}}
+
|}
|dialogue  = {{{cd 2}}}
+
*{{{pd}}}</includeonly><noinclude>
}}
+
{{documentation}}<noinclude>
*{{{pd 2}}}
+
|
+
}}{{#if:{{{cd 3|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 3|{{{character}}}}}}
+
|dialogue  = {{{cd 3}}}
+
}}
+
*{{{pd 3}}}
+
|
+
}}{{#if:{{{cd 4|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 4|{{{character}}}}}}
+
|dialogue  = {{{cd 4}}}
+
}}
+
*{{{pd 4}}}
+
|
+
}}{{#if:{{{cd 5|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 5|{{{character}}}}}}
+
|dialogue  = {{{cd 5}}}
+
}}
+
*{{{pd 5}}}
+
|
+
}}{{#if:{{{cd 6|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 6|{{{character}}}}}}
+
|dialogue  = {{{cd 6}}}
+
}}
+
*{{{pd 6}}}
+
|
+
}}{{#if:{{{cd 7|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 7|{{{character}}}}}}
+
|dialogue  = {{{cd 7}}}
+
}}
+
*{{{pd 7}}}
+
|
+
}}{{#if:{{{cd 8|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 8|{{{character}}}}}}
+
|dialogue  = {{{cd 8}}}
+
}}
+
*{{{pd 8}}}
+
|
+
}}{{#if:{{{cd 9|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 9|{{{character}}}}}}
+
|dialogue  = {{{cd 9}}}
+
}}
+
*{{{pd 9}}}
+
|
+
}}{{#if:{{{cd 10|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 10|{{{character}}}}}}
+
|dialogue  = {{{cd 10}}}
+
}}
+
*{{{pd 10}}}
+
|
+
}}{{#if:{{{cd 11|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 11|{{{character}}}}}}
+
|dialogue  = {{{cd 11}}}
+
}}
+
*{{{pd 11}}}
+
|
+
}}{{#if:{{{cd 12|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 12|{{{character}}}}}}
+
|dialogue  = {{{cd 12}}}
+
}}
+
*{{{pd 12}}}
+
|
+
}}{{#if:{{{cd 13|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 13|{{{character}}}}}}
+
|dialogue  = {{{cd 13}}}
+
}}
+
*{{{pd 13}}}
+
|
+
}}{{#if:{{{cd 14|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 14|{{{character}}}}}}
+
|dialogue  = {{{cd 14}}}
+
}}
+
*{{{pd 14}}}
+
|
+
}}{{#if:{{{cd 15|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 15|{{{character}}}}}}
+
|dialogue  = {{{cd 15}}}
+
}}
+
*{{{pd 15}}}
+
|
+
}}{{#if:{{{cd 16|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 16|{{{character}}}}}}
+
|dialogue  = {{{cd 16}}}
+
}}
+
*{{{pd 16}}}
+
|
+
}}{{#if:{{{cd 17|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 17|{{{character}}}}}}
+
|dialogue  = {{{cd 17}}}
+
}}
+
*{{{pd 17}}}
+
|
+
}}{{#if:{{{cd 18|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 18|{{{character}}}}}}
+
|dialogue  = {{{cd 18}}}
+
}}
+
*{{{pd 18}}}
+
|
+
}}{{#if:{{{cd 19|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 19|{{{character}}}}}}
+
|dialogue  = {{{cd 19}}}  
+
}}
+
*{{{pd 19}}}
+
|
+
}}{{#if:{{{cd 20|}}}|<br><br>{{SKWindow/Dialogue
+
|character = {{{character 20|{{{character}}}}}}
+
|dialogue  = {{{cd 20}}}
+
}}
+
*{{{pd 20}}}
+
|
+
}}</includeonly><noinclude>
+
{{documentation}}</noinclude>
+

Latest revision as of 22:17, 30 December 2015

[edit] [purge] Template documentation

Usage

To replicate the appearance of in-game dialogue. Please make dialogues on their own pages, like so: Kora Dialogue/Welcome to Haven!, with <noinclude>[[Category:Dialogues]]</noinclude> right after the last }} .

Then link to them as needed like so: {{:Kora Dialogue/Welcome to Haven!}} - this is template friendly. Have not encountered problems yet.

It is optional to hide this dialogue with Template:Dialogue/Showhide.

This way, users can:

  • Find dialogues in bulk quickly via Category:Dialogues
  • Update a dialogue that appears in more than one spot in the game/wiki right away and consistently.

Code

{{Dialogue
|character = 
|cd = 
|pd = 
}}

Parameters

Required

|character

the name of the character - do not use brackets etc. Just the name.

|cd

character dialogue.

|pd

player response to the character dialogue.

Examples

See what links here for examples of this template in action.

The NPC pages (NAME Dialogue/Location) do not use the optional Template:Dialogue/Showhide, revealing the entire dialogue alone on its own page for easy reading.
The other mainspace pages do. The dialogue page is inserted into the showhide for optional reading on pages with other information.

Notes

Forum Discussion about this template.

Personal tools