Difference between revisions of "Template:Infobox Area"

From South Africa Rock Climbing Routes Wiki
Share/Save/Bookmark
Jump to: navigation, search
Line 1: Line 1:
 
<noinclude>This is the template used to create the Info box on the right side of all Climbing Area pages.</noinclude><includeonly><!--__NOTOC__--><div id="Infobox_Crag" style="float:right">
 
<noinclude>This is the template used to create the Info box on the right side of all Climbing Area pages.</noinclude><includeonly><!--__NOTOC__--><div id="Infobox_Crag" style="float:right">
 
<table class="infobox">
 
<table class="infobox">
{{#switch: {{{Area}}} | Montagu = MONTAGU | Rocklands = ROCKLANDS | DEFAULT }}
+
{{#switch: {{{Area}}}  
{{#if:{{{Dirlink|}}}|<tr><td colspan=2 valign="top" align="center">{{{Dirlink}}}</td></tr>|}}
+
| Montagu = <tr><td colspan=2 valign="top" align="center">[[File:Ad climbza montagu info.jpg|link=http://www.climbing.co.za/directory/montagu/]]</td></tr> 
 +
| Rocklands = <tr><td colspan=2 valign="top" align="center">[[File:Ad climbza rocklands info.jpg|link=http://www.climbing.co.za/directory/rocklands/]]</td></tr>  
 +
| DEFAULT }}
 
<tr>
 
<tr>
 
<td colspan=2 valign="top" align="left">
 
<td colspan=2 valign="top" align="left">

Revision as of 14:51, 15 May 2015

This is the template used to create the Info box on the right side of all Climbing Area pages.