Template:TopicsWithSubpages



Using Template:TopicsWithSubpages
This Navigational template may be useful for complex content that has a hierarchical structure to it such as:

Topic 1

section 1

section 2

Topic 2

section 1

section 2

When inserted into a page it might look something like this:

For another example of the template in action see the pages of Using Audacity.

For a description of the syntax see Templates_for_structured_content

(For a simpler template suitable for WikiEducator projects see: Template:ProjectNav.)

Variables
The template has the following variables:

state = can be either left blank, or collapsed or plain can be entered here. Blank (ie. nothing entered) is the default and will provide the user with a way to collapse the navigation template with a show/hide link; collapsed will default the navigation template into the collapsed or closed state; and plain removes the show/hide option all together.

title = This is the title of the resource. Can be left blank.

image = You can include an image or logo to display in the template. Uses normal wiki image syntax.

above = Text to go in the header cell of the template. In the above example the text: "Test of a Navigation Template with Topics and Sections" is here.

topic1 = this would be a link to your first Topic.

section1 = this may be series of links separated by of the sections for topic 1.

topic2 = to add new topics increment the number; ie. topic2, topic3.

section2 = sections/pages for the topic2 table cell.

below = text that could go at the bottom of the navigation box.

Simple Creation of TopicWithSubpage Navigation for projects
Instead of copying and pasting all the template syntax into every page of your content, create a unique navigation template for your all of your content pages. You can then insert this newly created navigation template into each page of your content using a greatly simplified syntax. This also makes it far easier to modify the navigation in a single place (ie, add or subtract pages, etc.) and have changes reflected in all pages rather than having to modify the syntax in every page.

Usage
1. Create a new page called http://www.virtualmv.com/wiki/index.php?title=Template:MyProjectNav replacing MyProjectNav with the name of your project, something like Template:AccountingBasicsNav and cut and paste the following code

To add this template to your pages use: (using whatever your template name is)