Jump to content

Template:Portalbox

From Wikipedia, the free encyclopedia


Description

General

This template generates a box. A title may be optionally included; the content can be provided from an external page or inline. For external content the box has and edit link at the top right.

Aim

This box is especially useful for the construction of a portal, hence the name. It enables the content and design of the portal to be cleanly separated from one another; the subpages only contain the content and the portal page just contains the code for the design.

Variables

  • title ist the title of the box as displayed at the top.
  • link is the address of the page which holds the content. It is also editable by clicking on the link Edit.
  • titleforeground is the colour of the title text.
  • titlebackground is the background colour of the title.
  • boxbackground is the background colour of the whole box.
  • bordercolor is the colour of the frame.
  • inline is the content of the box, if no link is given.
  • height is the exact height of the content area (e.g. 200px). If this is exceeded, a scrollbar is displayed.

Examples

EditWecome to the Pomerania portal
{{Portalbox | title=Lorem ipsum | titleforeground=#000000 | titlebackground=#cccccc | boxbackground=#ffffff | bordercolor=#cccccc | height=100px | inline= Lorem ipsum … }}
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

  • Images may exceed the box size. In that case use a {{subst:section}} at the end of the content page.

See also