Difference between revisions of "Template:LEDSGPNavs"

From Open Energy Information

m (adding calendar link to events sub-nav)
(adding Contact to main navigation and removing some About subnav links)
Line 96: Line 96:
 
* {{#ifeq: {{{subnav}}}|events|<span class="current">|}}[[LEDSGP/publications|Publications]]{{#ifeq: {{{subnav}}}|events|</span>|}}
 
* {{#ifeq: {{{subnav}}}|events|<span class="current">|}}[[LEDSGP/publications|Publications]]{{#ifeq: {{{subnav}}}|events|</span>|}}
 
* {{#ifeq: {{{subnav}}}|join|<span class="current">|}}[[LEDSGP/join|Join Us]]{{#ifeq: {{{subnav}}}|join|</span>|}}
 
* {{#ifeq: {{{subnav}}}|join|<span class="current">|}}[[LEDSGP/join|Join Us]]{{#ifeq: {{{subnav}}}|join|</span>|}}
 +
* {{#ifeq: {{{subnav}}}|contact|<span class="current">|}}[[LEDSGP/contact|Contact]]{{#ifeq: {{{subnav}}}|contact|</span>|}}
 
</div>
 
</div>
 
}}
 
}}
 
{{#ifeq: {{{subnav}}}| about |  
 
{{#ifeq: {{{subnav}}}| about |  
 
<div class="nav-list-container">
 
<div class="nav-list-container">
* [[LEDSGP/about|About]]
 
 
* [[LEDSGP/about/how|How We Work]]
 
* [[LEDSGP/about/how|How We Work]]
* &nbsp;&gt;&nbsp;[[LEDSGP/about/regional-platforms|Regional Platforms]]
+
* [[LEDSGP/about/regional-platforms|Regional Platforms]]
* &nbsp;&gt;&nbsp;[[LEDSGP/about/working-groups|Working Groups]]
+
* [[LEDSGP/about/working-groups|Working Groups]]
 
* [[LEDSGP/about/members|LEDS GP Members]]
 
* [[LEDSGP/about/members|LEDS GP Members]]
 
* [[LEDSGP/about/steering-committee|Steering Committee]]
 
* [[LEDSGP/about/steering-committee|Steering Committee]]
 
* [[LEDSGP/about/guiding-structure|Guiding Structure]]
 
* [[LEDSGP/about/guiding-structure|Guiding Structure]]
* [[LEDSGP/about/contacts|Contacts]]
 
 
</div>
 
</div>
 
|}}{{#ifeq: {{{subnav}}}| tools |  
 
|}}{{#ifeq: {{{subnav}}}| tools |  

Revision as of 16:49, 2 May 2014

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.