Difference between revisions of "Template:LEDSGPNavs"

From Open Energy Information

Line 90: Line 90:
 
{{#Widget:LEDSGPNavHelper}}{{#Widget:NOTITLE}} __NOTOC__ {{#ifeq: {{{nav}}}| top |
 
{{#Widget:LEDSGPNavHelper}}{{#Widget:NOTITLE}} __NOTOC__ {{#ifeq: {{{nav}}}| top |
 
<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">[[link=http://eepurl.com/-qi4r]]</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">[[LEDSGP/Join|Join]]</span></div>|{{blank}}}}
 
{{#ifeq:{{{subnav}}}|wmwg|<span id="WGheader">Waste Management Working Group</span>|{{blank}}}}
 
{{#ifeq:{{{subnav}}}|wmwg|<span id="WGheader">Waste Management Working Group</span>|{{blank}}}}
 
{{#ifeq:{{{subnav}}}|trans-wg|<span id="WGheader">Transport Working Group</span>|{{blank}}}}
 
{{#ifeq:{{{subnav}}}|trans-wg|<span id="WGheader">Transport Working Group</span>|{{blank}}}}
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">{{#ifeq: {{{subnav}}}|join|<span class="current">|}}[[LEDSGP/join|Join]]{{#ifeq: {{{subnav}}}|join|</span>|}}</div>
+
* <div class="item">{{#ifeq: {{{subnav}}}|join|<span class="current">|}}[[link=http://org.us9.list-manage.com/subscribe?u=3b936be7795172eb9a13ce71e&id=a7af149703|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 11:17, 18 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.