Template:Abox

From Unreal Software English Wiki
Revision as of 16:46, 25 August 2011 by EngiN33R (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
px {{{text}}}


Ambox notice.png Documentation
[edit] · [purge]

This template is used for creating different article message boxes.

Contents

Syntax

This template has 8 variables.

{{abox
|image=ImageName.ext
|image-size=Size
|noimage=NoImage
|bar-color=BarColor
|bg-color=BackgroundColor
|border-color=BorderColor
|text=Info
|width=BoxWidth
}}

ImageName.ext - name of the image file. Do NOT include the namespace (File:)! If not specified will be set to Ambox notice.png optional

Size - size of the image in pixels. If the image needs to be resized specify a value. Do NOT include px! If not specified will keep original size. optional

NoImage - hides the image. If an image is not needed in the box, set it to true. If not specified will show the image. optional

BarColor - color of the left bar. If not specified will be set to ████ optional

BackgroundColor - color of the background behind the text. If not specified will be set to white. optional

BorderColor - color of the box border. If not specified will be set to ████ optional

Info - text inside the box. compulsory

BoxWidth - width of the box. Set it only if you need a box with a fixed width. If not specified the box will be resized according to the length of the text. optional

Examples

  • {{abox|image=Pencil.png|bar-color=orange|bg-color=#ffeeee|border-color=orange|text=Lorem ipsum dolor sit amet}}
Result:
px Lorem ipsum dolor sit amet
  • {{abox|image=User.png|image-size=48|bg-color=#edebff|border-color=royalblue|text=Lorem ipsum dolor sit amet}}
Result:
User.png Lorem ipsum dolor sit amet

Known bugs

  • Graphical bug when put inside a wikitable table in form of dark gray bars before and after the image the height of the full box and the width of 2 pixels.

See also

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox