Jump to content

Template:DialogueBox: Difference between revisions

From Cult of Flight Wiki
watched a vid on youtube about ts so I'm gonna check if this works or not (this page is technically a placeholder)
 
mNo edit summary
 
(54 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}}}
{{#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>

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