OpenRefine / CommonsExtension

An OpenRefine extension that helps with Wikimedia Commons editing: start projects from Wikimedia Commons categories; Commons-specific GREL functions.
BSD 3-Clause "New" or "Revised" License
14 stars 9 forks source link

Add base Wikitext templates to schemas that can be shared with the community #86

Open lozanaross opened 1 year ago

lozanaross commented 1 year ago

During the user testing sessions in Sept / Oct, we discussed the possibility to save Wikitext templates already inside schema templates. So if a schema for e.g. Artworks is created - this could include not only SDC statements but also 'prefilled' minimal Artwork wikitext template. This will be most useful to new users who don't have extensive experience with Wikitext and just need a simple and quick solution that will enable them to upload their media files.

@trnstlntk can this be included in the documentation part of the SDC extension work?

wetneb commented 1 year ago

As long as the wikitext is constant (i.e. it does not rely on values in some columns) then this is already supported by the existing template.

lozanaross commented 1 year ago

Yes, this is just a documentation detail that @trnstlntk noted in the field notes from the user testing, and I'm recording it here so we don't forget, it's not a new feature. We can provide these ready-made schemas to download from a central documentation page.

lokal-profil commented 1 month ago

This issue should ideally have the #documentation label added to it

wetneb commented 1 month ago

I realize that my comment above might be unclear. What I meant was that the current system of saved schemas can readily be used to provide pre-filled wikitext fields.

Because the predefined schemas are currently stored in the manifest, which is itself stored in OpenRefine, offering predefined schemas with a filled wikitext field would still involve making changes to OpenRefine itself (to update those schemas). But that would not involve more software development. But still not just documentation, I would say.

lokal-profil commented 3 weeks ago

I realize that my comment above might be unclear. What I meant was that the current system of saved schemas can readily be used to provide pre-filled wikitext fields.

Because the predefined schemas are currently stored in the manifest, which is itself stored in OpenRefine, offering predefined schemas with a filled wikitext field would still involve making changes to OpenRefine itself (to update those schemas). But that would not involve more software development. But still not just documentation, I would say.

I see that commons-manifest-v2.0.js currently describes such predefined schemas (albeit without wikitext). E.g. ArtPhoto on L397. But, on PAWS at least, those pre-defined schemas don't show up in the "Start from an existing schema" drop-down.

wetneb commented 3 weeks ago

Interesting! Then it would be worth checking if this also happens on a local install of OpenRefine and making an issue for it (or phabricator ticket if it only affects PAWS).

lokal-profil commented 2 weeks ago

Interesting! Then it would be worth checking if this also happens on a local install of OpenRefine and making an issue for it (or phabricator ticket if it only affects PAWS).

Did some local testing now. When I first go into Edit Schema, with Commons pre-selected, I don't see any available templates. After switching to Wikidata and then back to Commons (using the Target Wikibase instance: drop-down in the Edit Schema window) it correctly loads the templates.

I checked in Paws and the behaviour is the same there. I'll file a separate task for this