Difference between revisions of "Template:Historic building row"

From blackwiki
Jump to navigation Jump to search
imported>RexxS
(close gridref cell)
imported>RexxS
(ensure cells closed to clear extra linebreaks in wikitext when more than one consecutive parameter is omitted)
Line 3: Line 3:
 
! scope="row" style="background: #f9f9f9;" class="fn org" | {{{name|}}}
 
! scope="row" style="background: #f9f9f9;" class="fn org" | {{{name|}}}
 
| class="label" | {{{location|}}}
 
| class="label" | {{{location|}}}
{{#ifeq:{{{show_type |}}}|yes|{{!}} class="category" {{!}} {{{type|}}} |}}
+
{{#ifeq:{{{show_type|}}}|yes|<td class="category">{{{type|}}}</td>|}}
{{#ifeq:{{{show_architect|}}}|yes|{{!}} {{{architect|}}}|}}
+
{{#ifeq:{{{show_architect|}}}|yes|<td>{{{architect|}}}</td>|}}
 
| {{{completed|}}}
 
| {{{completed|}}}
 
{{#ifeq:{{{show_listed|}}}|yes|<td>{{{date_listed|}}}</td>|}}
 
{{#ifeq:{{{show_listed|}}}|yes|<td>{{{date_listed|}}}</td>|}}
 
{{#ifeq:{{{show_gridref|}}}|yes|<td>{{#if:{{{grid_ref|}}}|{{gbmappingsmall|{{{grid_ref}}}}}</td>}}
 
{{#ifeq:{{{show_gridref|}}}|yes|<td>{{#if:{{{grid_ref|}}}|{{gbmappingsmall|{{{grid_ref}}}}}</td>}}
 
| {{#if:{{{lat|}}}|{{Coord|{{{lat|}}}|{{{lon|}}}|format=dms|region:GB_type:landmark|display=inline|name={{#invoke:Delink|delink|{{{name|}}}}} }}}}
 
| {{#if:{{{lat|}}}|{{Coord|{{{lat|}}}|{{{lon|}}}|format=dms|region:GB_type:landmark|display=inline|name={{#invoke:Delink|delink|{{{name|}}}}} }}}}
{{#ifeq:{{{show_notes|}}}|yes|{{!}} <span class="note">{{{notes|}}}</span>|}}
+
{{#ifeq:{{{show_notes|}}}|yes|<td><span class="note">{{{notes|}}}</span>{{#if:{{{uid|}}}|<span class="uid">[http://list.english-heritage.org.uk/resultsingle.aspx?uid={{{uid}}} {{{uid}}}]</span>}}</td>|}}
{{#if:{{{uid|}}}|<span class="uid">[http://list.english-heritage.org.uk/resultsingle.aspx?uid={{{uid}}} {{{uid}}}]</span>}}
 
 
| {{{designation|}}}
 
| {{{designation|}}}
 
{{#ifeq:{{{show_img|}}}|yes|{{!}} {{#if:{{{image|}}}
 
{{#ifeq:{{{show_img|}}}|yes|{{!}} {{#if:{{{image|}}}
 
     |[[File:{{{image|}}}|150x150px|center|border|{{{name|}}}]]{{#if:{{{commonscat|}}}|[[:commons:Category:{{{commonscat}}}|More images]]}}|style="vertical-align:middle;text-align:center" {{!}} {{UploadCampaignLink|campaign=wlm-gb-eng|id={{{uid|}}}|description={{#if:{{{upload_desc|}}}|{{{upload_desc}}}|{{#invoke:Delink|delink|{{{name|}}}}}}}|lat={{{lat|}}}|lon={{{lon|}}}}}}}}} {{#ifeq:{{{show_ref|}}}|yes|{{!!}} {{{reference|}}}|}}</includeonly><noinclude>
 
     |[[File:{{{image|}}}|150x150px|center|border|{{{name|}}}]]{{#if:{{{commonscat|}}}|[[:commons:Category:{{{commonscat}}}|More images]]}}|style="vertical-align:middle;text-align:center" {{!}} {{UploadCampaignLink|campaign=wlm-gb-eng|id={{{uid|}}}|description={{#if:{{{upload_desc|}}}|{{{upload_desc}}}|{{#invoke:Delink|delink|{{{name|}}}}}}}|lat={{{lat|}}}|lon={{{lon|}}}}}}}}} {{#ifeq:{{{show_ref|}}}|yes|{{!!}} {{{reference|}}}|}}</includeonly><noinclude>
  
 +
== Example of full display ==
 
{{Historic building header
 
{{Historic building header
 
| show_type = yes
 
| show_type = yes

Revision as of 21:45, 1 April 2014


Example of full display

{{#ifeq:yes|yes|

References

  1. "Avon Bridge". Images of England. Retrieved 2007-03-16.
  1. Sometimes known as OSGB36, the grid reference is based on the British national grid reference system used by the Ordnance Survey.

Temporary fork of Template:EH listed building row for development. Should be merged back when complete.