User:Deprecated/Template:DeprecatedTest: Difference between revisions
Jump to navigation
Jump to search
Deprecated (talk | contribs) (Test) |
Deprecated (talk | contribs) m (Test2) |
||
Line 1: | Line 1: | ||
<table class="metadata plainlinks mbox" style="border: 1px solid {{{bdcolor2|#525252}}}{{{borderstyle| | <table class="metadata plainlinks mbox" style="border: 1px solid {{{bdcolor2|#525252}}}; {{{borderstyle|border-left: 10px solid}}} {{{bdcolor|#537AA8}}}; margin: {{{margin|0 10%; margin-top: -1px}}}; background-color: {{{bgcolor|#28374b}}}; {{#if: {{{txtcolor|}}} | color: {{{txtcolor|}}} }}"> | ||
<tr> | <tr> | ||
<td class="mbox-image"> | <td class="mbox-image"> | ||
Line 47: | Line 47: | ||
And that will look like this: | And that will look like this: | ||
{{ | {{User:Deprecated/Template:DeprecatedTest | ||
|text = Text here | |text = Text here | ||
|small = Small text here | |small = Small text here | ||
Line 53: | Line 53: | ||
|image = [[File:en.png|55px|link=Template:Messagebox]] | |image = [[File:en.png|55px|link=Template:Messagebox]] | ||
|bgcolor = yellow | |bgcolor = yellow | ||
|bdcolor2 = blue | |||
|borderstyle = ; border-right: 15px solid | |||
|bdcolor = green | |bdcolor = green | ||
}} | }} | ||
Color parameters also accept hexademical codes. | Color parameters also accept hexademical codes. | ||
</noinclude> | </noinclude> |
Revision as of 18:18, 6 February 2020
![]() |
{{{text}}} |
Parameters (all except text are optional):
text = Write your text
small = Write small text
txtcolor = Color of all text
image = link_to_some_resource_or_page_at_this_wiki
- link in format ''http://...'' or just name of page at this wiki (like "Template:Messagebox" without quotes)
bgcolor = color of background
borderstyle = style of special border, by default left border
bdcolor = color of special border
bdcolor2 = color of overall box border
margin = margin style
An example:
{{messagebox |text = Text here |small = Small text here |txtcolor = Red |image = [[File:en.png|55px|link=Template:Messagebox]] (Leave blank for Info.png) |bgcolor = yellow |bdcolor = green |bdcolor2 = blue }}
And that will look like this:
Text here
|
Color parameters also accept hexademical codes.