Difference between revisions of "Template:LEDSGPNavs"

From Open Energy Information

(about subnav edit)
(adding sticky widget to other subnav menus)
Line 121: Line 121:
 
* [[LEDSGP/sector/waste#tools|Tools]]
 
* [[LEDSGP/sector/waste#tools|Tools]]
 
</div>
 
</div>
|}}{{#ifeq: {{{subnav}}}| tools |  
+
|}}{{#ifeq: {{{subnav}}}| tools | {{#Widget:LEDSGP-sticky-nav}}
 
<div class="nav-list-container">
 
<div class="nav-list-container">
 
* [[LEDSGP/tools|Tools]]
 
* [[LEDSGP/tools|Tools]]
Line 130: Line 130:
 
</div>
 
</div>
 
|}}{{#ifeq: {{{subnav}}}| assistance |  
 
|}}{{#ifeq: {{{subnav}}}| assistance |  
<div class="nav-list-container">
+
{{#Widget:LEDSGP-sticky-nav}}<div class="nav-list-container">
 
* [[LEDSGP/assistance|Expert Assistance]]
 
* [[LEDSGP/assistance|Expert Assistance]]
 
* [[LEDSGP/assistance/request|Request Assistance]]
 
* [[LEDSGP/assistance/request|Request Assistance]]
Line 164: Line 164:
 
</div>
 
</div>
 
|}}{{#ifeq: {{{subnav}}}|events|  
 
|}}{{#ifeq: {{{subnav}}}|events|  
<div class="nav-list-container">
+
{{#Widget:LEDSGP-sticky-nav}}<div class="nav-list-container">
 
* [[LEDSGP/events| Upcoming LEDS Events]]
 
* [[LEDSGP/events| Upcoming LEDS Events]]
 
* [[LEDSGP/events-past| Past LEDS GP Events]]
 
* [[LEDSGP/events-past| Past LEDS GP Events]]

Revision as of 15:37, 8 August 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.