Template:DialogueBox: Difference between revisions
Appearance
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> {| {{#if: {{{content|}}} | class="mw-customtoggle-{{{id}}}" | }} style="width: 500px;padding: 16px;border: 2px solid white;margin: 15px;text-align: justify;color: white; background-color: black;" | <includeonly> {| {{#if: {{{content|}}} | class="mw-customtoggle-{{{id}}}" |}} style="width: 500px;padding: 16px;border: 2px solid white;margin: 15px;text-align: justify;color: white; background-color: black;" | ||
|'''> {{{name}}}''' <br> | |'''> {{{name}}}''' <br> | ||
|- | |- | ||
| {{{line|}}} | | {{{line|}}} | ||
{| class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{id}}}" style="color:white;padding: 1px;" | {{#if: {{{content|}}} | {| class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{id}}}" style="color:white;padding: 1px;"|{{{content|}}}|} }} | ||
|{{{content|}}} | |||
|} | |||
|} </includeonly> | |} </includeonly> | ||
Revision as of 00:37, 8 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