Template:Dialogue: Difference between revisions

Jump to navigation Jump to search
(Add text2, text3, text4 params. Remove surrounding quotes. Remove id=dialogue-text - was causing italics on character dialogue. Leave italics on player answers for now. New testing text)
(Add switch for Dark Portal)
Line 2: Line 2:
{{#if: {{{answer|}}}|{{!}}colspan=2 style="font-style:italic;"{{!}} →  {{{answer|}}} |}}
{{#if: {{{answer|}}}|{{!}}colspan=2 style="font-style:italic;"{{!}} →  {{{answer|}}} |}}
{{!}}-
{{!}}-
{{!}}{{#ifeq:{{{character|}}}|Player|<div style="width:40px;height: 40px;margin-top: 12px;"><small>player</small></div>|[[File:{{{character|}}}.png|40px|link={{{character|}}}]]}}
{{!}}{{#switch:{{{character|}}}
  |Player=<div style="width:40px;height: 40px;margin-top: 12px;"><small>player</small></div>
  |Dark Portal=<div style="width:40px;height: 40px;margin-top: 0px; line-height: .8em;"><small>Dark Portal</small></div>
  |#default=[[File:{{{character|}}}.png|40px|link={{{character|}}}]]}}
{{!}} class="" {{!}}{{{text|}}} {{#if: {{{text2|}}}|
{{!}} class="" {{!}}{{{text|}}} {{#if: {{{text2|}}}|
<tr>
<tr>
{{!}}{{#ifeq:{{{character|}}}|Player|<div style="width:40px;height: 40px;margin-top: 12px;"><small>player</small></div>|[[File:{{{character|}}}.png|40px|link={{{character|}}}]]}}
{{!}}{{#switch:{{{character|}}}
  |Player=<div style="width:40px;height: 40px;margin-top: 12px;"><small>player</small></div>
  |Dark Portal=<div style="width:40px;height: 40px;margin-top: 0px; line-height: .8em;"><small>Dark Portal</small></div>
  |#default=[[File:{{{character|}}}.png|40px|link={{{character|}}}]]}}
{{!}} class="" {{!}}{{{text2|}}}</tr>|}} {{#if: {{{text3|}}}|
{{!}} class="" {{!}}{{{text2|}}}</tr>|}} {{#if: {{{text3|}}}|
<tr>
<tr>
{{!}}{{#ifeq:{{{character|}}}|Player|<div style="width:40px;height: 40px;margin-top: 12px;"><small>player</small></div>|[[File:{{{character|}}}.png|40px|link={{{character|}}}]]}}
{{!}}{{#switch:{{{character|}}}
  |Player=<div style="width:40px;height: 40px;margin-top: 12px;"><small>player</small></div>
  |Dark Portal=<div style="width:40px;height: 40px;margin-top: 0px; line-height: .8em;"><small>Dark Portal</small></div>
  |#default=[[File:{{{character|}}}.png|40px|link={{{character|}}}]]}}
{{!}} class="" {{!}}{{{text3|}}}</tr>|}} {{#if: {{{text4|}}}|
{{!}} class="" {{!}}{{{text3|}}}</tr>|}} {{#if: {{{text4|}}}|
<tr>
<tr>
{{!}}{{#ifeq:{{{character|}}}|Player|<div style="width:40px;height: 40px;margin-top: 12px;"><small>player</small></div>|[[File:{{{character|}}}.png|40px|link={{{character|}}}]]}}
{{!}}{{#switch:{{{character|}}}
  |Player=<div style="width:40px;height: 40px;margin-top: 12px;"><small>player</small></div>
  |Dark Portal=<div style="width:40px;height: 40px;margin-top: 0px; line-height: .8em;"><small>Dark Portal</small></div>
  |#default=[[File:{{{character|}}}.png|40px|link={{{character|}}}]]}}
{{!}} class="dialogue-text" style=""{{!}}{{{text4|}}}</tr>|}}
{{!}} class="dialogue-text" style=""{{!}}{{{text4|}}}</tr>|}}
|}</includeonly><noinclude>{{dialogueBox
|}</includeonly><noinclude>{{dialogueBox
Line 23: Line 35:
{{dialogue|character=Player|text=dialogue 4 dialogue 4 dialogue}}
{{dialogue|character=Player|text=dialogue 4 dialogue 4 dialogue}}
{{dialogue|character=Anna|text=dialogue 4 dialogue 4 dialogue}}
{{dialogue|character=Anna|text=dialogue 4 dialogue 4 dialogue}}
{{dialogue|character=Dark Portal|text=dialogue 4 dialogue 4 dialogue}}
}}
}}
{{dialogue|character=Dark Portal|text=dialogue 4 dialogue 4 dialogue}}


{{labeledDialogueBox|title=Do you have anything on your mind? [Added 1.3]|
{{labeledDialogueBox|title=Do you have anything on your mind? [Added 1.3]|