Template talk:Spain metadata Wikidata
Appearance
Errors
[edit]@Underlying lk and Jonesey95: The template seems to be causing an error message Missing or empty |url= (help); |access-date= requires |url=, 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
[edit]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?
[edit]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 Help talk:Citation Style 1/Archive 83 § Script warning shown at top of preview, without error message or category.
- Apparently this template is one of a series that uses the same sort of internal structure (testing
{{wikidata|reference|raw|P1082...}}
):{{Austria metadata Wikidata}}
– 2097{{France metadata Wikidata}}
– 35789{{Germany metadata Wikidata}}
– 0{{Romania metadata Wikidata}}
– 3067{{Spain metadata Wikidata}}
– 7408{{Swiss metadata Wikidata}}
– 0
- I'm guessing that the
{{cite q}}
call gets its data from stated in (P248) in population (P1082) which (for Spain) leads to Municipal Register of Spain 2018 (Q60332597). The wikidata for the other templates in the series apparently don't have a stated in (P248) statement so they aren't broken (yet). - Editor Underlying lk: You wrote these templates; is it necessary to use a test that calls
{{cite q}}
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{{cite q}}
? In other words, is this:{{#if:{{wikidata|property|raw|P1082|P585=2018-01-01}}|<true result>|<false result>}}
- a better test than this:
{{#if:{{wikidata|reference|raw|P1082|P585=2018-01-01}}|<true result>|<false result>}}
- —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:
{{wikidata|reference|raw|P1082|P585=2018-01-01}}
- to this:
{{wikidata|property|raw|P1082|P585=2018-01-01}}
- 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: