Hi all
I am working with a non profit environmental institution in Panama that wants to upload pictures of natural landscapes to Wikimedia Commons. I found the GWToolset and have been reading how to use it and preparing the metadata to run a small test.
Recently, with the help of Fae (thanks a lot!) I was able to produce XML files for our metadata and I was set an account in the test servers of GWT in:
http://commons.wikimedia.beta.wmflabs.org/wiki/Special:GWToolset
I finally could try the tool and got this error message. I would appreciate if anyone could explain me how to fix this. There was a problem processing the metadata file.
There is no <templatedata> block for template Information.
If possible, add a <templatedata> block http://www.mediawiki.org/wiki/Extension:TemplateData#Defining_a_TemplateData_block to the template, or to the template's TemplateBox http://commons.wikimedia.beta.wmflabs.org/w/index.php?title=Commons:Commons:TemplateData&action=edit&redlink=1.
Thanks
Mónica Mora
On 02/07/2014, Monica Mora monica.joana11@gmail.com wrote:
There was a problem processing the metadata file.
There is no <templatedata> block for template Information.
If possible, add a <templatedata> block http://www.mediawiki.org/wiki/Extension:TemplateData#Defining_a_TemplateData_block to the template, or to the template's TemplateBox http://commons.wikimedia.beta.wmflabs.org/w/index.php?title=Commons:Commons:TemplateData&action=edit&redlink=1.
It looks like at 'Step 1' you chose a template (or a custom template) that expects this field in your xml file. I don't use <templatedata> when selecting {{artwork}} or {{photograph}} so I'm unsure of what is expected.
Which template did you select at item 2 of "Upload your metadata file" and what was your metadata mapping selected at item 3?
Fae
Hi Monica (and list)
I am working with a non profit environmental institution in Panama that
wants to upload pictures of natural landscapes to Wikimedia Commons. I found the GWToolset and have been reading how to use it and preparing the metadata to run a small test.
Sounds good :)
I finally could try the tool and got this error message. I would appreciate if anyone could explain me how to fix this.There was a problem processing the metadata file.
There is no <templatedata> block for template Information.
If possible, add a <templatedata> block http://www.mediawiki.org/wiki/Extension:TemplateData#Defining_a_TemplateData_block to the template, or to the template's TemplateBox http://commons.wikimedia.beta.wmflabs.org/w/index.php?title=Commons:Commons:TemplateData&action=edit&redlink=1.
Reproduced and {{fixed}}
Basically, a template must be documented using the TemplateData feature to be used by the GWToolset (in order to retrieve what are the template parameters, which is necessary for the mapping).
Usually, TemplateData are added using <templatedata> block and JSON syntax. On Wikimedia Commons, we have long been using {{TemplateBox}} to document our templates, so it was modified in order to automagically output TemplateData.
The {{Information}} template, as well as its documentation, on the Beta Cluster was imported from Commons a long time ago, at a time where there was no TemplateData there.
I updated [1] the documentation to the most recent version. {{Information}} now outputs TemplateData on the Beta Cluster [2]. It can be used by the GWToolset.
Please try again Monica, and let us know if it goes well :-)
[1] http://commons.wikimedia.beta.wmflabs.org/wiki/Special:Diff/65288 [2] https://commons.wikimedia.org/w/api.php?action=templatedata&format=jsonf...
On 02/07/2014, Jean-Frédéric jeanfrederic.wiki@gmail.com wrote: ...
Reproduced and {{fixed}}
...
The {{Information}} template, as well as its documentation, on the Beta Cluster was imported from Commons a long time ago, at a time where there was no TemplateData there.
Thanks JF, that looked complicated. I'm glad to find out it was an issue for the Beta Cluster and not a problem on Wikimedia Commons itself. :-)
Fae
Reproduced and {{fixed}}
Basically, a template must be documented using the TemplateData feature to be used by the GWToolset (in order to retrieve what are the template parameters, which is necessary for the mapping).
Usually, TemplateData are added using <templatedata> block and JSON syntax. On Wikimedia Commons, we have long been using {{TemplateBox}} to document our templates, so it was modified in order to automagically output TemplateData.
The {{Information}} template, as well as its documentation, on the Beta Cluster was imported from Commons a long time ago, at a time where there was no TemplateData there.
I updated [1] the documentation to the most recent version. {{Information}} now outputs TemplateData on the Beta Cluster [2]. It can be used by the GWToolset.
Please try again Monica, and let us know if it goes well :-)
Fae and Jean-Frédéric, thanks for your replies
I tried again and got this message: There was a problem processing the metadata file.
The file extension could not be determined from the file URL: https://www.dropbox.com/sh/qziqxh4fs2id69d/AAA_00dyCfuliBpzPX2lOKGLa/000_010...
Currently we have the pictures in dropbox. Previously, I used the original GWTool and tried to add dropbox to the whitelist, but was adviced in bugzilla to use amazon s3 bucket instead of dropbox. We are working on this, and while it's ready I thought I could try with a couple of images from dropbox in the test servers, but apparently it is not possible.
Thanks again, I guess I will wait until we have the pictures in amazon s3 bucket.
Mónica
[1] http://commons.wikimedia.beta.wmflabs.org/wiki/Special:Diff/65288 [2] https://commons.wikimedia.org/w/api.php?action=templatedata&format=jsonf...
-- Jean-Frédéric
Glamtools mailing list Glamtools@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/glamtools