Difference between revisions of "Template:LEDSGPNavs"

From Open Energy Information

(editing header section and top level nav)
Line 86: Line 86:
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
<div id="LEDSGPContainer"><!-- Ended by Template:LEDSGPFooter -->
 
<div id="LEDSGPContainer"><!-- Ended by Template:LEDSGPFooter -->
<div id="LEDSGPNavs" class="{{#ifeq: {{{subnavabove}}}|true|LEDSGPsubnavabove|LEDSGPsubnavleft}} ledsgp-border-bottom"><!-- Ended by Template:LEDSGPFooter -->
+
<div id="LEDSGPNavs" class="{{#ifeq: {{{subnavabove}}}|true|LEDSGPsubnavabove|LEDSGPsubnavleft}}"><!-- Ended by Template:LEDSGPFooter -->
 
{{#Widget:LEDSGPNavHelper}}{{#Widget:NOTITLE}} __NOTOC__ {{#ifeq: {{{nav}}}| top |
 
{{#Widget:LEDSGPNavHelper}}{{#Widget:NOTITLE}} __NOTOC__ {{#ifeq: {{{nav}}}| top |
<div id="LEDSGPNavTop"><span id="LEDSGPNavTopLogo">[[File:LEDSGP_Logo.png|link=http://ledsgp.org]]</span><span id="LEDSGPNavTopMission">Advancing climate-resilient low emission development around the world</span>
+
<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">[[LEDSGP/join|Join]]</span></div>|{{blank}}}}
* [[LEDSGP/home|Home]]
+
<div id="LEDSGPTopMenu">
* {{#ifeq: {{{subnav}}}|about|<span class="current">|}}[[LEDSGP/about|About]]{{#ifeq: {{{subnav}}}|about|</span>|}}
+
* <div class="item">[[LEDSGP/home|Home]]</div>
* {{#ifeq: {{{subnav}}}|tools|<span class="current">|}}[[LEDSGP/tools|Tools]]{{#ifeq: {{{subnav}}}|tools|</span>|}}
+
* <div class="item">{{#ifeq: {{{subnav}}}|about|<span class="current">|}}[[LEDSGP/about|About]]{{#ifeq: {{{subnav}}}|about|</span>|}}</div>
* {{#ifeq: {{{subnav}}}|assistance|<span class="current">|}}[[LEDSGP/assistance|Expert Assistance]]{{#ifeq: {{{subnav}}}|assistance|</span>|}}
+
* <div class="item">{{#ifeq: {{{subnav}}}|tools|<span class="current">|}}[[LEDSGP/tools|Resources & Tools]]{{#ifeq: {{{subnav}}}|tools|</span>|}}</div>
* {{#ifeq: {{{subnav}}}|events|<span class="current">|}}[[LEDSGP/events|Events]]{{#ifeq: {{{subnav}}}|events|</span>|}}
+
* <div class="item">{{#ifeq: {{{subnav}}}|assistance|<span class="current">|}}[[LEDSGP/assistance|Expert Assistance]]{{#ifeq: {{{subnav}}}|assistance|</span>|}}</div>
* {{#ifeq: {{{subnav}}}|events|<span class="current">|}}[[LEDSGP/publications|Publications]]{{#ifeq: {{{subnav}}}|events|</span>|}}
+
* <div class="item">{{#ifeq: {{{subnav}}}|events|<span class="current">|}}[[LEDSGP/events|News & Events]]{{#ifeq: {{{subnav}}}|events|</span>|}}</div>
* {{#ifeq: {{{subnav}}}|join|<span class="current">|}}[[LEDSGP/join|Join Us]]{{#ifeq: {{{subnav}}}|join|</span>|}}
+
* <div class="item">{{#ifeq: {{{subnav}}}|events|<span class="current">|}}[[LEDSGP/publications|Publications]]{{#ifeq: {{{subnav}}}|events|</span>|}}</div>
 +
* <div class="item">{{#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>
 
</div>
 
}}
 
}}

Revision as of 15:04, 30 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.