[18:59:53] Hello everyone! I can't connect tests or implementations for my own function, why is that and how do I gain that permission? [18:59:54] Thanks [19:00:10] and is this still unfixed? (re @wikilinksbot: T371503 – Feature request: don't make me think about tabs/spaces in python implementations [open]) [19:02:24] See [[Wikifunctions:User groups]] (re @howdoicomeupwithauniqueusername: Hello everyone! I can't connect tests or implementations for my own function, why is that and how do I gain that permission? [19:02:25] Th...) [19:03:50] if I remember correctly, connecting tests and implementation is done by https://www.wikifunctions.org/wiki/Wikifunctions:Functioneers, am I right? [19:05:58] Yes, it is! It's very confusing, though. I thought I could simply add a function that I could then use in a particular Wikipedia article, but seems that isn't the case [19:05:58] Is there a way to delete an object that I accidentally created, or do I have to file a request for deletion? (re @Sannita: if I remember correctly, connecting tests and implementation is done by https://www.wikifunctions.org/wiki/Wikifunctions:Functio...) [19:06:26] the latter, but it doesn't take too much time [19:06:45] Thanks! (re @Sannita: the latter, but it doesn't take too much time) [19:50:52] I’ve fixed your JavaScript implementation and connected everything. Any questions, just ask! [19:50:52] For connections and disconnections, please request at [[Wikifunctions:Community portal#Tasks listed by users]] (or here is also fine). [19:50:54] The spurious errors are a bug, T406784. They disappear given time and shouldn’t affect the evaluation of the function right now. (re @howdoicomeupwithauniqueusername: Yes, it is! It's very confusing, though. I thought I could simply add a function that I could then use in a particular Wikipedia...) [19:57:59] Thank you lots! [19:58:00] Seems I can't insert a function into a Wikipedia article — there isn't a "Function" in the "Insert" dropdown in the editor. Do I also need some permissions there? (re @Al: I’ve fixed your JavaScript implementation and connected everything. Any questions, just ask! [19:58:01] For connections and disconnections...) [20:03:17] Most Wikipedia versions do not currently allow function evaluations, but those that do require no special permissions, as far as I know. Where functions are supported, they can be inserted in Wikitext without using the visual editor. (re @howdoicomeupwithauniqueusername: Thank you lots! [20:03:18] Seems I can't insert a function into a Wikipedia article — there isn't a "Function" in the "Insert" dropdown in...) [20:04:48] Seems that the English Wikipedia doesn't allow them, then :( [20:04:48] Thanks for your answer (re @Al: Most Wikipedia versions do not currently allow function evaluations, but those that do require no special permissions, as far as...) [20:11:05] we are happy to help, what did you want the function to do? You are the first from WP what I have seen, so I'm curious about your usecase :) (re @howdoicomeupwithauniqueusername: Yes, it is! It's very confusing, though. I thought I could simply add a function that I could then use in a particular Wikipedia...) [20:13:17] Its already linked. I just found out about wikifunctions and then saw a page that had: "In the current year of 2025, the Dominical letter is E". That's a good usecase for a function, as I doubt that editors were going to change it at 2026-01-01 (re @Npriskorn: we are happy to help, what did you want the function to do? You are the first from [20:13:17] WP what I have seen, so I'm curious about you...) [20:13:26] That won’t change soon, I’m afraid [[Wikifunctions:Embedded function calls#Use on very big wikis]]. It is technically possible to provide a link to a function call, however. Like this. (https [20:13:26] //www.wikifunctions.org/view/en/Z30664?call=%7B%22Z1K1%22%3A%22Z7%22%2C%22Z7K1%22%3A%22Z30664%22%2C%22Z30664K1%22%3A%7B%22Z1K1%22%3A%22Z20159%22%2C%22Z20159K1%22%3A%7B%22Z1K1%22%3A%22Z17 [20:13:27] 813%22%2C%22Z17813K1%22%3A%22Z17814%22%7D%2C%22Z20159K2%22%3A%7B%22Z1K1%22%3A%22Z13518%22%2C%22Z13518K1%22%3A%222026%22%7D%7D%7D) (re @howdoicomeupwithauniqueusername: Seems that the English Wikipedia doesn't allow them, then :( [20:13:28] Thanks for your answer) [20:15:21] Haven't you seen me? (re @Npriskorn: we are happy to help, what did you want the function to do? You are the first from WP what I have seen, so I'm curious about you...) [20:17:51] Sad to hear. I doubt that a link is going to help the reader much in this case. Thanks for answering, though! (re @Al: That won’t change soon, I’m afraid [[Wikifunctions:Embedded function calls#Use on very big wikis]]. It is technically possible t...) [20:54:57] You could do something like this, though [20:54:57] {{#ifeq: {{#expr:{{#time:Y}} < {{{1|{{CURRENTYEAR}}}}}}} | 0 | {{#ifeq: {{#expr:{{#time:Y}} > {{{1|{{CURRENTYEAR}}}}}}} | 0 | is the current year, and is | was }} | {{#ifeq: {{#expr:{{#time:Y}} = {{{1|{{CURRENTYEAR}}}}}-1}} | 0 | will be | is the upcoming year, which will be }} }} {{Year article [20:54:57] header/zc|{{{1|{{CURRENTYEAR}}}}}}}. [20:54:58] }}}} [20:55:00] from https://en.wikipedia.org/wiki/Template:Year_article_header (re @howdoicomeupwithauniqueusername: Sad to hear. I doubt that a link is going to help the reader much in this case. Thanks for answering, though!) [22:23:32] yes, alright but I count you as a Wikidatian turned function-creator-already so there is a difference 😀 (re @Jan_ainali: Haven't you seen me?) [22:25:30] I like your spirit! Wikifunctions is a little like the rust compiler: it's like banging your head into the wall at a slight angle and after a while you start enjoying it! (joke) (re @howdoicomeupwithauniqueusername: Yes, it is! It's very confusing, though. I thought I could simply add a function that I could then use in a particular Wikipedia...) [22:26:39] Is the joke that one won't start enjoying it? :) (re @Npriskorn: I like your spirit! Wikifunctions is a little like the rust compiler: it's like banging your head into the wall at a slight angl...) [22:29:17] No 😅 [22:29:18] Actually I heard this joke from a seasoned rust compiler that was unfamiliar with all the complaints from it's very very strict checking of everything before letting you run the program. [22:29:19] His point was that yeah you can go back to C where almost anything can compile, but Rust is so nice you just start to love it. (re @Jan_ainali: Is the joke that one won't start enjoying it? :)) [22:32:32] I'm sure the UX people on the team already have a good idea about the main shopstoppers, but feel free to create a ticket if you find that something is not to your liking [22:34:24] One thing you pointed out, which I totally agree with, is the difficulty navigating laterally. [22:34:25] E.g. from [22:34:27] outer NLG function [22:34:28] | [22:34:30] selector function [22:34:31] | [22:34:33] language specific fragment function [22:34:34] | [22:34:36] (language specific helper) [22:34:37] | [22:34:39] general helper function [22:34:40] | [22:34:42] ... [22:34:43] all the way to the bottom which is typically some of the fetch functions [22:38:45] As you maybe saw earlier I shared an idea for a graph based solution run by a volunteer that we could use in a user script (not recommended). [22:38:46] Or we could slap on a graph backend (Not Wikibase!) just like @vrandecic and the WD team did with Blazegraph and integrate it as a separate MediaWiki extension. [22:38:48] I look forward to hearing from the team after the holidays about this idea. [22:41:48] I disconnected the Doomsday implementation since it didn't pass any of the tests. Z30664 (re @Al: That won’t change soon, I’m afraid [[Wikifunctions:Embedded function calls#Use on very big wikis]]. It is technically possible t...) [22:54:55] The implementation is fine, so I’ve reconnected it. Please bear T406784 in mind before disconnecting implementations that have recently been edited. (re @Npriskorn: I disconnected the Doomsday implementation since it didn't pass any of the tests. Z30664) [22:55:42] Alright, sorry for the noise. (re @Al: The implementation is fine, so I’ve reconnected it. Please bear T406784 in mind before disconnecting implementations that have r...) [22:56:47] No worries. Thanks for alerting me! 😎 (re @Npriskorn: Alright, sorry for the noise.)