Difference between revisions of "Template:LEDSGPNavs"

From Open Energy Information

m
(removing transport as option)
Line 70: Line 70:
 
<div class="nav-list-container">
 
<div class="nav-list-container">
 
* [[LEDSGP/join/newsletter|Newsletter]]
 
* [[LEDSGP/join/newsletter|Newsletter]]
 +
</div>
 +
|}}
 +
{{#ifeq: {{{subnav}}}| transport |
 +
<div class="nav-list-container">
 +
* [[LEDSGP/group/transport/home|Transport Toolkit]]
 +
</div><div class="nav-list-container LEDSGPnav-indent">
 +
* [[LEDSGP/group/transport/transport-topics|Topics]]
 +
* [[LEDSGP/assistance/transport|Expert Assistance]]
 +
* [[LEDSGP/group/transport/training|Training]]
 +
* [[LEDSGP/group/transport/contact-us|Contact Us]]
 
</div>
 
</div>
 
|}}
 
|}}
Line 81: Line 91:
 
* [[LEDSGP/home|Home]]
 
* [[LEDSGP/home|Home]]
 
* {{#ifeq: {{{subnav}}}|about|<span class="current">|}}[[LEDSGP/about|About]]{{#ifeq: {{{subnav}}}|about|</span>|}}
 
* {{#ifeq: {{{subnav}}}|about|<span class="current">|}}[[LEDSGP/about|About]]{{#ifeq: {{{subnav}}}|about|</span>|}}
* {{#ifeq: {{{subnav}}}|tools|<span class="current">|}}{{#ifeq: {{{subnav}}}|transport|<span class="current">|}}[[LEDSGP/tools|Capacity Tools]]{{#ifeq: {{{subnav}}}|tools|</span>|}}{{#ifeq: {{{subnav}}}|transport|</span>|}}
+
* {{#ifeq: {{{subnav}}}|tools|<span class="current">|}}[[LEDSGP/tools|Capacity Tools]]{{#ifeq: {{{subnav}}}|tools|</span>|}}
 
* {{#ifeq: {{{subnav}}}|assistance|<span class="current">|}}[[LEDSGP/assistance|Expert Assistance]]{{#ifeq: {{{subnav}}}|assistance|</span>|}}
 
* {{#ifeq: {{{subnav}}}|assistance|<span class="current">|}}[[LEDSGP/assistance|Expert Assistance]]{{#ifeq: {{{subnav}}}|assistance|</span>|}}
 
* {{#ifeq: {{{subnav}}}|events|<span class="current">|}}[[LEDSGP/events|Events]]{{#ifeq: {{{subnav}}}|events|</span>|}}
 
* {{#ifeq: {{{subnav}}}|events|<span class="current">|}}[[LEDSGP/events|Events]]{{#ifeq: {{{subnav}}}|events|</span>|}}
Line 104: Line 114:
 
* [[LEDSGP/tools/training|Training Tools]]
 
* [[LEDSGP/tools/training|Training Tools]]
 
* [[LEDSGP/tools/features|Featured Tools]]
 
* [[LEDSGP/tools/features|Featured Tools]]
</div>
 
|}}{{#ifeq: {{{subnav}}}| transport |
 
<div class="nav-list-container">
 
* [[LEDSGP/group/transport/home|Transport Toolkit]]
 
</div><div class="nav-list-container LEDSGPnav-indent">
 
* [[LEDSGP/group/transport/transport-topics|Topics]]
 
* [[LEDSGP/assistance/transport|Expert Assistance]]
 
* [[LEDSGP/group/transport/training|Training]]
 
* [[LEDSGP/group/transport/contact-us|Contact Us]]
 
 
</div>
 
</div>
 
|}}{{#ifeq: {{{subnav}}}| assistance |  
 
|}}{{#ifeq: {{{subnav}}}| assistance |  

Revision as of 18:14, 25 February 2013

This is the 'LEDSGPNavs' template. It is designed for use by LEDSGP pages.

Parameters
  • nav - indicates top nav should be included when "nav=top"
  • subnav - optional parameter to show secondary navigation level, such as "subnav=about"; "subnav=none" will produce a full-page
  • subnavabove - optional parameter, set to true if you want to show the nav above, and have the content portion take up 100% of the page width
Usage

It should be called in the following format:

{{LEDSGPNav
|nav=...
|subnav=...
|subnavabove=true
}}
Example

Edit the page to see the template text.