Help: Includes
Search
- Version
- by (unknown)
- Version 4
- by (unknown)
Deletions or items before changed
Additions or items after changed
1 | - | + | Includes are standard wiki pages whose content is designed to be transcluded (embedded) inside other pages. Any wiki page may be an include. To include content from another wiki page, use the following syntax:
|
|
---|---|---|---|---|
2 | + | |||
3 | + | {{{
|
||
4 | + | [[Include(PageName)]]
|
||
5 | + | }}}
|
||
6 | + | |||
7 | + | For example, say you had a page named '''Welcome''' with the following content:
|
||
8 | + | |||
9 | + | {{{
|
||
10 | + | Hello! Welcome to the wiki.
|
||
11 | + | }}}
|
||
12 | + | |||
13 | + | And then you created a page named '''Test''' and had the following text:
|
||
14 | + | |||
15 | + | {{{
|
||
16 | + | This is a test of includes!
|
||
17 | + | |||
18 | + | [[Include(Welcome)]]
|
||
19 | + | |||
20 | + | That should have included the Welcome page.
|
||
21 | + | }}}
|
||
22 | + | |||
23 | + | The final output would look like:
|
||
24 | + | |||
25 | + | {{{
|
||
26 | + | This is a test of includes!
|
||
27 | + | |||
28 | + | Hello! Welcome to the wiki.
|
||
29 | + | |||
30 | + | That should have included the Welcome page.
|
||
31 | + | }}}
|
||
32 | + | |||
33 | + | Any changes to an included page will be reflected on all the pages it is included. So, if you're welcome page is included on 100 pages and you decide to change the message to simply "Hi!", all 100 pages will reflect the change. |