Template:Textbox

From NeoDex
Jump to navigation Jump to search


Usage[edit]

textbox elements create CSS baset boxes and tables. The presentation is controlled by MediaWiki:Common.css.

       Usage: {{textbox|attributes|head_line|text}}
or in tables: class="textbox attributes"
  • attributes is one or more of the following keywords:
    • Color scheme:
      • news: news (=cyan)
    • Concrete colors: red, orange, yellow, green, cyan, blue, magenta, white, gray and black
    • Alignment:
      • center: centered text.
      • float-left: left floated textbox or table.
      • float-right: right floated textbox or table.
    • Options:
      • headline: The first line is a column header and will be set with a emphasized color.
      • grid: A colored grid (tables only).
      • alt: Alternating row colors (tables only).
      • large: Head line and text is enlarged by 20%.
      • huge: Head line and text is enlarged by 40%.
  • head_line: The head line of the textbox or table, always centerd.
  • text: free wiki text for textbox body.

Textbox Examples[edit]

standard textbox
Textbox without attributes

Named schemas for special usage[edit]

This named schemes are preferred over the contrete colors.

Table 'news'

Attributes: news

A short sentence.

A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.

Concrete Colors[edit]

Textbox examples with alternating attributes:

Table 'red'

Attributes: red

A short sentence.

A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.

Table 'orange large'

Attributes: orange large

A short sentence.

A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.

Table 'yellow huge'

Attributes: yellow huge

A short sentence.

A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.

Table 'green center'

Attributes: green center

A short sentence.

A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.

Table 'cyan'

Attributes: cyan

A short sentence.

A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.

Table 'blue large'

Attributes: blue large

A short sentence.

A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.

Table 'magenta huge'

Attributes: magenta huge

A short sentence.

A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.

Table 'white center'

Attributes: white center

A short sentence.

A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.

Table 'gray'

Attributes: gray

A short sentence.

A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.

Table 'black large'

Attributes: black large

A short sentence.

A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.

Tabellen Examples[edit]

The following examples show tables with alternating attribute. The right tables use additionally flat-right'.

Table 'red alt grid float-right'
Attributes: red alt grid float-right
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'orange alt float-right'
Attributes: orange alt float-right
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'yellow grid float-right'
Attributes: yellow grid float-right
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'green float-right'
Attributes: green float-right
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'cyan alt grid float-right'
Attributes: cyan alt grid float-right
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'blue alt float-right'
Attributes: blue alt float-right
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'magenta grid float-right'
Attributes: magenta grid float-right
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'white float-right'
Attributes: white float-right
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'gray alt grid float-right'
Attributes: gray alt grid float-right
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'black alt float-right'
Attributes: black alt float-right
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'red headline'
<th> <td>
Attributes: red headline
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'orange grid headline'
<th> <td>
Attributes: orange grid headline
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'yellow alt headline'
<th> <td>
Attributes: yellow alt headline
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'green alt grid headline'
<th> <td>
Attributes: green alt grid headline
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'cyan headline'
<th> <td>
Attributes: cyan headline
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'blue large grid headline'
<th> <td>
Attributes: blue large grid headline
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'magenta huge alt headline'
<th> <td>
Attributes: magenta huge alt headline
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'white center alt grid headline'
<th> <td>
Attributes: white center alt grid headline
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'gray headline'
<th> <td>
Attributes: gray headline
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.
Table 'black grid headline'
<th> <td>
Attributes: black grid headline
Text 1: A short sentence.
Text 2: A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 3: A longer message. The message is repeated several times. A longer message. The message is repeated several times. A longer message. The message is repeated several times.
Text 4: A short sentence.