User:Deprecated/Template:DeprecatedTest: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Test2)
(Blank)
Line 1: Line 1:
<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>
<td class="mbox-image">
{{#ifeq: {{{image}}} | None | | <div style="margin: 0 .5em;">{{{image|[[File:Info.png|40px|link=]]}}}</div> }}
</td>
<td class="mbox-text" style="width: 100%">
{{{text}}}
{{#if: {{{small|}}} | <br /><small>{{{small}}}</small> }}
</td>
</tr>
</table><noinclude>
{{Tsh|Mbox}}
Parameters (all except text are optional):


text = Write your text
small = Write small text
txtcolor = ''Color of all text''
image = [[File:''name_of_image''|''width_of_image''|''link_to_some_resource_or_page_at_this_wiki'']]
:link in format <nowiki>''http://...''</nowiki> 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:
<pre>
{{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
}}
</pre>
And that will look like this:
{{User:Deprecated/Template:DeprecatedTest
|text = Text here
|small = Small text here
|txtcolor = Red
|image = [[File:en.png|55px|link=Template:Messagebox]]
|bgcolor = yellow
|bdcolor2 = blue
|borderstyle = ; border-right: 15px solid
|bdcolor = green
}}
Color parameters also accept hexademical codes.
</noinclude>

Revision as of 18:25, 6 February 2020