Template:MessageBox

From Frictional Wiki
Revision as of 19:26, 25 July 2020 by TiMan (talk | contribs) (→‎Added ParserFunctions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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: