Template:Messagebox

Da Valve Developer Community.
Vai alla navigazione Vai alla ricerca
English (en)
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Icon-translate.png Available doc translations
Info.png
The Template:Messagebox/doc/it documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.


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. red or #ff0000.
  • {{{txtstyle}}} - Style of all text, default is normal.
  • {{{image}}} - An image. Default is [[File:Info.png|40px|link=]]. Use image= or image=None to 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. Use borderstyle= 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.}}
{{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
}}