Difference between revisions of "Template:Buildings"

From DAS Wiki
 
(6 intermediate revisions by the same user not shown)
Line 175: Line 175:
 
|national_register_url={{{national_register_url|}}}
 
|national_register_url={{{national_register_url|}}}
 
  }}
 
  }}
<div class=infobox>{| style="width: 24em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
+
{| class="infobox"
 
!style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
 
!style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
 
|-
 
|-
Line 185: Line 185:
 
-->{{#if:{{{city|}}}|<tr><th></th><td>{{{city|}}}, {{#if:{{{state|}}}|{{{state|}}}|Maryland}}</td></tr>}}<!--
 
-->{{#if:{{{city|}}}|<tr><th></th><td>{{{city|}}}, {{#if:{{{state|}}}|{{{state|}}}|Maryland}}</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:{{{Geo|}}}|<tr><th style="text-align: center;margin-left: 0.5em;padding:3px;", colspan="2">{{#cargo_display_map:point={{{Geo|}}}|service=leaflet|width=320|height=250 }}</th></tr>}}<!--
+
-->{{#if:{{{Geo|}}}|<tr><th style="text-align: center;padding:3px;", colspan="2"><span id="infoboxMap">{{#cargo_display_map:point={{{Geo|}}}|service=leaflet|width=100%|height=250 }}</span></th></tr>}}<!--
 
-->{{#if:{{{altitude|}}}|<tr><th>Above Sea-level (ft)</th><td>{{{altitude|}}}</td></tr>}}<!--
 
-->{{#if:{{{altitude|}}}|<tr><th>Above Sea-level (ft)</th><td>{{{altitude|}}}</td></tr>}}<!--
 
-->{{#if:{{{owner|}}}|<tr><th>Owner</th><td>{{{owner|}}}</td></tr>}}<!--
 
-->{{#if:{{{owner|}}}|<tr><th>Owner</th><td>{{{owner|}}}</td></tr>}}<!--
Line 235: Line 235:
 
-->{{#if:{{{national_register_id|}}}{{{national_register_url|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">National Register of Historic Places</th></tr>}}<!--
 
-->{{#if:{{{national_register_id|}}}{{{national_register_url|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">National Register of Historic Places</th></tr>}}<!--
 
-->{{#if:{{{national_register_id|}}}|<tr><th>ID Number</th><td>[{{{national_register_url}}} {{{national_register_id}}}]</td></tr>}}
 
-->{{#if:{{{national_register_id|}}}|<tr><th>ID Number</th><td>[{{{national_register_url}}} {{{national_register_id}}}]</td></tr>}}
|}</div>
+
|}
  
 
[[Category:Buildings]]
 
[[Category:Buildings]]
 
</includeonly>
 
</includeonly>

Latest revision as of 08:32, July 18, 2021

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

{{Buildings
|image=
|address=
|city=
|state=
|Geo=
|altitude=
|owner 
|building_type= 
|architectural_style= 
|height= 
|material= 
|floor_count= 
|floor_area= 
|elevator_count= 
|structural_system= 
|cost=
|cost_approx=
|architect=
|architecture_firm= 
|structural_engineer= 
|civil_engineer=
|m_e_engineer= 
|other_designers= 
|surveyor=
|landscape_architect=
|design_awards= 
|contractors= 
|start_date=
|start_date_approx=
|groundbreaking_date=
|groundbreaking_date_approx=
|topped_out_date=
|topped_out_date_approx=
|completion_date=
|completion_date_approx=
|opened_date=
|opened_date_approx=
|renovation_date=
|renovation_date_approx=
|ren_architect= 
|ren_firm= 
|ren_l_a= 
|ren_str_engineer= 
|ren_civ_engineer= 
|ren_oth_designers= 
|ren_m_e_engineer= 
|ren_contractors=
|ren_cost=
|ren_cost_approx=
|ren_awards=
|demolished=
|demolished_approx=
|national_register_id= 
|national_register_url= 
}}

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