Description
editGeneral
editThis 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
editThis 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
edit- 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.
200px
). If this is exceeded, a scroll bar is created.
Examples
edit{{Portal:Alps/box| titel=Lorem ipsum | titleforeground=#000000 | titlebackground=#cccccc | boxbackground=#ffffff | bordercolor=#cccccc | hoehe=100px | inline= Lorem ipsum … }}
Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
Problems
edit- Images may project beyond the box.