Template:Ombox/doc

From GT New Horizons

Syntax

{{ombox
| name = name of the template
| type  = speedy / delete / content / style / notice / move / protection
| image = none / [[File:Some image.svg|40px]]
| imageright = [[File:Some image.svg|40px]]
| style = CSS values
| textstyle = CSS values
| plainlinks = no
| text  = The message body text. 
| small = {{{small|}}} / yes
| smallimage = none / [[File:Some image.svg|30px]]
| smallimageright = none / [[File:Some image.svg|30px]]
| smalltext  = A shorter message body text.
}}

Usage

Ombox ([O]ther pages [M]essage [box]) is used to build message box templates not covered by other mbox templates. Piped parameters can be listed as a single line, and unused parameters omitted. The spacing in the example code is only for ease of reading. More examples can be found on the Wikipedia page, linked below.

  • name (optional) template name
  • type (required, defaults to notice) defines the box border color
  • image (required, defaults to the type's image if not specified. Use image=none for no image.
  • imageright (optional) puts a second image on the right of the message box.
  • style (optional) CSS values for the entire message box.
  • textstyle (optional) CSS values applied to all text in box.
  • plainlinks (optional) external link icon is suppressed by default. plainlinks=no restores default behavior.
  • text (required) message box's text content.
  • small (optional) Use small=yes for a small right-float message box.
  • smallimage / smallimageright (optional) overrides image and imageright if small=yes
  • smalltext (optional) overrides text if small=yes.

Examples

{{ombox
| type      = style
| image     = [[File:Emblem-question-yellow.svg|40px]]
| style     = width: 400px; 
| textstyle = color: red; font-weight: bold; font-style: italic;
| text      = The message body text.
}}
{{ombox
| type            = move
| smallimage      = [[File:TaintFlask.png|30px]]
| smallimageright = [[File:TaintFlask.png|30px]]
| small           = yes
| textstyle       = color: purple; font-variant: small-caps; text-align: center;
| text            = NEI '''lies''' 
}}

See also

Message box templatesTemplate:Mbox {{ambox}}{{asbox}}{{cmbox}}{{dmbox}}{{fmbox}}{{imbox}}{{ombox}}{{tmbox}}