Template talk:Cadw listed building row

WikiProject iconLists Template‑class
WikiProject iconThis template is within the scope of WikiProject Lists, an attempt to structure and organize all list pages on Wikipedia. If you wish to help, please visit the project page, where you can join the project and/or contribute to the discussion.
TemplateThis template does not require a rating on the project's quality scale.
WikiProject iconHistoric sites Template‑class
WikiProject iconThis template is within the scope of WikiProject Historic sites, a collaborative effort to improve the coverage of historic sites on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
WikiProject iconWales Template‑class
WikiProject iconThis template is within the scope of WikiProject Wales, a collaborative effort to improve the coverage of Wales on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

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