[00:19:12] niso: if cargo_query is a parser function, i.e. {{#cargo_query:...}}, then the if is evaluated and its results put into the cargo query [00:19:20] however, that evaluation can't add extra |key=stuff [00:19:43] so you can query fields={{#if:{{{thing|}}}|field1,field2|field3}} [00:20:03] but you can't have, inside the if itself, a result of |order by=thing [00:20:33] if it's a tag extension, ... then the if is not evaluated, and you will likely see a query error [00:21:24] cant understand so much why, that because "cargo_query" is parsed 'before' the {{#if ?, because other normal 'templates' can be called "inside" cargo query no? [00:21:49] niso: which is cargo query? I legitimately don't know [00:21:54] is it a or a {{#function}}? [00:22:27] i think that probably a function [00:22:35] ah yes, saw your pastebin [00:22:47] so yes, all #ifs and other templates inside the query are expanded/parsed before it parses the query [00:23:07] it's a limitation of the parser that expanding an if or template cannot inject other parameters into the outer thing [00:23:24] i.e. you can't inject | characters which the parser then treats as parameter separators [00:23:49] but if the {{#if}} is parsed and return text, what is the limitation ? just the char '|'? [00:24:06] = as well [00:24:22] they're passed through as text, so your query would receive a literal | or = [00:24:34] rather than interpreting that as a separator in the query to add other fields or conditions [00:25:19] but #cargo_query receive text and parse it as it want (i think) no? so if the text would be something | something2 that would be ok? [00:25:35] so either you need {{#if:something|{{#cargo_query:query to do if something is true}}|{{#cargo_query:query to do if something is false}}}} [00:25:43] or you need a lua module to dynamically construct the query [00:26:13] basically what you're trying to do in that pastebin you linked is impossible outside of lua [00:27:49] got that, just trying to understand why ^_^, as for the '=', that possible to write something like that: {{#vardefine: my_stuff| =}} ------ {{#cargo_query ....|where field {{#var:my_stuff}} some_value }}. [00:28:00] whats the difference? [00:28:23] that should not be possible either [00:28:26] to my understanding [00:28:43] the why is because that's how the parser is [00:28:49] there is no working around it [00:29:38] that works for me, just without {{#vardefine: ..}}, ive wrote that with {{#switch: some_stuff| val ==}} [00:30:00] hmm [00:30:33] ok then I guess = works [00:30:57] (it either works in all cases or in no cases, there's really no in-between) [00:31:04] | is interpreted as a param separator [00:31:11] there is no esape character, although there is {{!}} [00:31:26] using {{!}} puts the pipe as literal text though, it doesn't go through to the next-higher thing [00:31:47] so either your | is treated as part of the innermost template/function, or you pass it through as text using {{!}} [00:32:34] lua however is outside of the mediawiki parser, so it can inject | into some text to have it retain its special meaning [00:39:22] umm got you, but theres no prevent to theoretical write {{!!}} that will return the pipe "escaped" as delimiter right? [00:39:58] I don't understand [00:40:28] if you mean "can I write a template {{!!}} that makes that pastebin I linked work?" then no, you cannot [00:40:32] you'd have to rewrite the entire parser [00:40:45] what you are seeking to do is literally impossible [00:41:17] I gave two workarounds earlier: 1) have two different cargo queries, with the if on the outside, 2) use Scribunto and write a lua module to assemble the cargo query [00:42:10] ive wrote two queries, that solved ^_^. just interesting [01:42:29] hello, anyone here ? [06:56:19] hi maybe someone can help me. I have a problem with my mediawiki site. i can't see my content in mediawiki. I can see my different sites but there is no content. when i edit my sites there are my contents. maybe someone have an idea? [07:32:05] hmmm somebody nows this? i downloaded mediawiki 1.30 and upload it on my ftp. when i want to use the set up i get this one [07:32:06] [WxOZMUrHFuAPz7zQGzhongAAAZA] /mw-config/index.php InvalidArgumentException from line 49 of /mnt/web210/d2/46/53893946/htdocs/Wikipedia/includes/libs/objectcache/HashBagOStuff.php: $maxKeys parameter must be above zero [07:32:14] and a few more lines [07:50:00] Reedy, foxlit, Skizzerz, I can't thank you guys enough. Last night, I spent a few more hours. Found that this patch https://phabricator.wikimedia.org/T153505 broke the cookie thing as well. Reverted this and the login is working fine! [11:21:45] hi, there is option from template to pass all the received parameters to another templates without knowing their names? [14:34:03] hello, what is the channel to ask about linter errors in wikipedia ? [16:03:55] hi. i try for a while to insert images in my mediawiki 1.30. i can upload the files and there are on my ftp. but when i want to integrate the images in text there are no images shown. when i click n the image in the filesite there comes a 500 internal server error. can someone help? [16:06:11] !500 [16:06:11] A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see . [16:13:56] hmpf [16:14:17] i tryd the php.ini but where is the error logged=? [16:14:49] your webserver error logs probably [16:16:08] nope [16:16:47] i think it is a rightsproblem or something [16:17:09] i can upload via mediawiki. it work and i see the files on ftp [16:18:33] i use [[Datei:1.JPG|thumb]] but there is an emtpy box. when i click on it there comes the foldersite. wehn i click on the image the fatal error is coming :/ [16:19:16] So follow the debug instructions [16:19:29] Unless you can get an error message, we can't really fix it [16:19:40] Sounds like you're missing stuff to do the tumbnailing though [16:36:38] i'm too stupid i don't get an error log or something [20:36:19] Hello [20:37:52] I'm trying to use the pagefromfile.py script from pywikibot to import text files as new pages in my mediawiki server. I am able to login and do some basic maintenance, but this specific bot gives me an error. [20:38:41] Error can be seen here: https://pastebin.com/WDTfuLLH [20:38:51] Anyone have an idea on how to fix this? [20:39:27] Or an easier method/tutorial on how to import text files into mediawiki as separate pages? [21:24:38] peti_: I'm not sure, it looks like it could be a bug in the script? maybe try asking in #pywikibot ?