Template:Messagebox: Difference between revisions

Jump to navigation Jump to search
no edit summary
(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...")
 
No edit summary
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": {}
}
}
</templatedata></noinclude>
755

edits

Navigation menu