User:Mtew/Special/index
| | | General | | | Talk | | | Characters | | | Diaries | | | Projects | | | My templates | | Special Pages |
---|
| | TOC index | | All my pages | | | WIKI Version | | | Monobook.js | | | common.js | |
---|
- User:Mtew/Characters/TOC
- User:Mtew/Diaries/TOC
- User:Mtew/Projects/ByNumber/TOC
- User:Mtew/Projects/ByRegion/TOC
- User:Mtew/Projects/Drafts/TOC
- User:Mtew/Projects/Formal/TOC
- User:Mtew/Projects/Items/Costs/Armor/TOC
- User:Mtew/Projects/Items/Costs/TOC
- User:Mtew/Projects/Items/Descriptions/TOC
- User:Mtew/Projects/Items/TOC
- User:Mtew/Projects/Items/Value/Armor/TOC
- User:Mtew/Projects/Items/Value/TOC
- User:Mtew/Projects/RegSum/Bonus Mission Pack/TOC
- User:Mtew/Projects/RegSum/Core/TOC
- User:Mtew/Projects/RegSum/Eye of the North/TOC
- User:Mtew/Projects/RegSum/Factions/TOC
- User:Mtew/Projects/RegSum/Nightfall/TOC
- User:Mtew/Projects/RegSum/Prophecies/TOC
- User:Mtew/Projects/RegSum/TOC
- User:Mtew/Projects/TOC
- User:Mtew/Projects/Usage/TOC
- User:Mtew/Special/TOC
- User:Mtew/TOC
- User:Mtew/templates/Formats/TOC
- User:Mtew/templates/PageNav/TOC
- User:Mtew/templates/Progress/TOC
- User:Mtew/templates/TOC
- User talk:Mtew/TOC
The expected directory structure is that every set of sub-page will have a /TOC page.
The /TOC page will include the /TOC page from the next level up and then display a table of contents in some form that allows quick access to the other sub-pages at its level.
The other pages on the sub-page level can then include the /TOC page without needing to know where they actually are in the page heirarchy. (For that mater, if properly written, most /TOC pages do not need to know where they are in the page heirarchy.)
Typically, the first source line on a page with no sub-pages would normally be:
- {{{{NAMESPACE}}:{{BASEPAGENAME}}/TOC}}
while the first source line on a page with sub-pages would normally be:
- {{{{FULLPAGENAME}}/TOC|level=/TOC}}
The /TOC page should not include a reference to itself. Instead it should include this page (User:Mtew/Special/index) as its navigation header.
A /TOC page would normally have the following structure:
- <noinclude>{{User:Mtew/Special/index or whatever}}
==Purpose==
Discribe the table of contents. A simple 'Table of Contents for chapter ...' will do.
==Code==
</noinclude>{{{{#rel2abs:{{FULLPAGENAME}}{{{level|}}}/../../TOC}}|level={{{level|}}}/..}}
Generate the table of contents for the chapter here.