Portal:Alps/box

 

General
This template generates a box. A title may be optionally added; the contents can be transcluded from an external page or entered inline. With external contents the box has an "edit" link.

Aim
This box is being used for Portal:Alps but is especially well suited for the construction of portals in general. It enables the contents and design to be cleanly separated from one another; the subpages only contain the contents, and the portal page only holds the design.

Variables

 * title is the title of the box, as it is displayed at the top.
 * link is the address of the page where the contents are listed. It may be edited by clicking on the "edit" link.
 * titleforeground is the text colour of the title.
 * titlebackground is the background colour of the title.
 * boxbackground is the background colour of the whole box.
 * bordercolor is the colour of the box borders.
 * inline is the contents of the box, if no link is given.
 * hoehe is the exact height of the contents area (e.g. ). If this is exceeded, a scroll bar is created.

Problems

 * Images may project beyond the box.