~~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. information in column 1 ~~NEWCOL~~ information in column 2 information in column 1 (50% width) ~~NEWCOL~~ information in column 2 ~~NEWCOL~~ information in column 3 ==== Columns2 ==== The syntax is mostly identical to the original version, except that the new column keyword has to be specified within angle brackets((The syntax can be made fully compatible with the original version of plugin by un-checking "Wrap the new column tag" check box in the Configuration Settings.)): information in column 1 (50% width) information in column 2 information in column 3 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. Justified text Aligned on the left side Center-aligned Aligned on the right side ==== Columns3 ==== Following a number of requests, the plugin is re-designed to support headings and vertical alignment of the columns content. In order to support the new features syntax of the plugin is extended with extra attributes that should be specified in front of the column width: Content of the first column. Content of the second column. With this extra attributes the columns declaration gets more and more cluttered. To prevent that you can specify column attributes in the ''%%%%'' tag. In this case the order of the attributes and column width is not important: Content of the first column. Content of the second column. === Headings === The headings are specified the using the standard DokuWiki syntax: ===== Heading ===== Content of the first column. Content of the second column. By default plugin puts the content within a column without explicitly specifying the section level. This works fine when the entire columns block belongs to a single section but can produce unexpected results when the headings are used within the block: ====== Level 1 Heading ====== Implicit level 1 content. ===== Level 2 Headline 1 ===== Level 2 content. Implicit level 1 content that should be in level 2 section. ===== Level 2 Headline 2 ===== Level 2 content. You can force the beginning of the second column to be in level 2 by specifying "''continue''" attribute (or shorthand "''%%...%%''"): ====== Level 1 Heading ====== Implicit level 1 content. ===== Level 2 Headline 1 ===== Level 2 content. Level 2 content. ===== Level 2 Headline 2 ===== Level 2 content. === Alignment === The vertical alignment is specified with new alignment attributes. There are four horizontal alignment attributes (''left'', ''center'', ''right'' and ''justify'') and three vertical alignment attributes (''top'', ''middle'' and ''bottom''). There may be multiple alignment attributes per column: Aligned on the left side. Aligned to the right-bottom corner. All attributes can be abbreviated to the first letter, the single letter attributes may be merged together: Aligned on the left side. Aligned to the right-bottom corner. The old alignment syntax is still supported. Content of this column is centered both ways. ===== Beispiele ===== **Beispiel:** Ein zweispaltiger Text, der 80% Seitebreite in Anspruch nimmt, erste Spalte ist zentriert, zweite Spalte rechtbündig und der Text unten ausgerichtet ==== Überschrift1 ==== **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 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. ===== Quelle und weitere Informationen ===== Das [[doku>plugin:columns|Plugin Columns]] stammt von Michael Arlt.