Wiki-Quellcode von Section
Zuletzt geändert von xwikiadmin am 2025/05/21 09:22
Zeige letzte Bearbeiter
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{toc/}} | ||
| 2 | |||
| 3 | = Description = | ||
| 4 | |||
| 5 | Add the Section macro to a page to organise your content in sections and columns. This macro is used in conjunction with the Column macro, and provides more flexibility than page layouts. | ||
| 6 | |||
| 7 | = Parameters = | ||
| 8 | |||
| 9 | |=Parameter|=Name|=Description|=Default value | ||
| 10 | |border|Show Border|Select this option to draw a border around the columns, when they exist.|false | ||
| 11 | |||
| 12 | = Examples = | ||
| 13 | |||
| 14 | == Simple section without border == | ||
| 15 | |||
| 16 | {{code}} | ||
| 17 | {{section}} | ||
| 18 | Content of a simple section, without border. | ||
| 19 | {{/section}} | ||
| 20 | {{/code}} | ||
| 21 | |||
| 22 | {{section}} | ||
| 23 | Content of a simple section, without border. | ||
| 24 | {{/section}} | ||
| 25 | |||
| 26 | == Simple section with border, no column == | ||
| 27 | |||
| 28 | No border is added, because the borders are applied on columns, when they exist. | ||
| 29 | |||
| 30 | {{code}} | ||
| 31 | {{section border="true"}} | ||
| 32 | Content of a simple section, with border. | ||
| 33 | {{/section}} | ||
| 34 | {{/code}} | ||
| 35 | |||
| 36 | {{section border="true"}} | ||
| 37 | Content of a simple section, with border. | ||
| 38 | {{/section}} | ||
| 39 | |||
| 40 | == Simple section with border and column == | ||
| 41 | |||
| 42 | {{code}} | ||
| 43 | {{section border="true"}} | ||
| 44 | {{column}} | ||
| 45 | Content of a simple section, with border. | ||
| 46 | {{/column}} | ||
| 47 | {{/section}} | ||
| 48 | {{/code}} | ||
| 49 | |||
| 50 | {{section border="true"}} | ||
| 51 | {{column}} | ||
| 52 | Content of a simple section, with border. | ||
| 53 | {{/column}} | ||
| 54 | {{/section}} | ||
| 55 | |||
| 56 | == Section with 4 columns == | ||
| 57 | |||
| 58 | {{code}} | ||
| 59 | {{section border="true"}} | ||
| 60 | |||
| 61 | {{column width="250px"}} | ||
| 62 | Content in the column 1 | ||
| 63 | {{/column}} | ||
| 64 | |||
| 65 | {{column width="300px"}} | ||
| 66 | Content in the column 2 | ||
| 67 | {{/column}} | ||
| 68 | |||
| 69 | {{column width="300px"}} | ||
| 70 | Content in the column 3 | ||
| 71 | {{/column}} | ||
| 72 | |||
| 73 | {{column width="250px"}} | ||
| 74 | Content in the column 4 | ||
| 75 | {{/column}} | ||
| 76 | |||
| 77 | {{/section}} | ||
| 78 | {{/code}} | ||
| 79 | |||
| 80 | {{section border="true"}} | ||
| 81 | |||
| 82 | {{column width="250px"}} | ||
| 83 | Content in the column 1 | ||
| 84 | {{/column}} | ||
| 85 | |||
| 86 | {{column width="300px"}} | ||
| 87 | Content in the column 2 | ||
| 88 | {{/column}} | ||
| 89 | |||
| 90 | {{column width="300px"}} | ||
| 91 | Content in the column 3 | ||
| 92 | {{/column}} | ||
| 93 | |||
| 94 | {{column width="250px"}} | ||
| 95 | Content in the column 4 | ||
| 96 | {{/column}} | ||
| 97 | |||
| 98 | {{/section}} |