Hi there folks,
Wondering if someone might be able to advise!
I'm wondering if there's a way to ensure that when a user enters the competition through using the upload button on our list of protected areas, that the Wikidata item (assuming that there is one) is included in the wikitext of the image?
Currently, our upload buttons (see here https://commons.wikimedia.org/wiki/Commons:Wiki_Loves_Earth_in_Scotland/Protected_natural_areas for example) add the Commons category if there is one, but don't seem to add the Wikidata item. I've had a look at the template but I'm stuck.
Any help would be appreciated!
All the best, Sara
Hi Sara! You can use the *description* parameter to append any text as description through the means of the url. See here: https://www.mediawiki.org/wiki/Extension:UploadWizard/Campaigns#defaults Examples on the Romanian Wikipedia: https://ro.wikipedia.org/wiki/Wikipedia:Wiki_Loves_Earth/Moldova/Lista Best of luck! -- Gheorghe Iordachi
On Wed, Apr 16, 2025, 16:02 Sara Thomas sara.thomas@wikimedia.org.uk wrote:
Hi there folks,
Wondering if someone might be able to advise!
I'm wondering if there's a way to ensure that when a user enters the competition through using the upload button on our list of protected areas, that the Wikidata item (assuming that there is one) is included in the wikitext of the image?
Currently, our upload buttons (see here https://commons.wikimedia.org/wiki/Commons:Wiki_Loves_Earth_in_Scotland/Protected_natural_areas for example) add the Commons category if there is one, but don't seem to add the Wikidata item. I've had a look at the template but I'm stuck.
Any help would be appreciated!
All the best, Sara
-- Dr Sara Thomas Programme Manager, Wikimedia UK 07803 505 172 *My pronouns are she/her, and my name is pronounced like this. https://namedrop.io/sarathomas * https://wikimedia.org.uk/home/scotland/ https://wikimedia.org.uk/wiki/Wikimedia_in_Scotland *I work part time, my usual days are Monday - Thursday.*
https://donate.wikimedia.org.uk/
*Wikimedia UK* https://wikimedia.org.uk/ is the national chapter for the global Wikimedia open knowledge movement.
Follow us on Twitter https://twitter.com/wikimediauk, Facebook https://www.facebook.com/WikimediaUK, LinkedIn https://www.linkedin.com/company/496119, and Instagram https://www.instagram.com/wikimediauk/.
Wikimedia UK is a Registered Charity No.1144513 (England & Wales) SC048644 (Scotland). Company Limited by Guarantee registered in England and Scotland, Registered No. 6741827.
Registered Office c/o British Library, Room 46018, 96 Euston Road, London, NW1 2DB https://www.google.com/maps/search/96+Euston+Road,+London,+NW1+2DB?entry=gmail&source=g
Wikimedia UK is the UK chapter of a global Wikimedia movement. The Wikimedia projects are run by the Wikimedia Foundation (who operate Wikipedia, amongst other projects).
*Wikimedia UK is an independent non-profit charity with no legal control over Wikipedia nor responsibility for its contents.* _______________________________________________ Wikilovesearth mailing list -- wikilovesearth@lists.wikimedia.org To unsubscribe send an email to wikilovesearth-leave@lists.wikimedia.org
Hallo,
I just made the small edit to add it to the upload link in the template. https://commons.wikimedia.org/w/index.php?title=Template%3AWLE_Scotland_list...
The description should not be used for this. Especially due to the new interaction between description and caption in the UploadWizard. It is better to use the fields parameter.
In the campaign you need to add:
"fields": [ { "wikitext": "\n{{TEMPLATE NAME|$1}}", "label": "EXPLAIN WHAT THIS IS, GIVE WARNING NOT TO CHANGE" }
$1 is where the Wikidata item id will be placed.
You just need to create a small wrapper template for the Wikidata item. You can use the layout of the WDPA template for example. https://commons.wikimedia.org/wiki/Template:WDPA
But I want to give a small warning: In Germany we had bad experiences whit these ID fields as people filled them with whatever they wanted but not with the correct ID. You could avoid this is if you create two upload campaigns: One with the ID field only linked from the list where the field is prefilled and one without the field that is used everywhere else. The optimal solution would be to just create empty categories for all protected areas that you do not need additional parameters in the upload form.
Regards Leo
Am 16.04.25 um 15:19 schrieb G. I.:
Hi Sara! You can use the /description/ parameter to append any text as description through the means of the url. See here: https://www.mediawiki.org/wiki/Extension:UploadWizard/Campaigns#defaults Examples on the Romanian Wikipedia: https://ro.wikipedia.org/wiki/Wikipedia:Wiki_Loves_Earth/Moldova/Lista Best of luck! -- Gheorghe Iordachi
On Wed, Apr 16, 2025, 16:02 Sara Thomas sara.thomas@wikimedia.org.uk wrote:
Hi there folks, Wondering if someone might be able to advise! I'm wondering if there's a way to ensure that when a user enters the competition through using the upload button on our list of protected areas, that the Wikidata item (assuming that there is one) is included in the wikitext of the image? Currently, our upload buttons (see here <https://commons.wikimedia.org/wiki/Commons:Wiki_Loves_Earth_in_Scotland/Protected_natural_areas> for example) add the Commons category if there is one, but don't seem to add the Wikidata item. I've had a look at the template but I'm stuck. Any help would be appreciated! All the best, Sara -- Dr Sara Thomas Programme Manager, Wikimedia UK 07803 505 172 /My pronouns are she/her, and my name is pronounced like this. <https://namedrop.io/sarathomas> / https://wikimedia.org.uk/home/scotland/ <https://wikimedia.org.uk/wiki/Wikimedia_in_Scotland> /I work part time, my usual days are Monday - Thursday./ <https://donate.wikimedia.org.uk/> *Wikimedia UK* <https://wikimedia.org.uk/>is the national chapter for the global Wikimedia open knowledge movement. Follow us on Twitter <https://twitter.com/wikimediauk>, Facebook <https://www.facebook.com/WikimediaUK>, LinkedIn <https://www.linkedin.com/company/496119>, and Instagram <https://www.instagram.com/wikimediauk/>. Wikimedia UK is a Registered Charity No.1144513 (England & Wales) SC048644 (Scotland). Company Limited by Guarantee registered in England and Scotland, Registered No. 6741827. Registered Office c/o British Library, Room 46018, 96 Euston Road, London, NW1 2DB <https://www.google.com/maps/search/96+Euston+Road,+London,+NW1+2DB?entry=gmail&source=g> Wikimedia UK is the UK chapter of a global Wikimedia movement. The Wikimedia projects are run by the Wikimedia Foundation (who operate Wikipedia, amongst other projects). *Wikimedia UK is an independent non-profit charity with no legal control over Wikipedia nor responsibility for its contents.* _______________________________________________ Wikilovesearth mailing list -- wikilovesearth@lists.wikimedia.org To unsubscribe send an email to wikilovesearth-leave@lists.wikimedia.org
Wikilovesearth mailing list --wikilovesearth@lists.wikimedia.org To unsubscribe send an email towikilovesearth-leave@lists.wikimedia.org
Thank you both, and Leo, thanks so much for making that edit! I really appreciate it.
All the best, Sara
On Wed, 16 Apr 2025 at 14:41, Leonhard Lenz mail@leolenz.de wrote:
Hallo,
I just made the small edit to add it to the upload link in the template. https://commons.wikimedia.org/w/index.php?title=Template%3AWLE_Scotland_list... https://eu-west-1.protection.sophos.com?d=wikimedia.org&u=aHR0cHM6Ly9jb21tb25zLndpa2ltZWRpYS5vcmcvdy9pbmRleC5waHA_dGl0bGU9VGVtcGxhdGUlM0FXTEVfU2NvdGxhbmRfbGlzdF9yb3cmZGlmZj0xMDIxNTY5NzUxJm9sZGlkPTg3Nzk0NTkyOQ==&i=NjVhZmE0ZjY3MDExZmY1Y2Q3NDE3Yjkx&t=L3QrWWxqc3NFemthdnB2WHplNCthK2o4Mk9rNmtmeEQyMzZUM1ljQ296ST0=&h=6a49107d2b354b3e983690caf74107b0&s=AVNPUEhUT0NFTkNSWVBUSVbu2sTB4bNpBJ4vhSH24mioku2aSB4SeueDqepVW8UnxE9SGOFe1m9XjstHSxYrifI
The description should not be used for this. Especially due to the new interaction between description and caption in the UploadWizard. It is better to use the fields parameter.
In the campaign you need to add:
"fields": [ { "wikitext": "\n{{TEMPLATE NAME|$1}}", "label": "EXPLAIN WHAT THIS IS, GIVE WARNING NOT TO CHANGE" }
$1 is where the Wikidata item id will be placed.
You just need to create a small wrapper template for the Wikidata item. You can use the layout of the WDPA template for example. https://commons.wikimedia.org/wiki/Template:WDPA https://eu-west-1.protection.sophos.com?d=wikimedia.org&u=aHR0cHM6Ly9jb21tb25zLndpa2ltZWRpYS5vcmcvd2lraS9UZW1wbGF0ZTpXRFBB&i=NjVhZmE0ZjY3MDExZmY1Y2Q3NDE3Yjkx&t=clROMTdtTjVJMHdXc3U2NlJNeU9ZRDIxbXYxQk1TMkc0djF1QiswZUJlZz0=&h=6a49107d2b354b3e983690caf74107b0&s=AVNPUEhUT0NFTkNSWVBUSVbu2sTB4bNpBJ4vhSH24mioku2aSB4SeueDqepVW8UnxE9SGOFe1m9XjstHSxYrifI
But I want to give a small warning: In Germany we had bad experiences whit these ID fields as people filled them with whatever they wanted but not with the correct ID. You could avoid this is if you create two upload campaigns: One with the ID field only linked from the list where the field is prefilled and one without the field that is used everywhere else. The optimal solution would be to just create empty categories for all protected areas that you do not need additional parameters in the upload form.
Regards Leo Am 16.04.25 um 15:19 schrieb G. I.:
Hi Sara! You can use the *description* parameter to append any text as description through the means of the url. See here: https://www.mediawiki.org/wiki/Extension:UploadWizard/Campaigns#defaults https://eu-west-1.protection.sophos.com?d=mediawiki.org&u=aHR0cHM6Ly93d3cubWVkaWF3aWtpLm9yZy93aWtpL0V4dGVuc2lvbjpVcGxvYWRXaXphcmQvQ2FtcGFpZ25zI2RlZmF1bHRz&i=NjVhZmE0ZjY3MDExZmY1Y2Q3NDE3Yjkx&t=YkV6RjM0eVp4UVg4TjRVMTJXRXNlSEhLOURpZDFUN0MzdDNkMU5oN01NMD0=&h=6a49107d2b354b3e983690caf74107b0&s=AVNPUEhUT0NFTkNSWVBUSVbu2sTB4bNpBJ4vhSH24mioku2aSB4SeueDqepVW8UnxE9SGOFe1m9XjstHSxYrifI Examples on the Romanian Wikipedia: https://ro.wikipedia.org/wiki/Wikipedia:Wiki_Loves_Earth/Moldova/Lista https://eu-west-1.protection.sophos.com?d=wikipedia.org&u=aHR0cHM6Ly9yby53aWtpcGVkaWEub3JnL3dpa2kvV2lraXBlZGlhOldpa2lfTG92ZXNfRWFydGgvTW9sZG92YS9MaXN0YQ==&i=NjVhZmE0ZjY3MDExZmY1Y2Q3NDE3Yjkx&t=aUY5TkEzMDlodjIzamNwR3lLbEtMTDF0UXFKK0Y1ZmQxbkk2RnpiNlNOST0=&h=6a49107d2b354b3e983690caf74107b0&s=AVNPUEhUT0NFTkNSWVBUSVbu2sTB4bNpBJ4vhSH24mioku2aSB4SeueDqepVW8UnxE9SGOFe1m9XjstHSxYrifI Best of luck! -- Gheorghe Iordachi
On Wed, Apr 16, 2025, 16:02 Sara Thomas sara.thomas@wikimedia.org.uk wrote:
Hi there folks,
Wondering if someone might be able to advise!
I'm wondering if there's a way to ensure that when a user enters the competition through using the upload button on our list of protected areas, that the Wikidata item (assuming that there is one) is included in the wikitext of the image?
Currently, our upload buttons (see here https://eu-west-1.protection.sophos.com?d=wikimedia.org&u=aHR0cHM6Ly9jb21tb25zLndpa2ltZWRpYS5vcmcvd2lraS9Db21tb25zOldpa2lfTG92ZXNfRWFydGhfaW5fU2NvdGxhbmQvUHJvdGVjdGVkX25hdHVyYWxfYXJlYXM=&i=NjVhZmE0ZjY3MDExZmY1Y2Q3NDE3Yjkx&t=RjRJSmhqc01TWGlvQlhTU0xLK3RERGVXQWFqd25zSU5jeGFleUgyWGorTT0=&h=6a49107d2b354b3e983690caf74107b0&s=AVNPUEhUT0NFTkNSWVBUSVbu2sTB4bNpBJ4vhSH24mioku2aSB4SeueDqepVW8UnxE9SGOFe1m9XjstHSxYrifI for example) add the Commons category if there is one, but don't seem to add the Wikidata item. I've had a look at the template but I'm stuck.
Any help would be appreciated!
All the best, Sara
-- Dr Sara Thomas Programme Manager, Wikimedia UK 07803 505 172 *My pronouns are she/her, and my name is pronounced like this. https://eu-west-1.protection.sophos.com?d=namedrop.io&u=aHR0cHM6Ly9uYW1lZHJvcC5pby9zYXJhdGhvbWFz&i=NjVhZmE0ZjY3MDExZmY1Y2Q3NDE3Yjkx&t=VzQwelNJN2N4UEltc2tkaU1RWVFJMXVOZXJNMVVjb1ArNTF0TWxqRmRaUT0=&h=6a49107d2b354b3e983690caf74107b0&s=AVNPUEhUT0NFTkNSWVBUSVbu2sTB4bNpBJ4vhSH24mioku2aSB4SeueDqepVW8UnxE9SGOFe1m9XjstHSxYrifI * https://wikimedia.org.uk/home/scotland/ https://eu-west-1.protection.sophos.com?d=wikimedia.org.uk&u=aHR0cHM6Ly93aWtpbWVkaWEub3JnLnVrL3dpa2kvV2lraW1lZGlhX2luX1Njb3RsYW5k&i=NjVhZmE0ZjY3MDExZmY1Y2Q3NDE3Yjkx&t=LytGRlU3d29DRlVVRmpqeVdnL3hsbTBMd0F1QjRFVUQ3KzZ1TE9sLzhKYz0=&h=6a49107d2b354b3e983690caf74107b0&s=AVNPUEhUT0NFTkNSWVBUSVbu2sTB4bNpBJ4vhSH24mioku2aSB4SeueDqepVW8UnxE9SGOFe1m9XjstHSxYrifI *I work part time, my usual days are Monday - Thursday.*
*Wikimedia UK* https://eu-west-1.protection.sophos.com?d=wikimedia.org.uk&u=aHR0cHM6Ly93aWtpbWVkaWEub3JnLnVrLw==&i=NjVhZmE0ZjY3MDExZmY1Y2Q3NDE3Yjkx&t=eXI4K0szdGlmcDE4TzJvUHc3TVJMKyt2Smt0U1VmaGVKbFpBK2srV1cvWT0=&h=6a49107d2b354b3e983690caf74107b0&s=AVNPUEhUT0NFTkNSWVBUSVbu2sTB4bNpBJ4vhSH24mioku2aSB4SeueDqepVW8UnxE9SGOFe1m9XjstHSxYrifI is the national chapter for the global Wikimedia open knowledge movement.
Follow us on Twitter https://eu-west-1.protection.sophos.com?d=twitter.com&u=aHR0cHM6Ly90d2l0dGVyLmNvbS93aWtpbWVkaWF1aw==&i=NjVhZmE0ZjY3MDExZmY1Y2Q3NDE3Yjkx&t=Q3ZHYUEycDFjTjBackZaYVpkME5aU2ZvcDZmMTJPeXI3UUplSkxIeTFIcz0=&h=6a49107d2b354b3e983690caf74107b0&s=AVNPUEhUT0NFTkNSWVBUSVbu2sTB4bNpBJ4vhSH24mioku2aSB4SeueDqepVW8UnxE9SGOFe1m9XjstHSxYrifI, Facebook https://eu-west-1.protection.sophos.com?d=facebook.com&u=aHR0cHM6Ly93d3cuZmFjZWJvb2suY29tL1dpa2ltZWRpYVVL&i=NjVhZmE0ZjY3MDExZmY1Y2Q3NDE3Yjkx&t=RVBhNVhlMmsrMU9IQ1hiT2RSWk91bmpLOWR2bGtSY3JYYTkrTjY2Rkt1az0=&h=6a49107d2b354b3e983690caf74107b0&s=AVNPUEhUT0NFTkNSWVBUSVbu2sTB4bNpBJ4vhSH24mioku2aSB4SeueDqepVW8UnxE9SGOFe1m9XjstHSxYrifI, LinkedIn https://eu-west-1.protection.sophos.com?d=linkedin.com&u=aHR0cHM6Ly93d3cubGlua2VkaW4uY29tL2NvbXBhbnkvNDk2MTE5&i=NjVhZmE0ZjY3MDExZmY1Y2Q3NDE3Yjkx&t=VzRhZTgwRHpMYk5Eb0lMM0NOQWZ6NWdLRXhYbHNHSWdqNCs2SWF1dXl0az0=&h=6a49107d2b354b3e983690caf74107b0&s=AVNPUEhUT0NFTkNSWVBUSVbu2sTB4bNpBJ4vhSH24mioku2aSB4SeueDqepVW8UnxE9SGOFe1m9XjstHSxYrifI, and Instagram https://eu-west-1.protection.sophos.com?d=instagram.com&u=aHR0cHM6Ly93d3cuaW5zdGFncmFtLmNvbS93aWtpbWVkaWF1ay8=&i=NjVhZmE0ZjY3MDExZmY1Y2Q3NDE3Yjkx&t=Y3dISnFYMTFrb0FnVGpuTVc0eFUwMnpGRjY4L2laTE1VNW93clZJWTRmUT0=&h=6a49107d2b354b3e983690caf74107b0&s=AVNPUEhUT0NFTkNSWVBUSVbu2sTB4bNpBJ4vhSH24mioku2aSB4SeueDqepVW8UnxE9SGOFe1m9XjstHSxYrifI .
Wikimedia UK is a Registered Charity No.1144513 (England & Wales) SC048644 (Scotland). Company Limited by Guarantee registered in England and Scotland, Registered No. 6741827.
Registered Office c/o British Library, Room 46018, 96 Euston Road, London, NW1 2DB https://eu-west-1.protection.sophos.com?d=google.com&u=aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS9tYXBzL3NlYXJjaC85NitFdXN0b24rUm9hZCwrTG9uZG9uLCtOVzErMkRCP2VudHJ5PWdtYWlsJnNvdXJjZT1n&i=NjVhZmE0ZjY3MDExZmY1Y2Q3NDE3Yjkx&t=ZlUyQWFrbUMzb1U1QjBycTJ3c0hjenN0dSsxSTVwa1RkNUI4SDYvTTg0Yz0=&h=6a49107d2b354b3e983690caf74107b0&s=AVNPUEhUT0NFTkNSWVBUSVbu2sTB4bNpBJ4vhSH24mioku2aSB4SeueDqepVW8UnxE9SGOFe1m9XjstHSxYrifI
Wikimedia UK is the UK chapter of a global Wikimedia movement. The Wikimedia projects are run by the Wikimedia Foundation (who operate Wikipedia, amongst other projects).
*Wikimedia UK is an independent non-profit charity with no legal control over Wikipedia nor responsibility for its contents.* _______________________________________________ Wikilovesearth mailing list -- wikilovesearth@lists.wikimedia.org To unsubscribe send an email to wikilovesearth-leave@lists.wikimedia.org
Wikilovesearth mailing list -- wikilovesearth@lists.wikimedia.org To unsubscribe send an email to wikilovesearth-leave@lists.wikimedia.org
Wikilovesearth mailing list -- wikilovesearth@lists.wikimedia.org To unsubscribe send an email to wikilovesearth-leave@lists.wikimedia.org
wikilovesearth@lists.wikimedia.org