Template:Messagebox: Difference between revisions

From Umamusume Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><templatestyles src="Messagebox/styles.css" /> {|align=center cellpadding="2" cellspacing="1" style="border-width:1px;border-color:{{#if:{{{color|}}}|{{{color|}}}|black}}; border-style:solid; clear:both;border-radius:16px;{{#if:{{{light_color|}}}|background-color:{{{light_color|}}}}};" |<span><font color="{{{color|}}}"><center>{{#if:{{{header|}}}|'''{{{header|}}}'''<br/>}}{{#if:{{{text|}}}|{{{text|}}}<br/>}}</center></font></span> |{{#if:{{{image|}}}|<span s...")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Messagebox/styles.css" />
<includeonly><templatestyles src="Messagebox/styles.css" />
{|align=center cellpadding="2" cellspacing="1" style="border-width:1px;border-color:{{#if:{{{color|}}}|{{{color|}}}|black}}; border-style:solid; clear:both;border-radius:16px;{{#if:{{{light_color|}}}|background-color:{{{light_color|}}}}};"
{|align=center cellpadding="2" cellspacing="1" style="border-width:1px;border-color:{{#if:{{{color|}}}|{{{color|}}}|black}}; border-style:solid; clear:both;border-radius:16px;{{#if:{{{light_color|}}}|background-color:{{{light_color|}}}}};{{#if:{{{max_width|}}}|max-width:{{{max_width|}}}}}"
|<span><font color="{{{color|}}}"><center>{{#if:{{{header|}}}|'''{{{header|}}}'''<br/>}}{{#if:{{{text|}}}|{{{text|}}}<br/>}}</center></font></span>
|<span><font color="{{{color|}}}"><center>{{#if:{{{header|}}}|'''{{{header|}}}'''<br/>}}{{#if:{{{text|}}}|{{{text|}}}<br/>}}</center></font></span>
|{{#if:{{{image|}}}|<span style="padding:5px 5px 5px 5px;">[[File:{{{image|}}}|70x70px|class=round]]</span>}}
|{{#if:{{{image|}}}|<span style="padding:5px 5px 5px 5px;">[[File:{{{image|}}}|70x70px|class=round]]</span>}}
Line 6: Line 6:
</includeonly><noinclude>
</includeonly><noinclude>
{{Messagebox|color=firebrick|light_color=hsla(0, 100%, 80%, 0.5)|header=This is a probably important message!|text=You should probably listen to what this message box says.<br/>You can also do line breaks!|image=Agemasen.jpg}}
{{Messagebox|color=firebrick|light_color=hsla(0, 100%, 80%, 0.5)|header=This is a probably important message!|text=You should probably listen to what this message box says.<br/>You can also do line breaks!|image=Agemasen.jpg}}
</noinclude>
<templatedata>
{
"params": {
"color": {
"description": "This defines the color for the box border and the text inside of it. If left blank, it defaults to black. You can use HEX, RGB(A), HSLA(A) or the default HTML names.",
"example": "#d800ff, rgb(216, 0, 255), hsla(291, 100%, 50%, 0.5)"
},
"light_color": {
"description": "Lighter color used for the background of the box. This is preferably something with a lower alpha value, to make text easy to read. You can use HEX, RGB(A), HSLA(A) or the default HTML names.",
"example": "#d800ff, rgb(216, 0, 255), hsla(291, 100%, 50%, 0.5)"
},
"header": {},
"text": {},
"image": {},
"max_width": {}
}
}
</templatedata></noinclude>

Latest revision as of 20:07, 3 August 2024

This is a probably important message!
You should probably listen to what this message box says.
You can also do line breaks!

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
colorcolor

This defines the color for the box border and the text inside of it. If left blank, it defaults to black. You can use HEX, RGB(A), HSLA(A) or the default HTML names.

Example
#d800ff, rgb(216, 0, 255), hsla(291, 100%, 50%, 0.5)
Unknownoptional
light_colorlight_color

Lighter color used for the background of the box. This is preferably something with a lower alpha value, to make text easy to read. You can use HEX, RGB(A), HSLA(A) or the default HTML names.

Example
#d800ff, rgb(216, 0, 255), hsla(291, 100%, 50%, 0.5)
Unknownoptional
headerheader

no description

Unknownoptional
texttext

no description

Unknownoptional
imageimage

no description

Unknownoptional
max_widthmax_width

no description

Unknownoptional