User:Mtew/Special/index

From Guild Wars Wiki
Jump to navigationJump to search
  General Talk Characters Diaries Projects My templates   Special Pages    


    TOC index   All my pages WIKI Version Monobook.js common.js  


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.