Difference between revisions of "Template:Grounds"

From DAS Wiki
Line 31: Line 31:
 
-->{{#if:{{{alt_name|}}}{{{address|}}}{{{geo_reference|}}}{{{height|}}}{{{acreage|}}}{{{type|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">Site Information</th></tr>}}<!--
 
-->{{#if:{{{alt_name|}}}{{{address|}}}{{{geo_reference|}}}{{{height|}}}{{{acreage|}}}{{{type|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">Site Information</th></tr>}}<!--
 
-->{{#if:{{{alt_name|}}}|<tr><th>Other Name</th><td>{{{alt_name|}}}</td></tr>}}<!--
 
-->{{#if:{{{alt_name|}}}|<tr><th>Other Name</th><td>{{{alt_name|}}}</td></tr>}}<!--
-->{{#if:{{{address|}}}|<tr><th>Address</th><td>[[{{{address|}}}]]</td></tr>}}<!--
+
-->{{#if:{{{address|}}}|<tr><th>Address</th><td>{{{address|}}}</td></tr>}}<!--
 
-->{{#if:{{{Geo|}}}|<tr><th>Geo-reference</th><td>{{coord|{{#explode:{{{Geo|}}}|,|0}}|{{#explode:{{{Geo|}}}|,|1}}|format=dms}}</td></tr>}}<!--Apparently the Cargo record fetch doesn't retrieve the individual latitude and longitude values, but fetches a string containing both. So I had to explode that value (Geo) into the two components, and feed each one of them to the coord routine. See documentation on explode and coord.
 
-->{{#if:{{{Geo|}}}|<tr><th>Geo-reference</th><td>{{coord|{{#explode:{{{Geo|}}}|,|0}}|{{#explode:{{{Geo|}}}|,|1}}|format=dms}}</td></tr>}}<!--Apparently the Cargo record fetch doesn't retrieve the individual latitude and longitude values, but fetches a string containing both. So I had to explode that value (Geo) into the two components, and feed each one of them to the coord routine. See documentation on explode and coord.
 
-->{{#if:{{{height|}}}|<tr><th>Height above Sea-level</th><td>{{{height|}}}</td></tr>}}<!--
 
-->{{#if:{{{height|}}}|<tr><th>Height above Sea-level</th><td>{{{height|}}}</td></tr>}}<!--

Revision as of 18:50, June 13, 2021

This is the "Grounds" template. It should be called in the following format:

{{Grounds
|name=
|alt_name=
|image=
|address=
|geo_reference=
|founder=
|owner=
|builder=
|area=
|height=
|founded=
|opened=
|type=
|NRHP_ID=
|HRHP_url=
}}

Edit the page to see the template text. This template defines the table "Grounds". View table.