Plugin: Columns

Diese Dokuwiki-Erweiterung gestattet das Erstellen von Spalten auf einer Seite.

Syntax

Simply add two lines around your information and enter your column breaks.

The first parameter is the width of the table. The following parameters are for the columns. If you do not want to specify a value for the table- or column-width use “-“ instead.

<columns>

information in column 1

<newcolumn>

information in column 2

</columns>
<columns 100% 50% - ->

information in column 1 (50% width)

<newcolumn>

information in column 2

<newcolumn>

information in column 3

</columns>

By default the text in columns is justified. This can be changed by adding asterisks on either side of the column width specification. The asterisk indicates non-justified side of the text block, so to achieve left alignment add the asterisk on the right side.

<columns 100% 25% 25%* *-* *->

Justified text

<newcolumn>

Aligned on the left side

<newcolumn>

Center-aligned

<newcolumn>

Aligned on the right side

</columns>

Beispiele

Beispiel 1: Ein zweispaltiger Text, der 80% Seitebreite in Anspruch nimmt, erste Spalte ist rechtsbündig, zweite Spalte linksbündig

<columns 80% *30% -*>
  ... spaltentext ...
<newcolumn>
  ... spaltentext ...
</columns>
Erste Spalte
Das ist ein Fließtext zur Überschrift 1 gehörig. Das ist ein Fließtext zur Überschrift 1 gehörig. Das ist ein Fließtext zur Überschrift 1 gehörig. Das ist ein Fließtext zur Überschrift 1 gehörig. Das ist ein Fließtext zur Überschrift 1 gehörig. Das ist ein Fließtext zur Überschrift 1 gehörig. Das ist ein Fließtext zur Überschrift 1 gehörig. Das ist ein Fließtext zur Überschrift 1 gehörig.
Zweite Spalte
Das ist ein Fließtext zur Überschrift 2 gehörig. Das ist ein Fließtext zur Überschrift 2 gehörig. Das ist ein Fließtext zur Überschrift 2 gehörig. Das ist ein Fließtext zur Überschrift 2 gehörig. Das ist ein Fließtext zur Überschrift 2 gehörig. Das ist ein Fließtext zur Überschrift 2 gehörig. Das ist ein Fließtext zur Überschrift 2 gehörig. Das ist ein Fließtext zur Überschrift 2 gehörig.



Beispiel 2: Spalten in einer Box

<box 50%|<fc #ff0000>Abbildung:</fc> Abbildungstitel>
<columns>
 ... abbildung ...
<newcolumn>
 ... text zur abbildung ...
</columns>
</box>

Abbildung: Die Orgel

Foto: Alfred Nussbaumer


Die Orgel gilt als die Königin der Instrumente. Fredi kann sie besonders gut spielen.

Gerne würde ich ihn einmal spielen hören… ;-)


Quelle und weitere Informationen

Das Plugin Columns stammt von Michael Arlt.