Wikifunctions:Status updates/2025-10-03
| ◀ | ▶ |
Rich text now available for embedded Wikifunctions calls
We have this week enabled "rich text" (meaning enabling some HTML) embedded Wikifunctions calls, which means that you can write Functions that rather than just a Unicode code point (Z86) of plain (unstyled) text, can output a HTML fragment (Z89), like "Jane Doe (born 1 Jan 2000) is an actor." or more complex things like a table or list. The first two demonstration Functions for this are Multiplication table (Z23293) and Latin first declension table (Z26333), which we have demonstrated on the sandbox page. Please tell us if you find any issues, and happy Functioneering!
Wikifunctions available on 148 Wiktionaries and the Incubator
The ability to embed Wikifunctions function calls is now available on 25 more Wiktionaries and on Wikimedia Incubator. The 25 new Wiktionary language editions are French, Greek, Spanish, Japanese, Indonesian, Dutch, Vietnamese, Italian, Finnish, Turkish, Korean, Swedish, Czech, Portuguese, Armenian, Tamil, Thai, Malagasy, Hindi, Persian, Catalan, Romanian, Hebrew, Bulgarian, and Simple English.
This brings the total of Wiktionary editions with the ability to embed Wikifunctions to 148, in addition to Dagbani Wikipedia, Wikimedia Incubator, Wikifunctions itself, and Test Wikipedia.
This leaves us with 21 Wiktionary language editions that currently don’t have Wikifunctions: Zulu, Interlingua, Inuktitut, Scottish Gaelic, Tajik, Walloon, Georgian Ukrainian, Asturian, Icelandic, Galician, Serbocroatian, Serbian, Uzbek, Hungarian, Kurdish, Polish, Chinese, German, Russian, and English.
These are behind due to one or more of these reasons:
- The wiki uses flagged revisions (i.e. Ukrainian, Icelandic, Polish, German, and Russian), which until recently did not work with Wikifunctions.
- The wiki uses content translation, i.e. it is available in several scripts (i.e. Serbocroatian, Serbian, Uzbek, and Chinese).
- The wiki does not have Parsoid enabled yet, for other reasons (i.e. English, Kurdish, Hungarian, Galician, Asturian, Georgian, Walloon, Tajik, Scottish Gaelic, Inuktitut, Interlingua, Zulu)
Once these reasons are resolved, we plan to deploy Wikifunctions on those Wikitionaries as well in order to get to a full coverage of Wiktionaries.
Recent Changes in the software
There has been one bigger user-facing change this week, plus a number of smaller bug fixes and preparatory work for using errors.
We have changed the interface for multi-lingual strings, to limit the list of languages shown (T391130). We hope that this will make the interface less "heavy" and intimidating, by helping you focus on your languages (if available) and the common ones. You can click on the button at the bottom of each list to see all available languages, and picking a language without a label will move you to edit mode to add it. We're interested in your thoughts on this new design, and what improvements we can make.
We have made it possible for a Test case to check thrown errors, as part of our wider work on helping you use custom errors (T405114). We also provided the ability to add and remove local keys for complex, typed Objects (T405082) to help with custom error handling. More on this area is coming soon.
The view mode for HTML fragments now disables the editor, rather than confusingly letting you edit content (T403244). We no longer try to find the label of a string input to a Function call that happens to look like a reference (T405085). We fixed a bug that made the results details dialog show a cryptic "[object Object]" instead of the expected and actual test results as text (T404878). We made the request button cancel the current one when clicked a second time, so you don't have multiple requests at once (T397831).
As part of Wikimedia-wide language support work, we have added a new language Hyam Z1980/jab (T405473).
News in Types: RGBA colour
We introduced a new type to Wikifunctions for representing RGBA colour values. This follows a community proposal made by infernostars, and with a lot of supporters voting for it.
RGBA colour values consist of four values, each between 0 and 1. The first three values are for the intensity of the three primary colours red, green and blue, and the fourth value provides the “alpha channel”, or transparency, of the colour value, with 0 being fully transparent and 1 being fully opaque.
The catalogue of functions already has a whole section full of colour functions, and we are looking forward to how this will develop given the new type.
WikiCon 2025 in Potsdam (German) on 3-5 October
This weekend, from October 3 to 5, is WikiCon 2025 in Potsdam. It is a hybrid event for and by the German Wikimedia community. Community members Hogü-456 and Ameisenigel are presenting Wikifunctions & Abstrakte Wikipedia at the WikiCon on Sunday morning 9 am local time. We are looking forward to a lively and informative session! Thanks to Hogü and Ameisenigel for hosting the session, and thanks to the WikiCon organizers for preparing WikiCon!
Recording of Wikimedia CEE talk by Cory Massaro
Last week was the Wikimedia CEE 2025 meeting in Thessaloniki. Cory Massaro presented What Can Wikifunctions and Abstract Wikipedia Do for You?. A recording including the talk, with a lively discussion, is available on YouTube. Thanks to the organizers of the meeting for providing a recording, and thanks to Cory for the talk!
WikiConference North America in New York City on 16-19 October
This year’s WikiConference North America will be on 16-19 October 2025 in New York City. On 18 October 2025 at 3pm local time community member Mahir Morshed will present the session How Different Languages Contribute to Abstract Wikipedia Content's Potential. We are looking forward to an interesting and engaging session! Thanks to Mahir for hosting the session, and thanks to the WikiConference organizers for preparing WikiCon NA!
Fresh Functions weekly: 23 new Functions
This week we had 23 new functions. Here is an incomplete list of functions with implementations and passing tests to get a taste of what functions have been created. Thanks everybody for contributing!
- String ("ZID") from quoted Reference (Z28467)
- length of Wikidata item (Z28479)
- Filter statements by year (Z28482)
- Get values from Wikidata enum (Z6896)
- days until next Easter (Z28495)
- days since last Easter (Z28498)
- convert Wikidata quantity to compatible unit (Z28509)
- filter statements by qualifiers (Z28513)
- display day of year in German (Z28539)
- filter statements by property type (Z28548)
- multiply quantity by rational without rounding (Z28549)
- quantities are equivalent (including ~bounds) (Z28553)
- French infinitive from past participle (Z28562)
- percentile of float64 list (Z28565)
- Gregorian dates have same month (Z28570)
- same RGBA color (Z28580)
- make opaque (Z28587)
A complete list of all functions sorted by when they were created is available.