Difference between revisions of "Template:MessageBox"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
<tr> | <tr> | ||
<td class="mbox-image"> | <td class="mbox-image"> | ||
− | <div style="margin: 0 .5em;">{{{image|[[File:Info icon.png|40px|link=]]}}}</div> | + | {{#ifeq: {{{image}}} | None | | <div style="margin: 0 .5em;">{{{image|[[File:Info icon.png|40px|link=]]}}}</div> }} |
</td> | </td> | ||
<td class="mbox-text" style="width: 100%"> | <td class="mbox-text" style="width: 100%"> | ||
{{{text}}} | {{{text}}} | ||
− | <br/> | + | {{#if: {{{small|}}} | <br /><small>{{{small}}}</small> }} |
− | <small>{{{small | ||
</td> | </td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
− | |||
<noinclude> | <noinclude> | ||
==Documentation == | ==Documentation == | ||
Line 51: | Line 49: | ||
|txtstyle = italic | |txtstyle = italic | ||
|image = [[File:Warning icon.png|link=Template:MessageBox]] (Leave blank for default icon) | |image = [[File:Warning icon.png|link=Template:MessageBox]] (Leave blank for default icon) | ||
− | |bgcolor = | + | |bgcolor = black |
|bdcolor = green | |bdcolor = green | ||
|bdcolor2 = blue | |bdcolor2 = blue | ||
Line 65: | Line 63: | ||
|txtstyle = italic | |txtstyle = italic | ||
|image = [[File:Warning icon.png|link=Template:MessageBox]] | |image = [[File:Warning icon.png|link=Template:MessageBox]] | ||
− | |bgcolor = | + | |bgcolor = black |
|bdcolor = green | |bdcolor = green | ||
|bdcolor2 = blue | |bdcolor2 = blue |
Latest revision as of 20:26, 25 July 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
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:Warning icon.png|link=Template:MessageBox]] (Leave blank for default icon) |bgcolor = black |bdcolor = green |bdcolor2 = blue |padding = 0em }}
Result:
Text here
|