User:Archimerged/PhysicsNavigation/doc

This template creates a navigation template for a larger subject when supplied with the desired topic and subtopics. It is especially purposed for browsing in a physics subfield, while mentioning all necessary topics

Usage
Please remove the parameters that are left blank.

Mandatory

 * Name
 * The name of the template, which is needed for the "v • d • e" ("view • discuss • edit") links to work properly on all pages where the template is used. You can enter   for this value as a shortcut.
 * Topic1
 * The Name or Category of the Subfields, can also be a link
 * Items1
 * The links to the subfield. Please use   for line break and   for separating the fields.


 * Alternately, to allow the browser to decide where the line breaks will be, while preventing line breaks within links, use   at the front, separate fields with   or  , and put the required   last. This is much easier than piping each link:


 * Put extremely long links outside the nowrap section to avoid making the whole box very wide. See also the how-to guide.


 * For easy editing of the list of links, use HTML comments to hide newlines from the wikitext parser. Thus, put each link in on a separate line beginning with   and ending with   followed by two newlines.


 * {| class="wikitable" <--align="right" width="80%"-->


 * Use either Label or Image
 * LabelId
 * Description or link of the Image or Label
 * KeyItems
 * Important links for the field at large, that will be out of collapsible boxes.
 * Topic2
 * Other subfields. Up to 8 topics (Topic2..Topic8) are supported.
 * Items2
 * The links to the subfields. See Items1 under Mandatory.
 * Scientists
 * A List of Scientists with important contributions in this field.
 * The links to the subfields. See Items1 under Mandatory.
 * Scientists
 * A List of Scientists with important contributions in this field.

Example 3
That the navigation box automatically collapses if the user views an item which is defined inside a Topic. You have to pass the cTopic variable to PhysicsNavigation. cTopic = for example

inside the article's page, add the template plus the parameter cTopic= which is named after the browsed topic. Note both names have to match exactly ! For example, in the page about Branes add

and the topic Concepts uncollapses.