Forgotten Realms Wiki
Advertisement
Forgotten Realms Wiki

This template creates boxes with fancy borders that are primarily for use as navigation boxes at the bottom of wiki pages. Currently there is only one theme available and, if not specified, defaults to "runes" as shown above. The simplest way to make a bordered box is to invoke the template as shown below.

Usage

{{Border box
| theme        = 
| title        = 
| subtitle     = 
| content      = 
| contentalign = 
| width        = 
| styles       = 
}}

Parameters

theme 
(Optional) Currently "runes" is the only theme available and is the default.
title 
(Optional) The title of your bordered box. Typically, it will be in a larger font, boldface, and centered.
subtitle 
(Optional) You may add a subtitle if you wish. Typically, it will be in a normal-sized font, boldface, and centered.
content 
(Required) The main content of the bordered box, usually a string of links. Start a new line by using <br /> tags. Typically, this will be in a smaller font.
contentalign 
(Optional) the text-align property of the content area may be set to "left", "right", "center", or "justify". The default is "left".
width 
(Optional) The default value is "90%" of the width of the viewing area, but you can override this using a percentage or an absolute width in pixels (px), inches (in), centimeters (cm), millimeters (mm), points (pt), picas (pc), or ems (em).
styles 
(Optional) You may specify additional CSS selectors to be applied to the overall bordered box. For example, margin: 10px; would add an additional 10 pixel margin around the entire box. Attributes and values must be separated by a colon (:) and selectors must be separated by a semicolon (;). Do not enclose the string in quotes, this is done inside the template. This is not to be used to alter the style of the bordered box—use the wiki's CSS for that.

Example

{{Border box
| theme        = 
| title        = [[Mephit]]s
| subtitle     = 
| content      = [[Air mephit]] • [[Dust mephit]] • [[Earth mephit]] • [[Fire mephit]] • [[Ice mephit]] • [[Magma mephit]] • [[Mud mephit]] • [[Smoke mephit]] • [[Steam mephit]] • [[Water mephit]]
| contentalign = center
| width        = 75%
| styles       = 
}}

Produces:

Advanced Styling

The same CSS classes that are used in this template can be used on wiki markup or HTML tables to achieve a bordered box while allowing much more flexibility with the layout. Note that there are two classes for each element: one that applies to all bordered boxes and one that applies to a particular theme of bordered box. For example, border-box-title and border-box-title-runes. Here is an example of a complex navigation box using the bordered box styles:

<div style="max-width: 1100px; margin-left: auto; margin-right: auto;">
<div class="border-box border-box-runes">
{| class="border-box-contentarea border-box-contentarea-runes" cellpadding="4" cellspacing="0" width="100%"
| colspan=2 class="border-box-title border-box-title-runes" | 5th edition sourcebooks
|-
! class="border-box-subtitle border-box-subtitle-runes" style="width:95px; border-right:1px solid #A0522D;" | Core rulebooks
| class="border-box-content border-box-content-runes" style="text-align:left;" | ''[[Player's Handbook 5th edition|Player's Handbook]]'' • ''[[Dungeon Master's Guide 5th edition|Dungeon Master's Guide]]'' • ''[[Monster Manual 5th edition|Monster Manual]]''
|-
! class="border-box-subtitle border-box-subtitle-runes" style="width:95px; border-right:1px solid #A0522D;" | Sourcebooks
| class="border-box-content border-box-content-runes" style="text-align: left;" | ''[[Dungeons & Dragons Starter Set]]'' • ''[[Elemental Evil Player's Companion]]'' • ''[[Sword Coast Adventurer's Guide]]'' • ''[[Volo's Guide to Monsters]]''
|-
! class="border-box-subtitle border-box-subtitle-runes" style="width:95px; border-right:1px solid #A0522D;" | Adventures
| class="border-box-content border-box-content-runes" style="text-align: left;" | ''[[Hoard of the Dragon Queen]]'' • ''[[The Rise of Tiamat]]'' • ''[[Princes of the Apocalypse]]'' • ''[[Out of the Abyss]]'' • ''[[Storm King's Thunder]]'' • ''[[Tales from the Yawning Portal]]''
|-
! class="border-box-subtitle border-box-subtitle-runes" style="width:95px; border-right:1px solid #A0522D;" | Playtest
| class="border-box-content border-box-content-runes" style="text-align: left;" | ''[[Vault of the Dracolich]]'' • ''[[Ghosts of Dragonspear Castle]]'' • ''[[Murder in Baldur's Gate]]'' • ''[[Legacy of the Crystal Shard]]'' • ''[[Scourge of the Sword Coast]]'' • ''[[Dead in Thay]]''
|}
</div></div>

Produces: