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