User:Deprecated/Template:DeprecatedTest: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
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}}}; {{{textstyle|font-style: normal;}}} {{#if: {{{txtcolor|}}} | color: {{{txtcolor|}}} }}">
<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}}}; padding: {{{padding|}}}; font-style: {{{textstyle|normal}}}; background-color: {{{bgcolor|#28374b}}}; {{#if: {{{txtcolor|}}} | color: {{{txtcolor|}}} }}">
<tr>
<tr>
<td class="mbox-image">
<td class="mbox-image">
Line 23: Line 23:
txtcolor = ''Color of all text''
txtcolor = ''Color of all text''


textstyle = ''Style of all text''
txtstyle = ''Style of all text''


image = [[File:''name_of_image''|''width_of_image''|''link_to_some_resource_or_page_at_this_wiki'']]
image = [[File:''name_of_image''|''width_of_image''|''link_to_some_resource_or_page_at_this_wiki'']]
Line 38: Line 38:


margin = ''margin style''
margin = ''margin style''
padding = ''padding''


===Example===
===Example===
Line 45: Line 47:
|small = Small text here
|small = Small text here
|txtcolor = Red
|txtcolor = Red
|textstyle = font-style: italic;
|txtstyle = italic
|image = [[File:en.png|55px|link=Template:Messagebox]] (Leave blank for Info.png)
|image = [[File:en.png|55px|link=Template:Messagebox]] (Leave blank for Info.png)
|bgcolor = yellow
|bgcolor = yellow
|bdcolor = green
|bdcolor = green
|bdcolor2 = blue
|bdcolor2 = blue
|padding = 1em
}}
}}
</pre>
</pre>
Line 58: Line 61:
|small = Small text here
|small = Small text here
|txtcolor = Red
|txtcolor = Red
|textstyle = font-style: italic;
|txtstyle = italic
|image = [[File:en.png|55px|link=Template:Messagebox]]
|image = [[File:en.png|55px|link=Template:Messagebox]]
|bgcolor = yellow
|bgcolor = yellow
|bdcolor = green
|bdcolor = green
|bdcolor2 = blue
|bdcolor2 = blue
|padding = 1em
}}
}}
[[Category:Notice templates|{{PAGENAME}}]]
[[Category:Notice templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 15:48, 24 February 2020

Documentation

A simple messagebox template.

All parameters except text are optional, as they will be defined by default.

List of Parameters

text = Write your text

small = Write small text

txtcolor = Color of all text

txtstyle = Style 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; can be defined but left blank for no special border

bdcolor = color of special border

bdcolor2 = color of overall box border

margin = margin style

padding = padding

Example

{{messagebox
|text = Text here
|small = Small text here
|txtcolor = Red
|txtstyle = italic
|image = [[File:en.png|55px|link=Template:Messagebox]] (Leave blank for Info.png)
|bgcolor = yellow
|bdcolor = green
|bdcolor2 = blue
|padding = 1em
}}

Result: