[01:26:02] lol [01:32:16] at least mediawiki doesn't reply "I hate you" like... cvs? svn? [02:08:01] Platonides: well, not yet [02:12:35] this can be arranged [11:59:54] huh [21:26:44] Is there a way to pass a template parameter to a parser function without it being parsed? So that you can have some wikitext as value, and the parser function would get the plain wikitext, rather than a parsed version? [21:31:30] use [21:31:55] (in the place that uses the template, not inside the template) [21:32:38] so e.g. {{MyTemplate|'''raw wikitext {{here}}'''}} and inside of Template:MyTemplate {{{1}}} will refer to that raw wikitext [21:36:39] Thank you moonmoon [21:36:47] I forgot to mention that is the current solution [21:36:58] But I'm looking for something without [21:37:08] not possible [21:37:16] Or at least an approach where nowiki is not exposed to the user editing the template call [21:37:23] also not possible [21:37:38] They edit the template via a form (Page Forms), and it's silly for them to have to add nowiki around their text in ther [21:37:42] the arguments get parsed before the template does, so there's no raw text available by the point in time the template is expanded [21:38:39] What if we replace the template with a Lua module? [21:38:46] also wouldn't work [21:38:50] you'd need a tag extension [21:39:55] er, sorry [21:39:59] directly calling a module would work [21:40:28] so if your form does {{#invoke:foo|...}} directly then lua can grab the wikitext before it's parsed [21:51:04] That is really ineteresting [21:51:12] If only we could warp that call into a template... [21:51:38] Now the question is if we can get Page Forms to somehow generate the invoke call, rather than a standard template call [21:53:59] "They edit the template via a..." <- Are there stuck with pageforms? [21:53:59] I know Flexform has a noparse option to avoid this.. [21:55:05] You don't need to replace all pageforms forms, just that one.. [22:00:16] Charly[m] is there documentation or an example? [22:05:46] And what versions of MediaWiki does this extension work with? Just 1.35.x? [22:21:27] Yes, until November only 1.35x [22:21:27] Documentation on https://open-csp org [22:21:41] s//./ [22:22:26] I checked the docs and am not finding anything about noparse. Could you link the relevant page? [22:26:05] Ahh, might be it's not on there 🤭 it's ( the docs ) work in progress. I can always setup an exact example if you want. It is almost midnight here, so hope it's ok when I did that tomorrow. Was just going to bed. Or we could discord or Skype or whatever and walk though it? Just ping me [22:27:00] Thanks! [22:33:42] moonmoon I'm not so sure about the arguments being parsed before the template. [22:34:01] To test, I created a template with {{{1}}} [22:34:16] Then I called the template: [22:34:22] {{Escaped|I'm a refence}} [22:34:39] The result is simply {{{1}}}. No reference shows up. [22:42:38] {{{1}}} is telling the template that you want a literal "{{{1}}}" so that's what you got [22:44:17] Yeah, I am not surprised by that [22:44:31] Maybe I misunderstood what you meant earlier [22:45:00] I thought you meant that the wikitext would get parsed before it got to the template [22:46:12] Sooo... there is no way to get the value from {{{1}}} without that value being parsed as well? [22:46:23] pretty sure that used to be the case [22:49:56] Thanks again, I appreciate your help