Difference between revisions of "Template:LEDSGPNavs"

From Open Energy Information

Line 106: Line 106:
 
* <div class="item">{{#ifeq: {{{subnav}}}|events|<span class="current">|}}[[LEDSGP/events|News & Events]]{{#ifeq: {{{subnav}}}|events|</span>|}}</div>
 
* <div class="item">{{#ifeq: {{{subnav}}}|events|<span class="current">|}}[[LEDSGP/events|News & Events]]{{#ifeq: {{{subnav}}}|events|</span>|}}</div>
 
* <div class="item">{{#ifeq: {{{subnav}}}|publications|<span class="current">|}}[[LEDSGP/publications|Publications]]{{#ifeq: {{{subnav}}}|publications|</span>|}}</div>
 
* <div class="item">{{#ifeq: {{{subnav}}}|publications|<span class="current">|}}[[LEDSGP/publications|Publications]]{{#ifeq: {{{subnav}}}|publications|</span>|}}</div>
* <div class="item" id="navJoin">{{#ifeq: {{{subnav}}}|join|<span class="current">|}}[[LEDSGP/join|Join]]{{#ifeq: {{{subnav}}}|join|</span>|}}</div>
+
* <div class="item" id="navJoin">{{#ifeq: {{{subnav}}}|join|<span class="current">|}}[[LEDSGP/Join|Join]]{{#ifeq: {{{subnav}}}|join|</span>|}}</div>
 
* {{#ifeq: {{{subnav}}}|contact|<span class="current">|}}[[LEDSGP/contact|Contact]]{{#ifeq: {{{subnav}}}|contact|</span>|}}
 
* {{#ifeq: {{{subnav}}}|contact|<span class="current">|}}[[LEDSGP/contact|Contact]]{{#ifeq: {{{subnav}}}|contact|</span>|}}
 
</div>
 
</div>

Revision as of 10:32, 20 March 2015

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.