Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:MessageBox: Difference between revisions

Template page
Created page with "<onlyinclude> {| style="width:{{{width|40%}}}; height:{{{height|100px}}}; border:{{{border-size|2px}}} solid {{{border-color|darkgray}}}; background-color:{{{background-color|white}}}; {{{align_type|margin}}}:{{{align|auto}}}; border-radius:10px;" |- | rowspan="2" style="width:80px; vertical-align:center;"| [[File:{{{image|Icon_Unknown.png}}}|{{{image-size|80px}}}]] | style="vertical-align: bottom; height:32px; color:{{{header-color|black}}};"| <big>'''{{{header-text|He..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
{| style="width:{{{width|40%}}}; height:{{{height|100px}}}; border:{{{border-size|2px}}} solid {{{border-color|darkgray}}}; background-color:{{{background-color|white}}}; {{{align_type|margin}}}:{{{align|auto}}}; border-radius:10px;"
{| style="width:{{{width|40%}}}; height:{{{height|100px}}}; border:{{{border-size|2px}}} solid {{{border-color|darkgray}}}; background-color:{{{background-color|#303030}}}; {{{align_type|margin}}}:{{{align|auto}}}; border-radius:10px;"
|-  
|-  
| rowspan="2" style="width:80px; vertical-align:center;"| [[File:{{{image|Icon_Unknown.png}}}|{{{image-size|80px}}}]]
| rowspan="2" style="width:80px; vertical-align:center;"| [[File:{{{image|Icon_Unknown.png}}}|{{{image-size|100px}}}]]
| style="vertical-align: bottom; height:32px; color:{{{header-color|black}}};"| <big>'''{{{header-text|Header text}}}'''</big>
| style="vertical-align: bottom; height:40px; font-family:'Comic Mystery'; color:{{{header-color|white}}}; text-shadow: 3px 3px 2px black;"| <big>'''{{{header-text|Header text}}}'''</big>
|- style=""
|- style=""
| style="vertical-align: top; color:{{{body-color|black}}}; padding-bottom:15px;"| {{{body-text|Body text}}}
| style="vertical-align: top; font-family:'Pop Happiness'; font-size:18px; color:{{{body-color|white}}}; padding-bottom:15px; text-shadow: 2px 2px 2px black;"| {{{body-text|Body text}}}
|}
|}
</onlyinclude>
</onlyinclude>

Latest revision as of 16:46, 8 October 2024

Header text
Body text


Syntax

{{MessageBox|<variable1>=<value1>|<variable2>=<value2>|...}}


List of usable variables:

width: Determines the overall width of the message box. Can be in either pixels (px) or percentage of page width. Default value is 40%.

height: Determines the overall height of the message box. Can be in either pixels (px) or percentage of page height. Default value is 80px.

border-size: Determines the weight (in px) of the message box's border. Default value is 2px.

border-color: Determines the color of the message box's border. Can either be a color name or hex code. Default value is darkgray.

background-color: Determines the background color of the message box. Can either be a color name or hex code. Default value is white.

align_type: Determines the alignment type to use for the message box, either margin or float. Default is margin.

align: Determines the alignment of the message box. Options are left, right, and auto (center if align_type is set to float). Default is auto.

image: Determines the image displayed on the left-hand side of the message box. Takes the name of a file name as input. Default value is Icon_Unknown.png.

image-size: Determines the overall size of the image displayed on the left-hand side of the message box. Default is 80px.

header-color: Determines the color of the text shown in the header of the message box. Default value is black.

header-text: Determines the text shown in the header of the message box. Default value is Header text.

body-color: Determines the color of the text shown in the body of the message box. Default value is black.

body-text: Determines the text shown in the body of the message box. Default value is Body text.