Jump to content

Template talk:Cadw listed building row

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

proposed change to link directly to Cadw without needing url= parameter[edit]

By replacing line 1. with line 2. a link to the Cadw database can be created using the existing hb= parameter and the url= parameter will no longer be needed.

  1. {{#if:{{{hb|}}}| {{#if:{{{url|}}}|[{{{url}}} {{{hb}}}]|{{{hb}}}}}}}
  2. {{#if:{{{hb|}}}|[http://cadwpublic-api.azurewebsites.net/reports/listedbuilding/FullReport?lang=en&id={{{hb}}} {{{hb}}}]}}

if the Cadw website changes as it has done previously (jura.rcahms.gov.uk to cadwpublic-api.azurewebsites.net) then only this template needs to be updated, rather than the url= parameters on each article. EdwardUK (talk) 16:04, 3 April 2019 (UTC)[reply]