Template:LabeledDialogueBox: Difference between revisions

Add indent param - only 1 level option though, not sure how to use variables for mathematical expressions
m (No real changes, just experimenting with alternate formats and learning about table templating)
(Add indent param - only 1 level option though, not sure how to use variables for mathematical expressions)
Line 1: Line 1:
{|class="wikitable mw-collapsible mw-collapsed" style="width:80%; border-radius:5px;"
{|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: {{{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''}}}
|-
|-
Line 12: Line 12:
|}
|}


{{labeledDialogueBox|character=Player|title=What's on your mind?|
{{labeledDialogueBox|character=Player|indent=1|title=What's on your mind?|
{{dialogue|character=Mother Gothel|text=Oh, nothing. Will you help?}}
{{dialogue|character=Mother Gothel|text=Oh, nothing. Will you help?}}
{{dialogue|character=Mother Gothel|answer=Yes.|text=You're a doll.}}
{{dialogue|character=Mother Gothel|answer=Yes.|text=You're a doll.}}
{{dialogue|character=Mother Gothel|answer=No.|text=How cruel!}}
{{dialogue|character=Mother Gothel|answer=No.|text=How cruel!}}
   {{labeledDialogueBox|character=Mother Gothel|title=How cruel!|
   {{labeledDialogueBox|character=Mother Gothel|indent=true|title=How cruel!|
   {{dialogue|character=Mother Gothel|text=How cruel!}}
   {{dialogue|character=Mother Gothel|text=How cruel!}}
   {{dialogue|character=Player|text=Yep, I'm the worst.}}
   {{dialogue|character=Player|text=Yep, I'm the worst.}}
moderator
26,813

edits