Template:DialogueBox: Difference between revisions

mNo edit summary
mNo edit summary
 
(53 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="mw-customtoggle-dialogue2" style="width: 500px;padding: 16px;border: 2px solid white;margin: 0;text-align: justify;color: white; background-color: black;"  
<includeonly> <div class="content-box {{#if:{{{content|}}} | mw-customtoggle-{{{id}}} | }}" style="width: 500px; padding: 16px; border: 2px solid white; margin-top: 15px; text-align: justify; color: white; background-color: black;"> '''> {{{name|}}}''' <br> {{{line|}}}
|> {{{name}}} <br>
{{#if:{{{content|}}} | <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{id}}}" style="color:white;"> {{{content}}} </div> |}} {{#if: {{{content|}}} | <div style="display: block; text-align:right; position: relatiive;">✽</div> |}}
|-
</div> </includeonly>
|{{{line}}}
 
{| class="mw-collapsible mw-collapsed" id="mw-customcollapsible-dialogue2" style="color:white;"
<noinclude>
|{{{content}}}
Example usage: <pre>
|}
{{DialogueBox
|}
|id=ExampleID
|name=ExampleName
|line=ExampleLine
|content=ExampleContent
|}}
</pre>
 
'''Note''': the 'id' parameter is to ensure that the boxes won't open at the same time
 
</noinclude>