|
- Timestamp:
-
Apr 28, 2008, 2:20:33 PM (17 years ago)
- Author:
-
trac
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v1
|
v2
|
|
1 | 1 | = Wiki Page Names = |
| 2 | [[TracGuideToc]] |
2 | 3 | |
3 | | Wiki page names are written using CamelCase. Within a wiki text, any word in CamelCase automatically becomes a hyperlink to the wiki page with that same name. |
| 4 | Wiki page names commonly use the CamelCase convention. Within wiki text, any word in CamelCase automatically becomes a hyperlink to the wiki page with that name. |
4 | 5 | |
5 | | Page names must follow these rules: |
| 6 | CamelCase page names must follow these rules: |
6 | 7 | |
7 | 8 | 1. The name must consist of '''alphabetic characters only'''. No digits, spaces, punctuation, or underscores are allowed. |
8 | | 1. A name must have at least two capital letters. |
9 | | 1. The first character must be capitalized. |
10 | | 1. Every capital letter must be followed by one or more lower-case letters. |
11 | | 1. The use of slash ( / ) is permitted to create a hierarchy inside the wiki. (See !SubWiki and !ParentWiki macros in the [http://projects.edgewall.com/trac/wiki/MacroBazaar MacroBazaar] which provide a way to list all sub-entries and a link up the hierarchy respectively.) |
| 9 | 2. A name must have at least two capital letters. |
| 10 | 3. The first character must be capitalized. |
| 11 | 4. Every capital letter must be followed by one or more lower-case letters. |
| 12 | 5. The use of slash ( / ) is permitted in page names (possibly representing a hierarchy). |
12 | 13 | |
13 | | If you want to create a wiki page that doesn't follow CamelCase rules you could use the following syntax: |
| 14 | If you want to create a wiki page that doesn't follow CamelCase rules you can use the following syntax: |
14 | 15 | {{{ |
15 | | [wiki:Wiki_page] |
| 16 | * [wiki:Wiki_page], [wiki:ISO9000] |
| 17 | * [wiki:"Space Matters"] that page name embeds space characters |
| 18 | * or simply: ["WikiPageName"]s (!MoinMoin's internal free links style) |
16 | 19 | }}} |
17 | 20 | |
18 | 21 | This will be rendered as: |
19 | | [wiki:Wiki_page] |
| 22 | * [wiki:Wiki_page], [wiki:ISO9000] |
| 23 | * [wiki:"Space Matters"] that page name embeds space characters |
| 24 | * or simply: ["WikiPageName"]s (!MoinMoin's internal free links style) |
20 | 25 | |
| 26 | See also TracLinks#QuotingspaceinTracLinks. |
| 27 | |
| 28 | Finally, and as exemplified in the line above, one can also append an anchor to a Wiki page name, in order to link to a specific section within that page. The anchor can easily be seen by hovering the mouse over a section heading, then clicking on the [[html(¶)]] sign that appears at its end. The anchor is usually generated automatically, but it's also possible to specify it explicitly: see WikiFormatting#using-explicit-id-in-heading. |
21 | 29 | ---- |
22 | | See also: WikiNewPage, WikiFormatting, TracWiki |
| 30 | See also: WikiNewPage, WikiFormatting, TracWiki, TracLinks |
|