Difference between revisions of "Template:LEDSGPNavs"

From Open Energy Information

Line 91: Line 91:
 
<div id="LEDSGPHeader"><div id="LEDSGPLogo"><h1>[[LEDSGP/home|Low Emission Development Strategies Global Partnership]]</h1><span id="LEDSGPMissionStatement">Advancing climate-resilient, low-emission development around the world</span></div>
 
<div id="LEDSGPHeader"><div id="LEDSGPLogo"><h1>[[LEDSGP/home|Low Emission Development Strategies Global Partnership]]</h1><span id="LEDSGPMissionStatement">Advancing climate-resilient, low-emission development around the world</span></div>
 
{{#ifeq:{{SUBPAGENAME}}|home|<div id="LEDSGPJoin"><h4 id="SignUp">Join the LEDS Global Partnership</h4><span id="JoinButton" class="intl-btn btn-sm">[http://eepurl.com/-qi4r Join]</span></div>|{{blank}}}}
 
{{#ifeq:{{SUBPAGENAME}}|home|<div id="LEDSGPJoin"><h4 id="SignUp">Join the LEDS Global Partnership</h4><span id="JoinButton" class="intl-btn btn-sm">[http://eepurl.com/-qi4r Join]</span></div>|{{blank}}}}
|}}{{#ifeq: {{{subnav}}}| join | {{#Widget:LEDSGP-sticky-nav}}
+
}{{#ifeq: {{{subnav}}}|Join | {{#Widget:LEDSGP-sticky-nav}}
 
<div class="nav-list-container">
 
<div class="nav-list-container">
 
* [[LEDSGP/BenefitsJoin|Benefits of Joining]]
 
* [[LEDSGP/BenefitsJoin|Benefits of Joining]]

Revision as of 10:47, 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.