Page MenuHomePhabricator

A tool to easily create institution templates on Wikimedia Commons
Closed, ResolvedPublic

Description

In order to have a process to create institution templates (for Wikimedia Commons) more easily it would be nice to

  1. write a Python script to automatically create templates combining user data static text + variable text provided by GLAMs
  2. write a script so these templates can be automatically created on Wikimedia Commons
  3. create an easy user interface

Event Timeline

Ecritures updated the task description. (Show Details)

Both DanielleJWiki (=Ecritures) and SIryn are at the Wikimedia Hackathon: come and find us :)

We generate these templates on the fly these days so you no longer have to manually create them. You should have a talk with @Jarekt . He's currently sitting next to me on table nine.

Little correction: its institution source templates that we mean. Example:
https://commons.wikimedia.org/wiki/Template:Koninklijke_Bibliotheek

Here are the templates that need to be filled out:
https://docs.google.com/document/d/1rHLcSMZ5k98zPND1402rhaMcVoMjBzT9x62Ah1ubTM4/edit

Institution templates can easily made by adding the institions Q-ID to {{Institution: age

{{Institution |wikidata=Q-ID }}

Using internationalization through {[Autotranslate}} might be an overkill. You can probably create much simpler single template using {{LangSwitch}} template for internationalization.

I will start with part nr 1 of this task: "write a Python script to automatically create templates combining user data static text + variable text provided by GLAMs". I will provide the script when I manage to create it.

I've just been looking at this task and got some questions/remarks (sorry, in Dutch):

  1. Op bijvoorbeeld [https://commons.wikimedia.org/wiki/Template:Koninklijke_Bibliotheek] komt de omschrijving van de instelling na de naam van de instelling te staan. Dat zie ik nu niet terug in de template. Volstaat de naam, of mag/moet de template uitgebreid worden?
  2. Op dezelfde pagina wordt het logo gebruikt, niet de afbeelding van het gebouw. Voorkeur?
  3. KB verwijst ook naar Category:License tags of the Netherlands - Extraatje?
  4. <Naam category instelling> komt voor in enkele templates. Wil je daar
    • Category:Media contributed by Koninklijke Bibliotheek
    • Category:Collections from Koninklijke Bibliotheek
    • Category:Koninklijke Bibliotheek De laatste staat, als het goed is, in P373. De andere kunnen desgewenst meteen aangemaakt worden (als ze nog niet bestaan). Maar let op: ook 'Category:Collections of the Zeeuws Museum'
  5. In de huidige opzet zijn taaltemplates beschikbaar voor en en nl. De KB heeft ze ook voor de, fr en mk (macedonisch), andere instellingen hebben het misschien voor andere talen. Ik hoorde pap al voorbijkomen. Zijn er voor meer talen templates beschikbaar/wenselijk, zodat die meteen aangemaakt kunnen worden?

Using data already available in Wikidata could reduce the user input and the change to get typo's.

Available on Wikidata:
P373 - NAAM_CATEGORY_INSTELLING
P18 - COMMONS_LINK_AFBEELDING_GEBOUW_INSTELLING
P856 - URL_HOMEPAGE_INSTELLING
P154 - COMMONS_LINK_LOGO_INSTELLING (backup voor afbeelding gebouw?)
per taal:
Voorwaarden: template beschikbaar (vooraf), naam (en omschrijving, zie vraag 1) beschikbaar (in WD)
Label van Wikidata - NAAM_INSTELLING
Description van Wikidata - OMSCHRIJVING_INSTELLING

@SIryn The documentation points to two categories. Would you like the script to create these as well?

@SIryn The documentation points to two categories. Would you like the script to create these as well?

If that would be possible, then yes please :)!

@SIryn, @DanielleJWiki, @Ecritures : If you would like to add more languages, the current languagetemplates are on Google drive. Translations are welcome.
Please note that there are differences between the languages. Maybe we should get to a more resembling text, for instance pointing to both the own URL of the institution and the commons-page for the institution (which does not always exist).

@RonnieV great, thank you so much! I am away this weekend but will certainly check it out next week. Thanks again ;)

@RonnieV: I apoligise for my noobness but where is the tool/part where I could indicate what template (for what institution) should be made? I see the output (looks awesome!) but where to create the input?