Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gérer les attributs wikimedia_commons:category:xx #738

Open
laem opened this issue Jan 7, 2025 · 1 comment
Open

Gérer les attributs wikimedia_commons:category:xx #738

laem opened this issue Jan 7, 2025 · 1 comment

Comments

@laem
Copy link
Collaborator

laem commented Jan 7, 2025

Ce lieu a une catégorie Wiki commons dédiée ! Du coup, notre script pour aller chercher l'image foire, or on pourrait afficher toute une mosaïque d'images !

https://cartes.app/?=fort+bloqu%C3%A9&allez=Fort-Bloqu%C3%A9%7Cw49164588%7C-3.5049%7C47.7350#17.5/47.734982/-3.50482

image

https://commons.wikimedia.org/wiki/Category:Fort-Bloqu%C3%A9?uselang=fr

Voilà comment récupérer les images.
https://opendata.stackexchange.com/questions/13381/wikimedia-commons-api-image-by-category

Exemple https://commons.wikimedia.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:Fort-Bloqu%C3%A9&cmlimit=100&cmtype=file&format=json

@laem
Copy link
Collaborator Author

laem commented Jan 7, 2025

Solution : ajouter un nouveau state à useZoneImages, puis utiliser la première (ou la meilleure, mais comment la trouver ?) comme FeatureImage et les autres comme gallerie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant