Template talk:Spain metadata Wikidata

Errors
The template seems to be causing an error message, for example at Albelda de Iregua. Looking at Category:Pages using citations with accessdate and no URL, this seems to be a general problem with the template rather than on just a few isolated pages. Regards --John B123 (talk) 15:42, 12 April 2020 (UTC)
 * Thanks for noticing this problem. Was it affecting all 7,000 articles that were using it? Yikes. I believe that I have fixed it; let me know if you see anything strange, especially with articles that use the url parameter (I didn't find any in a random sample of ten articles). – Jonesey95 (talk) 18:35, 12 April 2020 (UTC)
 * It looks like if it was affecting all 7,000 articles. All seems ok now, I'll give you a shout if I come across anything odd. Thanks for sorting it out. Regards. --John B123 (talk) 18:56, 12 April 2020 (UTC)

A different problem
As you take {{..|population_total}} in both the infobox and in the main text (lede), you end up with two cites, rather the one. 95.144.182.129 (talk) 08:22, 23 April 2021 (UTC)

Citation error message displayed for unrendered citation?
Please see this discussion, which is beyond my current understanding but appears to involve this template. – Jonesey95 (talk) 16:06, 16 April 2022 (UTC)
 * That discussion now at.
 * Apparently this template is one of a series that uses the same sort of internal structure (testing ):
 * – 2097
 * – 35789
 * – 0
 * – 3067
 * – 7408
 * – 0
 * I'm guessing that the call gets its data from  in  which (for Spain) leads to .  The wikidata for the other templates in the series apparently don't have a  statement so they aren't broken (yet).
 * Editor Underlying lk: You wrote these templates; is it necessary to use a test that calls but then discards the results of that call?  If the purpose of the test is to ensure that data are available, shouldn't the template test for that data availability without making the call to ?  In other words, is this:
 * a better test than this:
 * —Trappist the monk (talk) 14:48, 7 August 2022 (UTC)
 * Since Editor Underlying lk has declined to respond, I have taken a chance and changed:
 * to this:
 * If this introduces new errors or breaks infoboxen where this template is used, revert me.
 * —Trappist the monk (talk) 14:11, 18 August 2022 (UTC)
 * Since Editor Underlying lk has declined to respond, I have taken a chance and changed:
 * to this:
 * If this introduces new errors or breaks infoboxen where this template is used, revert me.
 * —Trappist the monk (talk) 14:11, 18 August 2022 (UTC)
 * If this introduces new errors or breaks infoboxen where this template is used, revert me.
 * —Trappist the monk (talk) 14:11, 18 August 2022 (UTC)