Template:Speech: Difference between revisions
(color code → border color) Tag: 2017 source edit |
(added another parameter) Tag: 2017 source edit |
||
Line 2: | Line 2: | ||
<div class="TemplateRevision" style="margin-bottom: 18px; border: 1px solid #171818; border-radius: 20px"> | <div class="TemplateRevision" style="margin-bottom: 18px; border: 1px solid #171818; border-radius: 20px"> | ||
<div class="container" style="display: block; border-color: {{{2|#0f1011}}}; border-radius: 20px"> | <div class="container" style="display: block; border-color: {{{2|#0f1011}}}; border-radius: 20px"> | ||
<p class="header1" style="text-align: center;">{{{3|}}}</h1> | |||
<p class="header3" style="text-align: center;">{{{1}}}</p> | <p class="header3" style="text-align: center;">{{{1}}}</p> | ||
</div> | </div> | ||
Line 9: | Line 10: | ||
{{speech|Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br> | {{speech|Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br> | ||
Ut dictum odio nec ipsum suscipit, id accumsan neque eleifend.<br> | Ut dictum odio nec ipsum suscipit, id accumsan neque eleifend.<br> | ||
Pellentesque et nisl non nisl facilisis finibus nec non ante.<br>|red | Pellentesque et nisl non nisl facilisis finibus nec non ante.<br>|red|Hello World! | ||
}} | }} | ||
<templatedata> | <templatedata> | ||
Line 32: | Line 33: | ||
], | ], | ||
"default": "#0f1011" | "default": "#0f1011" | ||
}, | |||
"3": { | |||
"label": "Title", | |||
"description": "Adds a title to the speech box.", | |||
"example": "Lorem Ipsum", | |||
"type": "string" | |||
} | } | ||
}, | }, | ||
"description": "This template inserts an NPC speech box into a page." | "description": "This template inserts an NPC speech box into a page.", | ||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"3" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 20:23, 25 May 2023
Hello World!
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Ut dictum odio nec ipsum suscipit, id accumsan neque eleifend.
Pellentesque et nisl non nisl facilisis finibus nec non ante.
This template inserts an NPC speech box into a page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text | 1 | Whatever you want the speech box to display. Supports newlines, if used with the <br> HTML tag.
| String | required |
Border Color | 2 | Determines the color of the border. Can be a hex color code or any of the suggested values.
| String | optional |
Title | 3 | Adds a title to the speech box.
| String | optional |