Need help with wikipedia links and wikimedia commons images

I’m trying without success to link to wikipedia text and add wikimedia commons image. I’m using…

image=https://upload.wikimedia.org/wikipedia/commons/9/92/Castelo_de_Algoso_12.jpg

wikimedia_commons=File:Castelo_de_Algoso_12.jpg

wikipedia=pt:Castelo_de_Algoso
wikipedia:pt=Castelo_de_Algoso

On the sidebar, when using the inspector (query features tool) the links are there but there is no rendered image or wikpedia abstract text.

Any help would be great :slight_smile: I want to set on feature correectly before adding lot more castles :slight_smile:

This is a bug in the inspector code:

If you need a temporary workaround urgently, you can remove the wikipedia=* tag in favor of the wikipedia:pt=* tag. However, the former syntax is preferred.

Note that the wikimedia_commons=* tag is not yet supported, but don’t let this stop you from adding it.

The image from Wikipedia commons is licensed under CC By. Is there a tag I can use for the image attribution? What do you suggest?

It looks like the inspector’s slideshow code supports image:n:license and image:n:source, where n is any number from 1 through 99.

For wikimedia_commons, I wouldn’t worry about it because the inspector would most likely fetch the license and attribution from the Commons API.

1 Like