Template:Box: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
m (default width=auto is wanted)
m (→‎Known Implementors: not gonna convert Infobox and Navbox right now.)
Line 32: Line 32:
''This list may not be kept up-to-date. For a more accurate list, see {{Catlink|Box Templates}}.''
''This list may not be kept up-to-date. For a more accurate list, see {{Catlink|Box Templates}}.''
*Light
*Light
**{{Temlink|Infobox}}
{{TODO|Convert {{Temlink|Infobox}} and {{Temlink|Navbox}} to implement Box}}
**{{Temlink|Navbox}}
*Dark
*Dark
**{{Temlink|Disambig}}
**{{Temlink|Disambig}}

Revision as of 01:40, October 15, 2012

Example
Default light box with a title.
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]].

  • Light
TODO: Convert {{Infobox}} and {{Navbox}} to implement Box

Usage

{{Box| dark? | align | width= | title= | 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.)
  • width — Width of the box, including units (such as "px", "em", "%"). (Optional.)
  • title — Title to be placed on the top of the box. (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}}. e.g.:

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