Template:MicroWiki/Box/doc

From MicroWiki, the free micronational encyclopædia
Jump to navigation Jump to search

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 mark pure black.svg. 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 {{Purge}}.