Template:LabeledDialogueBox: Difference between revisions

Add isAnswer optional param, which will insert an arrow, which creates a more consistent appearance for nested responses
(Add indent param - only 1 level option though, not sure how to use variables for mathematical expressions)
(Add isAnswer optional param, which will insert an arrow, which creates a more consistent appearance for nested responses)
Line 1: Line 1:
{|class="wikitable mw-collapsible mw-collapsed" style="width:80%; border-radius:5px; {{#if:{{{indent|}}}|margin-left:50px;}};"|}}"
{|class="wikitable mw-collapsible mw-collapsed" style="width:80%; border-radius:5px; {{#if:{{{indent|}}}|margin-left:50px;}};"|}}"
|{{#if: {{{character|}}} | {{#ifeq:{{{character|}}}|Player|<!--div style="width:40px;height: 40px;margin-top: 12px;float:left;"><small>player</small></div-->|[[File:{{{character|}}}.png|40px]]}}  | }} {{{title|''Dialogue''}}}
|{{#if: {{{isAnswer|}}}| →&nbsp;&nbsp; |}}{{#if: {{{character|}}} | {{#ifeq:{{{character|}}}|Player|<!--div style="width:40px;height: 40px;margin-top: 12px;float:left;"><small>player</small></div-->|[[File:{{{character|}}}.png|40px]]}}  | }} {{{title|''Dialogue''}}}
|-
|-
|{{{1|}}}
|{{{1|}}}
Line 11: Line 11:
|{{{1|}}}
|{{{1|}}}
|}
|}


{{labeledDialogueBox|character=Player|indent=1|title=What's on your mind?|
{{labeledDialogueBox|character=Player|indent=1|title=What's on your mind?|
Line 78: Line 79:
|}
|}


BEFORE
{{labeledDialogueBox|title=How are you today?|
{{dialogue|character=Player|text=How are you today?}}
{{dialogue|character=Maui|text=I can tell what you're thinking. How does he have such great hair? It's kind of my thing.}}
{{dialogue|answer=That's EXACTLY what I was thinking.|character=Maui|text=See! And to answer your obvious next question...}}
  {{labeledDialogueBox|indent=1|character=Maui|title=See! And to answer your obvious next question...|
  {{dialogue|character=Maui|text=See! And to answer your obvious next question...}}
  {{dialogue|character=Maui|text=Yes, I DO wake up looking this good. I don't think your human brains could handle me looking any better.}}
  {{dialogue|answer=Actually, your hair is a bit frizzy today...|character=Maui|text=What?! Too much salt spray? I've er....gotta go. Bye!}}
  {{dialogue|answer=Keep doing what you're doing!|character=Maui|text=TODOResponseKeepDoing}}
  }}
{{dialogue|answer=That's NOT what I was thinking. At. All.|character=Maui|text=Oh? Then you were admiring my tattoos.}}
  {{labeledDialogueBox|indent=1|character=Maui|title=Oh? Then you were admiring my tattoos.|
  {{dialogue|character=Maui|text=Oh? Then you were admiring my tattoos.}}
  {{dialogue|character=Player|text=I was thinking...}}
  {{dialogue|answer=Your hair's a bit flat today.|character=Maui|text=What?! How did that happen? Too much salt spray? I've, er... gotta go. Bye!}}
  {{dialogue|answer=You're too full of yourself.|character=Maui|text=Hey, it's hard being this perfect all the time. Maybe that's my flaw... I'm too perfect.}}
  {{dialogue2|answer=Just keep doing what you're doing!|character=Maui|text=Right! Why improve on perfection? YOU are smart.|text2=It's always great talking to you, '''''Player'''''.}}
  }}
}}
AFTER
{{labeledDialogueBox|title=How are you today?|
{{dialogue|character=Player|text=How are you today?}}
{{dialogue|character=Maui|text=I can tell what you're thinking. How does he have such great hair? It's kind of my thing.}}
  {{labeledDialogueBox|isAnswer=1|indent=1|character=Player|title=That's EXACTLY what I was thinking.|
  {{dialogue|character=Player|text=That's EXACTLY what I was thinking.}}
  {{dialogue|character=Maui|text=See! And to answer your obvious next question...}}
  {{dialogue|character=Maui|text=Yes, I DO wake up looking this good. I don't think your human brains could handle me looking any better.}}
  {{dialogue|answer=Actually, your hair is a bit frizzy today...|character=Maui|text=What?! Too much salt spray? I've er....gotta go. Bye!}}
  {{dialogue|answer=Keep doing what you're doing!|character=Maui|text=TODOResponseKeepDoing}}
  }}
  {{labeledDialogueBox|isAnswer=1|indent=1|character=Player|title=That's NOT what I was thinking. At. All.|
  {{dialogue|character=Player|text=That's NOT what I was thinking. At. All.}}
  {{dialogue|character=Maui|text=Oh? Then you were admiring my tattoos.}}
  {{dialogue|character=Player|text=I was thinking...}}
  {{dialogue|answer=Your hair's a bit flat today.|character=Maui|text=What?! How did that happen? Too much salt spray? I've, er... gotta go. Bye!}}
  {{dialogue|answer=You're too full of yourself.|character=Maui|text=Hey, it's hard being this perfect all the time. Maybe that's my flaw... I'm too perfect.}}
  {{dialogue2|answer=Just keep doing what you're doing!|character=Maui|text=Right! Why improve on perfection? YOU are smart.|text2=It's always great talking to you, '''''Player'''''.}}
  }}
}}


</noinclude>
</noinclude>
moderator
26,813

edits