Template:DialogueBox: Difference between revisions
Appearance
seeing those if functions in the template source codes made me feel like that one speed reading hieroglyphs gif |
mNo 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> | ||
|- | |- | ||
Revision as of 00:35, 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