Page MenuHomePhabricator

☂️ Fully Lua-driven, minimal Wikitext templates to describe files on Wikimedia Commons
Open, Needs TriagePublic

Assigned To
None
Authored By
Spinster
Dec 26 2023, 7:21 AM
Referenced Files
F41633776: image.png
Dec 26 2023, 7:21 AM
F41633773: image.png
Dec 26 2023, 7:21 AM
F41633771: image.png
Dec 26 2023, 7:21 AM
F41633769: image.png
Dec 26 2023, 7:21 AM
F41633767: image.png
Dec 26 2023, 7:21 AM

Description

Umbrella task to organize work around Infobox templates to describe files on Wikimedia Commons, based on structured data.

To avoid data drift/duplication between wikitext and structured data, and to make (batch) upload processes with tools and bots easier, it is very helpful to have a set of default, commonly used templates that pull and show the structured data, using Lua: minimal Wikitext templates.

Example: https://commons.wikimedia.org/wiki/File:Herrmann_Debroux_metro_-_Art_by_Rik_Poot_(1985).jpg

image.png (2,048×1,365 px, 3 MB)

BeforeAfter
image.png (1,460×406 px, 62 KB)
image.png (1,464×1,490 px, 614 KB)
image.png (1,444×1,098 px, 172 KB)
image.png (1,450×1,260 px, 127 KB)

Related Objects

Event Timeline

https://commons.wikimedia.org/wiki/File:Herrmann_Debroux_metro_-_Art_by_Rik_Poot_(1985).jpg have minimal wikitext source code, but currently used 78 templates and modules. This is bad because of T343131: Commons database is growing way too fast. We should build a self-contained information and license module so the number of transcluded templates and modules are reduced to no more than 10, and eventually only 2 (note moving Template:Art Photo and Template:License from structured data to MediaWiki namespace and calling them via int: will further reduce two template calls).

i dont know if this has been mentioned anywhere.

caption (SDC) has a fundamentally different role compared to the description field in template:information.

description can be as long as possible. users can write anything about the file into description, like what's depicted, how the file is made, any special notes of significant things, authors' notes, ways to contact authors...

caption can only be a short and succinct description of the file.

i dont know if this has been mentioned anywhere.

caption (SDC) has a fundamentally different role compared to the description field in template:information.

description can be as long as possible. users can write anything about the file into description, like what's depicted, how the file is made, any special notes of significant things, authors' notes, ways to contact authors...

caption can only be a short and succinct description of the file.

In structured data there are another field named "detail" which is a longer description of the file (potentially containing wikilink), similar to description in Wikidata item (where caption is similar to label). This feature is not yet available.

I'll be attending May hackathon, if that might be a good time to work on this? (I can't make the NWE one.)