Template talk:Cadw listed building row
(Redirected from Template talk:Cadw listed building row/sandbox)
Latest comment: 5 years ago by EdwardUK in topic proposed change to link directly to Cadw without needing url= parameter
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||
|
proposed change to link directly to Cadw without needing url= parameter
editBy 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.
- {{#if:{{{hb|}}}| {{#if:{{{url|}}}|[{{{url}}} {{{hb}}}]|{{{hb}}}}}}}
- {{#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)