Template:Messagebox: Difference between revisions
Jump to navigation
Jump to search
m (Removed hr. Could use a little more formatting but I'm lazy) |
Deprecated (talk | contribs) (Added borderstyle parameter, reordered documentation, documented bdcolor2 and margin parameters, added template shortcut) |
||
Line 1: | Line 1: | ||
<table class="metadata plainlinks mbox" style="border: 1px solid {{{bdcolor2|#525252}}}; border-left: 10px solid {{{bdcolor|#537AA8}}}; margin: {{{margin|0 10%; margin-top: -1px}}}; background-color: {{{bgcolor|#28374b}}}; {{#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}}}; background-color: {{{bgcolor|#28374b}}}; {{#if: {{{txtcolor|}}} | color: {{{txtcolor|}}} }}"> | ||
<tr> | <tr> | ||
<td class="mbox-image"> | <td class="mbox-image"> | ||
Line 9: | Line 9: | ||
</td> | </td> | ||
</tr> | </tr> | ||
</table> | </table><noinclude> | ||
<noinclude | {{Tsh|Mbox}} | ||
==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 | text = Write your text | ||
small = Write small text | small = Write small text | ||
txtcolor = Color of all text | txtcolor = ''Color 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 35: | Line 29: | ||
bgcolor = ''color of background'' | bgcolor = ''color of background'' | ||
bdcolor = ''color of border'' | 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'' | |||
===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> | |||
Result: | |||
{{messagebox | {{messagebox | ||
|text = Text here | |text = Text here | ||
Line 45: | Line 58: | ||
|bgcolor = yellow | |bgcolor = yellow | ||
|bdcolor = green | |bdcolor = green | ||
|bdcolor2 = blue | |||
}} | }} | ||
[[Category:Notice templates|{{PAGENAME}}]] | [[Category:Notice templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 18:26, 6 February 2020
![]() |
{{{text}}} |
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
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
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 }}
Result:
Text here
|