Difference between revisions of "Template:LEDSGPNavs"

From Open Energy Information

Line 32: Line 32:
 
<br>[[LEDSGP/events/Catalyzing_Cooperative_Action_for_Low_Emissions_Development_Side_Event_in_Bonn
 
<br>[[LEDSGP/events/Catalyzing_Cooperative_Action_for_Low_Emissions_Development_Side_Event_in_Bonn
 
<br>[[LEDSGP/events/LEDS_Collaboration_in_Action_Workshop
 
<br>[[LEDSGP/events/LEDS_Collaboration_in_Action_Workshop
<br>[[LEDSGP/Membership Form|Join LEDS GP]]
+
<br>[[LEDSGP/join|Join LEDS GP]]
 
|}}
 
|}}
 
-->
 
-->
Line 92: Line 92:
 
{{#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}}}| Membership |  
+
{{#ifeq: {{{subnav}}}| join |  
 
{{#Widget:LEDSGP-sticky-nav}}<div class="nav-list-container">
 
{{#Widget:LEDSGP-sticky-nav}}<div class="nav-list-container">
* [[LEDSGP/Membership/Benefits|Benefits of Joining]]
+
* [[LEDSGP/join/Benefits|Benefits of Joining]]
* [[LEDSGP/Membership/Role|Role of Members]]
+
* [[LEDSGP/join/Role|Role of Members]]
* [[LEDSGP/Membership/Form|Membership Form]]
+
* [[LEDSGP/join/Form|Membership Form]]
{{#ifeq:{{SUBPAGENAME}}|Benefits of Joining|* <span class="btt hidden">[[LEDSGP/Membership/Benefits#LEDSGPHeader|Back to top]]</span>|{{blank}}}}
+
{{#ifeq:{{SUBPAGENAME}}|Benefits of Joining|* <span class="btt hidden">[[LEDSGP/join/Benefits#LEDSGPHeader|Back to top]]</span>|{{blank}}}}
{{#ifeq:{{SUBPAGENAME}}|Role of Members|* <span class="btt hidden">[[LEDSGP/Membership/Role#LEDSGPHeader|Back to top]]</span>|{{blank}}}}
+
{{#ifeq:{{SUBPAGENAME}}|Role of Members|* <span class="btt hidden">[[LEDSGP/join/Role#LEDSGPHeader|Back to top]]</span>|{{blank}}}}
{{#ifeq:{{SUBPAGENAME}}|Membership Form|* <span class="btt hidden">[[LEDSGP/Membership/Form#LEDSGPHeader|Back to top]]</span>|{{blank}}}}
+
{{#ifeq:{{SUBPAGENAME}}|Membership Form|* <span class="btt hidden">[[LEDSGP/join/Form#LEDSGPHeader|Back to top]]</span>|{{blank}}}}
 
</div>
 
</div>
  
Line 119: Line 119:
 
* <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/Membership|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:00, 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.