Difference between revisions of "Template:ModalBox"
From sureai
(Add optional width parameter) |
m (Remove extra newline) |
||
Line 3: | Line 3: | ||
| style="padding: 10px; line-height: 1.7" | <span style="font-size: 150%">'''{{{title}}}''' </span> <br/> {{#if: {{{quote|}}} | ''"{{{quote}}}"'' <br/> |}} {{{description}}} | | style="padding: 10px; line-height: 1.7" | <span style="font-size: 150%">'''{{{title}}}''' </span> <br/> {{#if: {{{quote|}}} | ''"{{{quote}}}"'' <br/> |}} {{{description}}} | ||
|} | |} | ||
− | |||
<noinclude> | <noinclude> | ||
==Usage== | ==Usage== | ||
Line 41: | Line 40: | ||
|title=Attention! | |title=Attention! | ||
|description=Thank you for the attention.}} | |description=Thank you for the attention.}} | ||
− | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 18:08, 23 August 2016
{{{title}}} {{{description}}} |
Usage
Parameters
- title: Title of the box.
- description: Description of the box.
- quote: Descriptive quote of the box.
- width (Optional): The CSS width of the box. Defaults to
500px
- image (Optional): Name of the File: containing the image shown in the box. Defaults to
File:SureaiLogo2016.png
. - color (Optional): The CSS color to be used for the background of the box. Defaults to
RGB(200, 200, 200)
.
Examples
{{ModalBox |image=File:Ico_enderal_s.png |width=800px |color=RGB(200, 150, 150) |title=Spoiler |quote=You see the past, and therefore, the future. |description=The following page or section contains major plot points in Enderal's main story. Thread carefully.}}
Spoiler | |
“You see the past, and therefore, the future.” | |
The following page or section contains major plot points in Enderal's main story. Thread carefully. |
{{ModalBox |title=Attention! |description=Thank you for the attention.}}
Attention! | |
Thank you for the attention. |