Template:MicroWiki/Box/doc

Da MicroWiki.
Vai alla navigazione Vai alla ricerca

Template:Documentation subpage Template:Uses TemplateStyles Internal template used to easily generate a Main-Page-style box.

Parameters

  • height – Accepts a height value with units specified, ignored unless given. Ex: 100%.
  • balign – Accepts left/center/right. Left and right create half-width boxes, center creates a full-width box. Defaults to center.
  • icon – Bare file name. Defaults to MicroWiki Logo Black.png. Optional parameter.
    • iconsize – Icon size, including px. Defaults to 20px. Ignored unless icon = is given.
    • iconborder – Accepts anything. If given, will display a border around the icon. Ignored unless icon = is given.
    • iconlink – Accepts anything. If given, icon will send the reader to the given page or address. Ignored unless icon = is given.
  • halign – Accepts left/center/right/box, defaults to left. If set to "box," the header will inherit the alignment of the box.
  • header – Accepts anything. Defaults to "Header."
  • calign – Accepts left/center/right/box, defaults to left. If set to "box," the contents will inherit the alignment of the box.
  • contents – Accepts anything. Defaults to "Contents."
  • lalign – Accepts left/center/right/box. If set to "box," the contents will inherit the alignment of the box. Defaults to right.
  • label – Accepts anything. Hidden by default.

Example

{{MicroWiki/Box
|balign     = right
|icon       = Flag of Austenasia.svg
|iconsize   = 25px
|iconborder = true
|iconlink   = Austenasia
|halign     = left
|header     = Example box
|calign     = box
|contents   = All fields accept templates, the label in this example uses {{tl|Purge}}.
|lalign     = left
|label      = {{purge|Refresh}}
}}

 Example box

All fields accept templates, the label in this example uses Template:Tl.