| 8 | |
| 9 | === Example 1 |
| 10 | |
| 11 | The contents of page "Foo" will be included in the page when the plugin is expanded: |
| 12 | |
| 13 | {{{ |
| 14 | [[IncludePages(Foo)]] |
| 15 | }}} |
| 16 | |
| 17 | === Example 2 |
| 18 | |
| 19 | The contents of page "Foo" will be included in the page. The title of the page will be included in a header div with the class "headclass" as follows: |
| 20 | |
| 21 | {{{ |
| 22 | [[IncludePages(Foo, headclass)]] |
| 23 | }}} |
| 24 | |
| 25 | The generated html is then as follows: |
| 26 | |
| 27 | {{{ |
| 28 | <div> |
| 29 | <div class="headclass">Foo</div> |
| 30 | { contents of Foo } |
| 31 | </div> |
| 32 | }}} |
| 33 | |
| 34 | === Example 3 |
| 35 | |
| 36 | Contents of page "Foo" are included in the page with a header div with class "headclass", in a div with class "blockclass" as follows: |
| 37 | |
| 38 | {{{ |
| 39 | [[IncludePages(Foo, headclass, blockclass)]] |
| 40 | }}} |
| 41 | |
| 42 | The generated html is then as follows: |
| 43 | |
| 44 | {{{ |
| 45 | <div class="blockclass"> |
| 46 | <div class="headclass">Foo</div> |
| 47 | { contents of Foo } |
| 48 | </div> |
| 49 | }}} |
31 | | == Example |
32 | | |
33 | | The contents of page "Foo" will be included in the page when the plugin is expanded: |
34 | | |
35 | | {{{ |
36 | | [[IncludePages(Foo)]] |
37 | | }}} |
38 | | |
39 | | The contents of page "Foo" will be included in the page. The title of the page will be included in a header div with the class "headclass" as follows: |
40 | | |
41 | | {{{ |
42 | | [[IncludePages(Foo, headclass)]] |
43 | | }}} |
44 | | |
45 | | {{{ |
46 | | <div> |
47 | | <div class="headclass">Foo</div> |
48 | | { contents of Foo } |
49 | | </div> |
50 | | }}} |
51 | | |
52 | | Contents of page "Foo" are included in the page with a header div with class "headclass", in a div with class "blockclass" as follows: |
53 | | |
54 | | {{{ |
55 | | [[IncludePages(Foo, headclass, blockclass)]] |
56 | | }}} |
57 | | |
58 | | {{{ |
59 | | <div class="blockclass"> |
60 | | <div class="headclass">Foo</div> |
61 | | { contents of Foo } |
62 | | </div> |
63 | | }}} |
64 | | |