Wikifunctions:Project chat/Archive/2025/11
| This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Make function/implementation/test pages more distinguishable
Hi,
It seems to be a common problem, especially but not only for beginners, to know what type of pages are looking at. Mainly because the identifier look the same (you can't deduce from the id alone Z16438 or Z16439 what it is). There is some visual clues that allow to know if a page is a function, an implementation or a test (in particular, it's written under the identifier) but I'm wondering if we couldn't/shouldn't make the distinction more obvious, for instance adding some kind of icon before the name, writing the type more prominently, and/or changing the color a bit (other ideas are welcome obviously).
What do y'all think?
Cheers, VIGNERON (talk) 13:09, 1 November 2025 (UTC)
- I agree. I don't know exactly what the design elements should be, but making it a little bit clearer so that one, at a glance, sees what type of page one is currently on would be very helpful. Especially since in a normal workflow one start with a function, creates a test, goes back to the function creates the implementation and then to the function again. These switches and having to know what type the page you're looking at is, is a cognitive burden in an already complex task. Ainali (talk) 13:46, 1 November 2025 (UTC)
- Makes sense. I’d like to pitch in phab:T373735 here, too. Also, we already distinguish functions with a different icon in the object selector, but it would be better to limit the results to the required type of object (as already happens in some contexts). GrounderUK (talk) 14:12, 1 November 2025 (UTC)
- @Ainali and GrounderUK: if we go with icons, what should they be? It would be nice to reused Unicode emoji (easier and more interoperable than custom designed icons). My proposal is that it could be something like: 📜 (Function, not my best idea) ⚙️ (Implementation, where the gears of the code actually runs) and 🧪 (Test, a test tube). What do you think? Cheers, VIGNERON (talk) 17:24, 8 November 2025 (UTC)
Wikifunctions & Abstract Wikipedia Newsletter #226 is out: Getting ready for second round of voting for naming the wiki with abstract content; Rewriting the backend: Why Rust?
There is a new update for Abstract Wikipedia and Wikifunctions. Please, come and read it!
In this issue, we summarise current discussion regarding the naming contest for Abstract Wikipedia, we discuss how we are rewriting the backend, we ask for help in substituting a function, we suggest you the recordings of Wikifunctions-related sessions at the WikidataCon 2025, and we take a look at the latest software developments.
Want to catch up with the previous updates? Check our archive!
Also we remind you that the next Natural Language Generation Special Interest Group meeting will be held on November 18, at 16:00 UTC (link to the meeting).
Enjoy the reading! -- User:Sannita (WMF) (talk) 14:42, 13 November 2025 (UTC)
Wikifunctions & Abstract Wikipedia Newsletter #225 is out: First round of voting for naming the wiki for abstract content closed; Calling for Wiktionary functions; Embedded Wikifunctions on Bengali Wikipedia and seven more Wiktionaries
There is a new update for Abstract Wikipedia and Wikifunctions. Please, come and read it!
In this issue, we update you on the closing of the first phase of the naming contest for Abstract Wikipedia, we introduce a possible implementation of Wikifunctions for Wiktionaries, we talk about our latest outreach events, and we take a look at the latest Type and software developments.
Want to catch up with the previous updates? Check our archive!
Enjoy the reading! -- User:Sannita (WMF) (talk) 14:06, 6 November 2025 (UTC)
- I do not see this Status Update linked at the Main Page. Can you please add it there. Hogü-456 (talk) 20:49, 11 November 2025 (UTC)
- @Hogü-456: I've added this one (and last week's). Thanks for spotting! Jdforrester (WMF) (talk) 21:44, 18 November 2025 (UTC)
- This section was archived on a request by: Sannita (WMF) (talk) 16:03, 18 December 2025 (UTC)
Naming contest: two quick news
Hello all! Two quick updates around the naming contest:
- We are moving back the beginning of the second round of voting for two or three days. This is to give a bit more time for vetting the names.
- Unfortunately, my favorite name had to be stricken from the contest: Wikicore. That name unfortunately clashes with an existing registered and actively used trademark in a key jurisdiction. We are aware that it was the candidate with the second-most upvotes. We are very sorry. --DVrandecic (WMF) (talk) 13:13, 17 November 2025 (UTC)
- I was thinking for a moment to maybe replace Wikicore with Core Wikipedia, but given the reactions to those two names in the first round, this does not seem to be even close to what the community is thinking about these two names. So, we just dropped the Wikicore option instead. --DVrandecic (WMF) (talk) 13:18, 17 November 2025 (UTC)
- That is sad, but I agree that dropping it completely is right. I'd still like to know the plan for variants, e.g. Proto-Wiki vs ProtoWiki. 99of9 (talk) 20:32, 17 November 2025 (UTC)
- Seeing as you're already delaying the vote, why not promote the next highest proposal from the previous round to be a candidate? By your metric that would be "Wikiblueprint" (which, by my example metric, beat half of them). YoshiRulz (talk) 03:53, 18 November 2025 (UTC)
- They considered pulling in Wikiblueprint, but unfortunately it's an active business name. --99of9 (talk) 05:09, 18 November 2025 (UTC)
- You should echo this on the second round page. YoshiRulz (talk) 03:58, 18 November 2025 (UTC)
- I added a note about it, with a link to this section in the project chat. Hogü-456 (talk) 20:40, 19 November 2025 (UTC)
Reminder: Help us decide the name of the new Abstract Wikipedia project
Hello. Reminder: Please help to choose name for the new Abstract Wikipedia wiki project. The finalist vote starts today. The finalists for the name are: Abstract Wikipedia, Multilingual Wikipedia, Wikiabstracts, Wikigenerator, Proto-Wiki. If you would like to participate, then please learn more and vote now at meta-wiki. Thank you!
-- User:Sannita (WMF) (talk) 14:21, 20 November 2025 (UTC)
- This section was archived on a request by: Sannita (WMF) (talk) 16:03, 18 December 2025 (UTC)
Wikifunctions & Abstract Wikipedia Newsletter #227 is out: Second round of voting for naming the wiki with language-independent content; Sharing function calls
There is a new update for Abstract Wikipedia and Wikifunctions. Please, come and read it!
In this issue, we announce the start of the second phase of the naming contest for Abstract Wikipedia, we share the results of the MacArthur Foundation's 100&Change contest, we share the recording of the last NLG SIG meeting, and we take a look at the latest software developments.
Want to catch up with the previous updates? Check our archive!
Enjoy the reading! -- User:Sannita (WMF) (talk) 10:11, 21 November 2025 (UTC)
- This section was archived on a request by: Sannita (WMF) (talk) 16:03, 18 December 2025 (UTC)
Wikifunctions & Abstract Wikipedia Newsletter #228 is out: Vote on the new wiki name! Finishing each other’s sentences
There is a new update for Abstract Wikipedia and Wikifunctions. Please, come and read it!
In this issue, we update you on our naming contest for Abstract Wikipedia, we discuss our progress on sentence creation with functions, and we take a look at the latest software developments.
Want to catch up with the previous updates? Check our archive!
Also, we remind you that if you have questions or ideas to discuss, the next Volunteers' Corner will be held on December 1, at 18:30 UTC (link to the meeting).
Enjoy the reading! -- User:Sannita (WMF) (talk) 11:38, 27 November 2025 (UTC)
- This section was archived on a request by: Sannita (WMF) (talk) 16:03, 18 December 2025 (UTC)
Does anyone know what could be wrong with this function? It's working fine but it's replacing "‧" with "·". EnaldoSS (talk) 10:49, 20 November 2025 (UTC)
- @EnaldoSS: If it's outputting a Unicode
·( Middle Dot ,·) rather than a Unicode‧(Hyphenation Point), this might be the result of the regex code? Jdforrester (WMF) (talk) 16:32, 20 November 2025 (UTC)
Functions using this function
Inspired by Vigneron's observation above and a note I made in the chat at the talk at WikidataCon today. We are now at a place that it is possible to compose function of other functions, which in turn may be part of other compositions. Following the latest newsletter I could figure out how to add Swedish to the album short description function. But it is a bit confusing, and it was noticeable in this instance, to keep track on what "level" one is working on or looking at. I think it would be helpful to have on the page (not having to go the WhatLinkshere and having to figure out which links may be relevant) something like "This function is used by: [list of functions]" Or do you have any other good tricks for this? Ainali (talk) 13:59, 1 November 2025 (UTC)
- I don’t know whether it’s a “good” trick, but you can try something like this:
- Special:Search/: z14K2 "z7k1 Z13708" !"z14K1: Z13708".
- This should find implementations that call a given function (Z13708, in this case) but which are not themselves implementations of that function. This is more focused than “What links here”, also eliminating test cases and pages outside of the main namespace. As phab:T373735 suggests, being able to see which function the listed implementations implement would be an advantage (and this also applies to the results in “What links here”).
- This approach cannot handle nested function calls or the kind of indirection introduced by function application (as with functions configured by language). In the second case, an alternative like
- Special:Search/: Z28811 !"z14K1: Z28811" !Z20
- will exclude the function’s own implementations and all test cases, but still find the configuration that selects the target function. GrounderUK (talk) 15:00, 1 November 2025 (UTC)
- I like your question and think having something for this is helpful. What do you think about creating Wikidataitems for each function in Wikifunction and adding a property to each item to show which functions a function is using. I am not sure if it is a good solutions. It seems to be more usable than the special search syntax. SPARQL-Queries are also not easy to modify and so I am not sure if it is a good idea and if there will be enough user. A bot can be used to update the items every time a function is modified. Hogü-456 (talk) 17:36, 3 November 2025 (UTC)
- I suspect that the data is already in some database tables, so it would probably be redundant storing it on Wikidata as well. Ainali (talk) 19:02, 3 November 2025 (UTC)
- Do you know where the information is stored. I looked at the tables of the Wikilambda extension. There is the wikilambda_zobject_join_table and wikilambda zobject function join table. It seems to me like these are the most related tables for the request you have. I tried to write queries in Quarry to get the content and have not found out if there is the information inclueded what functions are used in a function. Hogü-456 (talk) 21:22, 4 November 2025 (UTC)
- I don’t believe the information already exists. Functions are not physically used by functions; they are used by implementations and test cases. This is why “What links here” for a function lists no functions (apart from itself). GrounderUK (talk) 21:54, 4 November 2025 (UTC)
- Ah, yes of course. But that was really what I wanted to know (especially being used by implementations), even though I wasn't very clear in my original post. Ainali (talk) 08:05, 5 November 2025 (UTC)
- I wanted this too for the graphical images of our network. The first graphs had a composition in between each pair of functions (i.e. function A has a composition B which calls function C). It's all extractable from the dump, but needs a second order query. --99of9 (talk) 05:14, 7 November 2025 (UTC)
- Right. Unfortunately that info is not present in the database tables. There is an open ticket proposing that we add it: T388047 DMartin (WMF) (talk) 01:06, 7 November 2025 (UTC)
- Ah, yes of course. But that was really what I wanted to know (especially being used by implementations), even though I wasn't very clear in my original post. Ainali (talk) 08:05, 5 November 2025 (UTC)
- I don’t believe the information already exists. Functions are not physically used by functions; they are used by implementations and test cases. This is why “What links here” for a function lists no functions (apart from itself). GrounderUK (talk) 21:54, 4 November 2025 (UTC)
- Do you know where the information is stored. I looked at the tables of the Wikilambda extension. There is the wikilambda_zobject_join_table and wikilambda zobject function join table. It seems to me like these are the most related tables for the request you have. I tried to write queries in Quarry to get the content and have not found out if there is the information inclueded what functions are used in a function. Hogü-456 (talk) 21:22, 4 November 2025 (UTC)
- I suspect that the data is already in some database tables, so it would probably be redundant storing it on Wikidata as well. Ainali (talk) 19:02, 3 November 2025 (UTC)
- Thread referenced in phab:T410822 (final paragraph). GrounderUK (talk) 13:13, 22 November 2025 (UTC)
Are function aliases in mul not surfaced?
I just tried adding the Scribunto equivalent for a function as an alias, but when I type it into a Z8-typed input field, it doesn't autocomplete, nor does it autocomplete in the site searchbox. YoshiRulz (talk) 08:22, 22 November 2025 (UTC)
- Apparently not. Another example is “atan”, which is found as an “en” alias for Z19156 but not as a “mul” alias for Z20959. Will you be filing a ticket on Phabricator? GrounderUK (talk) 10:47, 22 November 2025 (UTC)
I'll do that now, there doesn't seem to be an existing one.Nevermind, found it while looking for links to previous discussion, it wasn't in the front-end tag where I was searching. YoshiRulz (talk) 11:59, 22 November 2025 (UTC)
re: using system messages in functions
We can't use {{int:}}
since HTML fragment (Z89) doesn't go through the Wikitext parser. How can we make use of that library of translations?
For my specific use case I wanted the string "no value",
so for now maybe I could pull the label from no value (Z6022)? (Since concept of no-value in Wikibase (Q19798647) is different.) YoshiRulz (talk) 15:57, 23 November 2025 (UTC)
- @YoshiRulz: Yes, you should use labels from Wikidata as the general translation system, rather than hacking things through the MediaWiki-interface i18n system Jdforrester (WMF) (talk) 04:04, 25 November 2025 (UTC)
- So something like Z16273(Z20607("Z6022"), Z1002) then? YoshiRulz (talk) 08:53, 25 November 2025 (UTC)
- Hmm… I guess you can’t use Wikidata labels for items that don’t exist. Presumably their creation is opposed by that community as a matter of policy? For extracting a Wikifunctions label, I’d suggest something based on this function call, avoiding the indirection from converting the ZID to a quoted object reference (unless and until we get some progress on phab:T366459). GrounderUK (talk) 11:01, 25 November 2025 (UTC)
- So something like Z16273(Z20607("Z6022"), Z1002) then? YoshiRulz (talk) 08:53, 25 November 2025 (UTC)
Categorisation and extended documentation for functions
This has come up before, but going forward I think it would be worth setting up a template like d:Template:Property documentation where related functions and categories could be listed in a standard way, rather than asking people to put links on talk pages ad hoc. Stuff like "equivalent functions on other data types:", "is specialisation / partial application of:", or "is subroutine of:". And then long-form documentation for humans could follow that if necessary, maybe stored on a different page and transcluded so that it's translatable. YoshiRulz (talk) 17:32, 4 November 2025 (UTC)
- @YoshiRulz: I would strongly encourage you to think about what might be worth documenting to whom and why, rather than rush in with a talk-page-based solution. The original plans for Wikifunctions included a lot of (vaguely-specified) ideas around reader-facing, translated documentation. Hiding it on the talk page would undermine a lot of potential visibility and leave readers lost. Jdforrester (WMF) (talk) 17:03, 5 November 2025 (UTC)
- I'd assumed it must be on the talk page because the description field is too small and not Wikitext, also that's where Wikidata puts Property docs, and where is currently suggested e.g. in the FAQ. YoshiRulz (talk) 18:31, 5 November 2025 (UTC)
- As for the target audience, there would be at least those looking to use the function in an embedded call (possibly via VisualEditor), and those looking to use it as part of implementing another function here. I would say their needs mostly overlap, except you could probably omit some of the links to related functions for the former since they'd only be relevant to maintainers of this wiki. The long-form docs, if present, would be the most important; I envision them being used similarly to template documentation, clarifing a function's semantics (more than would fit in the description) and giving usage examples. YoshiRulz (talk) 18:47, 5 November 2025 (UTC)
- I support this idea as an improvement on the status quo. I don't think I understand the alternative Jdforrester is suggesting. Where other than the talk page would you expect to find "equivalent functions on other data types", for example? In the catalogue, maybe, but that's hard to find starting from the function itself. --99of9 (talk) 23:35, 11 November 2025 (UTC)
- @99of9: They would probably go on the Function's page itself, depending on what our designers and product people come up with following on from the list of wants and needs. This was our original plan back in 2020. Jdforrester (WMF) (talk) 21:06, 13 November 2025 (UTC)
- Oh sure, even just having Categories on mainspace pages would be great. But unless you tell us otherwise, that could be another 5 years away for all I know. So in the short/medium term I still support categorisation and templates on the talk pages, and I wouldn't characterise that as "rush[ing] in". --99of9 (talk) 04:35, 14 November 2025 (UTC)
- @99of9: They would probably go on the Function's page itself, depending on what our designers and product people come up with following on from the list of wants and needs. This was our original plan back in 2020. Jdforrester (WMF) (talk) 21:06, 13 November 2025 (UTC)
- Some more ways to link persistent objects together that have come to me: "raises exception types:" (Z50s on Z8), "{throwing,non-throwing} equivalent:" (Z8 on Z8), "outputs satisfy invariants:" (Z8s on Z8, see also refinement types proposal), "creation functions (constructors):" (Z8s on Z4), "decomposition functions:" (Z8s on Z4), "is (approximate) inverse of:" (Z8s on Z8), "complementary/negative function:" (Z8 on Z8), "specific to language:" (Z60 on Z8, for functions on strings or Lexemes with no lang param, or weird things like Z15151), "equivalent function on {item,property,lexeme} {object,ref}:" (Z8s on Z8, for functions on Wikidata interop types) YoshiRulz (talk) 12:17, 27 November 2025 (UTC)