Template:DialogueBox: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
| (47 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<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|}}} | |||
{{#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> | |||
{| class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{id}}}" 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> | |||
Latest revision as of 23:55, 12 April 2026
Example usage:
{{DialogueBox
|id=ExampleID
|name=ExampleName
|line=ExampleLine
|content=ExampleContent
|}}
Note: the 'id' parameter is to ensure that the boxes won't open at the same time