[00:36:28] I made a little progress toward the last of these, but I think I am blocked by this Value by Key failing with an error in evaluation: Z21180 (test it by putting in something like Z21165 as the argument). It looks like there is a historic similar issue at Z15905 which is tracked by T363623. Any chance of a status update on that one? (re @Toby: I'm away from a computer [00:36:28] for this mon [00:36:28] th, but reading the newsletter and listening to the volunteer's corner I have some suggesti...) [00:48:34] Is there a template that shows the label of a Z object in a language I can choose, without a link to the object's page? I can do it with a module: `{{#invoke:Wikifunctions label|getLabel|zid=Z123|lang=ru}}`. But invoking modules from anywhere other than the template namespace is occasionally frowned upon. [00:51:05] Also, is there something like this for specific keys within a Z object? `{{#invoke:Wikifunctions label|getLabel|zid=Z14K2|lang=en}}` doesn't seem to work (I'd expect it to say "Composition"). [00:54:46] Similarly I can't get anything out of an implementation: Z21193) (re @Toby: I made a little progress toward the last of these, but I think I am blocked by this Value by Key failing with an error in evalua...) [00:56:18] I haven't seen much work on Templates on WF, so I guess the answer is no. (re @amire80: Is there a template that shows the label of a Z object in a language I can choose, without a link to the object's page? I can do...) [00:56:49] The template language is black magic (re @Toby: I haven't seen much work on Templates on WF, so I guess the answer is no.) [00:58:54] Like view the source of Template:Z [00:59:04] [[Template:Z]] [00:59:08] I did, and I couldn't find it there. (re @Feeglgeef: Like view the source of Template:Z) [00:59:32] I'll ask it differently. Is there a way to access a key within a Z object from wikitext or Lua? [01:00:06] @mahir256? (re @amire80: I'll ask it differently. Is there a way to access a key within a Z object from wikitext or Lua?) [01:02:15] Can't you just create a template that just does it w/o the link (re @amire80: Is there a template that shows the label of a Z object in a language I can choose, without a link to the object's page? I can do...) [01:03:09] I can. I just don't want to create something that may exist already. [01:03:20] Ah ok (re @amire80: I can. I just don't want to create something that may exist already.) [01:03:33] But for quoting a key, I just don't know how to do it. [01:05:48] I can try? (re @amire80: But for quoting a key, I just don't know how to do it.) [01:06:18] Of course. [01:07:07] And yes, the source of this template, and of many others, has way too many curly braces to be reasonably readable, but have you seen the output of test error on Wikifunctions? :) [01:07:13] https://tools-static.wmflabs.org/bridgebot/fbcb50c0/file_67551.jpg [01:08:12] Z22s are definitely bad but when you get used to it it's quite easy to decipher (re @amire80: ) [01:09:26] That's what experienced template developers will tell you about curly braces 🤷🏻‍♂️ (re @Feeglgeef: Z22s are definitely bad but when you get used to it it's quite easy to decipher) [01:09:35] Fair (re @amire80: That's what experienced template developers will tell you about curly braces 🤷🏻‍♂️) [01:11:02] Here this is just a Key Value not welformed (re @amire80: ) [01:11:22] The whole first half is how it got an error and wasn't expecting an error [01:13:36] One tip I can give is that you want to look at the first Z5xx that is not a Z500 or Z507. That's generally what really happened [01:14:06] Unless it's an error exclusively with your code, then it won't help you [01:52:50] Something is wrong about https://www.wikifunctions.org/wiki/Wikifunctions:How_to_create_implementations#Composition [01:53:11] It says: "The first argument of that outer concatenation is a function call itself. In order to do that, click on the > next to First." [01:54:46] I guess that it refers to something like this: [01:54:48] 1. Go to https://www.wikifunctions.org/w/index.php?title=Special:CreateObject&uselang=en&zid=Z14&Z14K1=Z18784 [01:54:49] 2. Click "Select function". [01:54:51] 3. In "function", type "join two strings", then click "join two strings" in the dropdown. [01:55:19] Two new fields appear: "first string" and "second string". [01:56:21] At this point, "The first argument of that outer concatenation is a function call itself. In order to do that, click on the > next to First." is supposed to become relevant, but there are at least two problems with it: [01:56:22] 1. There is nothing called "First". [01:56:24] 2. If we assume that "First" actually refers to the "first string" field, there's nothing that looks like ">" there. [01:56:35] Am I misunderstanding something, or is the documentation incorrect? [01:57:25] (I made a few edits on that page recently, and I'm quite sure that they are not the reason for the discrepancy between the text and the reality, but correct me if I'm wrong.) [01:57:33] Probably the docs (re @amire80: Am I misunderstanding something, or is the documentation incorrect?) [01:57:57] If anyone knows what is it really supposed to say, can anyone be bold and fix the docs? [01:58:11] Maybe tomorrow (re @amire80: If anyone knows what is it really supposed to say, can anyone be bold and fix the docs?) [05:13:56] I've found a solution to the argument reference quoting issue. I've been playing around with dynamically creating ZObjects and Z21199 (cool id, quote is Z99) work [05:14:55] I am now working on a multi-argument apply with this task completed [08:39:13] I don’t think that works when the object to be quoted has type conversion. (re @Feeglgeef: I've found a solution to the argument reference quoting issue. I've been playing around with dynamically creating ZObjects and Z...) [11:48:28] Ah, yeah. Luckily, our issue was mainly enum types (re @Al: I don’t think that works when the object to be quoted has type conversion.) [12:17:57] Ah, good. We already have (non-functioning) `Z16575 `labelled “Quote an object”. Perhaps your new function would be “Quote a type” (although it also works for Boolean values and strings)? (re @Feeglgeef: Ah, yeah. Luckily, our issue was mainly enum types) [13:59:28] It quotes anything (re @Al: Ah, good. We already have (non-functioning) Z16575 labelled “Quote an object”. Perhaps your new function would be “Quote a type”...) [14:00:09] We could delete one of them [14:00:41] Well, not function calls but that's kinda the poinr (re @Feeglgeef: It quotes anything) [14:03:21] Not really. It returns an unspecified error for value objects like January or Tuesday. (re @Feeglgeef: It quotes anything that doesn't type convert) [14:07:52] I suppose we could hardcode just those ones by pasting the type converter in (re @Al: Not really. It returns an unspecified error for value objects like January or Tuesday. [replying before your edit 😏]) [14:10:32] How would we know which one to select? (re @Feeglgeef: I suppose we could hardcode just those ones by pasting the type converter in) [14:11:04] Uh [14:11:26] 🤷‍♂ [14:17:06] Maybe for now we just check that the object is a type before trying to quote it? (re @Feeglgeef: 🤷‍♂) [14:35:31] Perhaps we can wrap it in something to not type convert it? [14:42:04] We can also have the type as an input (re @Al: How would we know which one to select?) [15:41:29] So Feeglgeef and I found https://www.wikifunctions.org/wiki/Module:Wikifunctions_key_label , but it doesn't seem to [15:41:30] 1. work [15:41:31] 2. be used anywhere (re @amire80: I'll ask it differently. Is there a way to access a key within a Z object from wikitext or Lua?) [15:41:45] I made that (re @amire80: So Feeglgeef and I found https://www.wikifunctions.org/wiki/Module:Wikifunctions_key_label , but it doesn't seem to [15:41:46] 1. work [15:41:48] 2. b...) [15:41:50] Like yesterday [15:41:54] Oh OK [15:41:55] I'm working on it [15:42:04] Thanks [15:42:40] Should probably be merged with Module:Wikifunctions label eventually [15:45:13] Is this list of language codes <=> ZIDs available programmatically somewhere? Just like in that module, i had to hardcore the list in @wikilinksbot too (re @amire80: So Feeglgeef and I found https://www.wikifunctions.org/wiki/Module:Wikifunctions_key_label , but it doesn't seem to [15:45:13] 1. work [15:45:15] 2. b...) [15:45:45] I don't think so (re @jhsoby: Is this list of language codes <=> ZIDs available programmatically somewhere? Just like in that module, i had to hardcore the li...) [15:45:54] (but that was a good while ago – maybe something has come along in the meantime?) [18:20:02] I've fixed this by wrapping it in a typed pair which does not type convert yet. You have to set your input to a make pair and the second input must be type Z21 (re @Al: Not really. It returns an unspecified error for value objects like January or Tuesday. [replying before your edit 😏]) [18:24:56] I've created a composition of this on *Z16575* [22:57:29] 9252