%{ to include a side bar on a page, just include this template in the page template }%
%TMPL:DEF{"sidebar"}%<div id="patternSideBar"><div id="patternClearHeaderLeft"></div>
<div id="patternSideBarContents">%TMPL:P{"websidebar"}%
</div><!-- /patternSideBarContents--></div><!-- /patternSideBar-->%TMPL:END%


%TMPL:DEF{"sidebar:webindicator"}%<div class="patternWebIndicator">
   * <a href='%SCRIPTURL{"view"}%/%BASEWEB%/%HOMETOPIC%'><img src='%ICONURL{"web-bg"}%' style='background-color:%WEBBGCOLOR%' alt='%WEB%'/> <nop>%BASEWEB%</a>
</div><!--/patternWebIndicator-->%TMPL:END%


%TMPL:DEF{"sidebar:weblink"}%<div class="patternWebIndicator">
   * [[%BASEWEB%/%HOMETOPIC%][%BASEWEB%]]
</div><!--/patternWebIndicator-->%TMPL:END%

%{ Please note that there must be a new line before the include of the WebLeftBar. Other wise the first bullet will not be displayed as a bullet. See Foswiki task Item410 }%
%TMPL:DEF{"websidebar"}%%TMPL:P{"sidebar:webindicator"}%
%IF{"istopic 'WebLeftBar'" then="$percntINCLUDE{$quot%WEB%.WebLeftBar$quot}$percnt" else="$percntINCLUDE{$quot%WEB%.WebLeftBarExample$quot}$percnt"}%
%TMPL:END%


%TMPL:DEF{"startsidebarwrapper"}%<div id="patternWrapper">%TMPL:END%
%TMPL:DEF{"endsidebarwrapper"}%</div><!-- /patternWrapper-->%TMPL:END%