Template:Box

From Zelda Dungeon Wiki
Revision as of 01:05, October 15, 2012 by Locke (talk | contribs) (Created page with "<onlyinclude><includeonly>{{#vardefine:type|}}{{#vardefine:align|}}{{#vardefine:contents|}}<!-- -->{{#switch: {{lc:{{{1|}}}}} | dark = {{#vardefine:type|dark}} | left = {{#v...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
Default light box.
Dark box floated right.

Purpose

This template creates a standard box, into which content or other templates can be placed. It currently supports two types: light and dark. Light boxes are usually utilized by other templates to set aside supplemental information, while dark boxes usually contain metadata for which an {{Ambox}} may not be appropriate.

Known Implementors

This list may not be kept up-to-date. For a more accurate list, see [[Box Templates]].

Usage

Basic usage: {{Box| dark? | align | contents }}

  • dark? — Boxes are light by default. For a dark box, use the argument "dark". (Optional. Default: light)
  • align — "left", "right", or "center". Left and right float the box so other content wraps around it. (Optional.)
  • contents — Everything that goes inside the box. (Optional.)

For contents that would be inconvenient to pass as an argument to a template due to high use of equal signs or pipe characters, such as tables, the contents can instead be included immediately after this template declaration and followed by {{Box/Bottom}}.

ExampleResult
{{Box|right}}
{| class="wikitable"
| table
|}
{{Box/Bottom}}
}}