Template:Messagebox/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Doc/subpage}} <!-- Please place categories where indicated at the bottom of this page.) --> == Usage == {{Tsh|Mbox}} A simple message box. === Parameters === All parameters except {{param|text}} are optional.<br> All parameters except {{param|text}}, {{param|small}} and {{param|image}} refer to the table that represents the overall box. *{{param|text}} - Main text. *{{param|small}} - Small text under main text. *{{param|txtcolor}} - Color of both texts, e.g. <code>re...") |
(No difference)
|
Latest revision as of 02:33, 4 January 2025
| Undocumented Template You can help the Open Fortress Wiki by writing it. Until then, you'll have to read the source to figure out how to use it anyway. Which, I mean, while you're over there already... just saying, you may as well... |
Usage
A simple message box.
Parameters
All parameters except {{{text}}} are optional.
All parameters except {{{text}}}, {{{small}}} and {{{image}}} refer to the table that represents the overall box.
- {{{text}}} - Main text.
- {{{small}}} - Small text under main text.
- {{{txtcolor}}} - Color of both texts, e.g.
redor#ff0000. - {{{txtstyle}}} - Style of all text, default is
normal. - {{{image}}} - An image. Default is
[[File:Info.png|40px|link=]]. Useimage=orimage=Noneto get no image. - {{{bgcolor}}} - Background color. Default is
#28374b. - {{{bgcolorgradient}}} - Background color with linear gradients. (Optional)
- {{{bgcolorgradient2}}} - Same as above, but on the other side. (Optional)
- {{{bgcolordeg}}} - Degrees for linear gradient.
- {{{borderstyle}}} - Style of special border, which will be followed by {{{bdcolor}}}. Default is
border-left: 10px solid. Useborderstyle=for no special border. - {{{bdcolor}}} - Special border color. Default is
#537AA8. - {{{bdcolor2}}} - Overall box border color. Default is
#525252. - {{{margin}}} - Margin style. Default is
0 10%. - {{{style}}} - More style parameters for the overall box, which is a table.
Examples
| Wikitext | Result |
|---|---|
{{messagebox|text=Message text.}}
|
Message text.
|
{{messagebox
|text = Text here
|small = Small text here
|txtcolor = pink
|txtstyle = italic
|image = [[File:en.png|55px|link=Template:Messagebox]]
|bgcolor = purple
|bdcolor = green
|bdcolor2 = yellow
|style=padding:1em
}}
|
Text here
Small text here |