Attempts at extracting metadata from Wikimedia Commons pages (Homepage)
Details
Fri, Nov 22
Yeah, you would have to edit this: https://commons.wikimedia.org/wiki/Template:Monument_ocrotit_de_stat/layout
Tue, Nov 19
Change #1091275 merged by jenkins-bot:
[mediawiki/extensions/CommonsMetadata@master] Replace uses of deprecated ParserOutput::getText()
Thu, Nov 14
Change #1091275 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):
[mediawiki/extensions/CommonsMetadata@master] Replace uses of deprecated ParserOutput::getText()
Oct 24 2024
Oct 20 2024
Oct 7 2024
It is a community decision how to use templates. The extension looks at the generated html. Each localized sub-template passed the lang code and that is used to generate a html lang code.
The relevant logic is TemplateParser::parseContents(); maybe it could concatenate entries in the same language instead of overriding the previous one. But it's probably better to not put the monument ID in the description anyway, it's just not that relevant. {{lang}} should not cause any confusion when it's used outside the description field of {{Information}}.
Oct 6 2024
Problem was actually due to using the lang template, so I fixed that:
https://commons.wikimedia.org/w/index.php?title=Template:Zabytek_nieruchomy/layout&diff=next&oldid=933521494
Oct 5 2024
Oct 4 2024
The template parsing is performed by the CommonsMetadata extension.
Oct 3 2024
Best and wanted caption would be. still "Katedralskolanin liikuntasalin peruskorjauksessa löytyneet rauniot" .
Testing today, I obtain the following caption: "Tämä on kuva suomalaisesta monumentista, jonka tunniste on 'Turun tuomiokirkko ja Turun historiallinen ydinalue' (Q29974183) - RKY: 4620"
The problem here is that the monument template outputs this HTML fragment:
The template parsing is performed by the CommonsMetadata extension.
Aug 15 2024
Aug 4 2024
Just using getRawText() should be fine.
Aug 1 2024
Jul 29 2024
Jun 20 2024
Jun 16 2024
Jun 15 2024
Change #1044275 merged by jenkins-bot:
[mediawiki/extensions/CommonsMetadata@REL1_42] tests: Declare ParserTestHelper::$mockedCategories
Change #1044275 had a related patch set uploaded (by Umherirrender; author: Umherirrender):
[mediawiki/extensions/CommonsMetadata@REL1_42] tests: Declare ParserTestHelper::$mockedCategories
Jun 13 2024
Jun 10 2024
Jun 9 2024
Change #983417 merged by jenkins-bot:
[mediawiki/extensions/CommonsMetadata@master] tests: Declare ParserTestHelper::$mockedCategories
Change #983417 had a related patch set uploaded (by Umherirrender; author: Umherirrender):
[mediawiki/extensions/CommonsMetadata@master] tests: Declare ParserTestHelper::$mockedCategories
Jun 6 2024
Jun 3 2024
May 31 2024
Apr 25 2024
Not seeing any of these in the past 90 days, optimistically resolving.
Apr 20 2024
This extension does not have own database queries
Feb 4 2024
Feb 3 2024
I'm going to be honest (although you probably expect that at this point): I don't quite understand what's so hard about just... coding a graceful failure state for anything that seems non-simple. If you end up with, say, https://commons.wikimedia.org/wiki/File:Edward_Duncan_-_The_Explosion_of_the_United_States_Steam_Frigate_Missouri_-_Original.tiff - where there's three creator cards and an awful lot of important text explaining the roles - it's probably going to be far easier to just direct people to the file description page than try to convert it to an attribution line. Like, it really feels like an attempt at perfection is overruling the simple solution of just... handling the trivial cases you can handle and including a "see here" link for anything not readily machine readable.
Feb 1 2024
Sigh. Turns out that the multi language support only takes the first English elements in a field. So that patch needs some more follow-up
Jan 28 2024
Change 787870 merged by jenkins-bot:
[mediawiki/extensions/CommonsMetadata@master] Retrieve artists/authors from multiple vcards