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%.
  • icon – Displays an icon at the top-left. 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.
  • mark – Displays an icon at the top-right. Bare file name. Optional parameter.
    • marksize – Icon size, including px. Defaults to 20px. Ignored unless mark = is given. Defaults to iconsize.
    • markborder – Accepts anything. If given, will display a border around the icon. Ignored unless mark = is given.
    • marklink – Accepts anything. If given, icon will send the reader to the given page or address. Ignored unless mark = is given.
  • halign – Accepts left/center/right, defaults to left.
  • header – Accepts anything. Defaults to "Header."
  • calign – Accepts left/center/right, defaults to left.
  • contents – Accepts anything. Defaults to "Contents."
  • lalign – Accepts left/center/right/box, defaults to right.
  • label – Accepts anything. Hidden by default.

Example

{{MicroWiki/Box
|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}}.