Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu der Vergleichsansicht

wiki:plugin_columns [2013/07/11 10:00] (aktuell)
Zeile 1: Zeile 1:
 +~~NOCACHE~~
 +====== 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.
 +
 +<​code>​
 +<​columns>​
 +
 +information in column 1
 +
 +<​newcolumn>​
 +
 +information in column 2
 +
 +</​columns>​
 +</​code>​
 +
 +<​code>​
 +<columns 100% 50% - ->
 +
 +information in column 1 (50% width)
 +
 +<​newcolumn>​
 +
 +information in column 2
 +
 +<​newcolumn>​
 +
 +information in column 3
 +
 +</​columns>​
 +</​code>​
 +
 +
 +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.
 +
 +<​code>​
 +<columns 100% 25% 25%* *-* *->
 +
 +Justified text
 +
 +<​newcolumn>​
 +
 +Aligned on the left side
 +
 +<​newcolumn>​
 +
 +Center-aligned
 +
 +<​newcolumn>​
 +
 +Aligned on the right side
 +
 +</​columns>​
 +</​code>​
 +
 +
 +===== Beispiele =====
 +
 +**Beispiel 1:** Ein zweispaltiger Text, der 80% Seitebreite in Anspruch nimmt, erste Spalte ist rechtsbündig,​ zweite Spalte linksbündig ​
 +
 +<​code>​
 +<columns 80% *30% -*>
 +  ... spaltentext ...
 +<​newcolumn>​
 +  ... spaltentext ...
 +</​columns>​
 +</​code>​
 +
 +<columns 80% *30% -*>
 +**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. ​
 +<​newcolumn>​
 +**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. ​
 +</​columns>​
 +\\ \\ 
 +**Beispiel 2:** Spalten in einer Box
 +
 +<​code>​
 +<box 50%|<fc #​ff0000>​Abbildung:</​fc>​ Abbildungstitel>​
 +<​columns>​
 + ... abbildung ...
 +<​newcolumn>​
 + ... text zur abbildung ...
 +</​columns>​
 +</​box>​
 +</​code>​
 +
 +
 +<box 50%|<fc #​ff0000>​Abbildung:</​fc>​ Die Orgel><​columns>​
 +{{http://​nus.lugsp.at/​nussartfoto/​symmetrie/​slides/​img_4518.jpg?​300|Foto:​ Alfred Nussbaumer}}
 +<​newcolumn>​\\ \\ \\ 
 +//Die Orgel gilt als die Königin der Instrumente. Fredi kann sie besonders gut spielen. \\ \\
 +Gerne würde ich ihn einmal spielen hören... ;-)//
 +</​columns></​box>​\\
 +
 +===== Quelle und weitere Informationen =====
 +
 +Das [[doku>​plugin:​columns|Plugin Columns]] stammt von Michael Arlt.