[04:20:35] what is a good method for starting a copy of an existing wikimedia wiki on my own vps? [06:56:22] legoktm: not really down, just not enabled ^^ I have to write the sysadmins [12:45:26] [[Tech]]; Mahamed.david; /* Mahamuud Daa'uud Ali */ new section; https://meta.wikimedia.org/w/index.php?diff=16728663&oldid=16715257&rcid=9651760 [12:58:30] legoktm: ok, I asked [12:58:53] [[Tech]]; Ruslik0; Undo revision 16728663 by [[Special:Contributions/Mahamed.david|Mahamed.david]] ([[User talk:Mahamed.david|talk]])off-topic; https://meta.wikimedia.org/w/index.php?diff=16728708&oldid=16728663&rcid=9651822 [13:02:12] [[Tech]]; Ruslik0; Undo revision 16700523 by [[Special:Contributions/Alexis Jhon Gaspar|Alexis Jhon Gaspar]] ([[User talk:Alexis Jhon Gaspar|talk]]); https://meta.wikimedia.org/w/index.php?diff=16728730&oldid=16728708&rcid=9651850 [14:01:44] /wl [14:01:46] erhm [17:30:18] Is there a page on mediawiki.org or somewhere that explains all illegal characters for file names? I am trouble finding a list. [17:35:39] DominicBMcD: mostly they have the same restrictions as regular page names: https://www.mediawiki.org/wiki/Manual:Page_title plus the requirement to have an extension that matches the file contents [17:36:29] Ah, okay, thanks! [17:36:36] (it's unfortunately not as simple as just rejecting some invalid characters, there are some funny rules there) [17:39:53] MatmaRex: I found if I upload via API and ignore warnings, it silently converts some characters (like square brackets) to "-", but since that wasn't the input I supplied, I was trying to see if I could recreate how it transforms the page titles on my own so my log has correct links. [17:46:04] DominicBMcD: hmm, the final title is probably included in the API response somewhere [17:46:59] Yeah, that's a good point. I am using mwclient for the first time. Will look in the docs. [17:49:54] Though my script was written assuming I knew the name of files I was uploading beforehand, so I create links in a gallery. [17:50:35] I can probably just get away with converting the "# < > [ ] | { } _" characters ahead of time, and that should cover all cases for this purpose. [18:17:53] hi folks [18:18:20] can anyone help with a subst problem for the Met Museum? https://en.wikipedia.org/wiki/Template_talk:Mbabel/MET [18:22:41] no expert, but have you tried {{subst:wikidata for each {{wikidata ? [18:25:57] i have, not good enough [18:26:23] it's something deep in https://www.mediawiki.org/wiki/Help:Substitution [18:30:41] pharos "Substitution is not available inside ... and ... tags. If you write {{subst:foo}}, it is not substituted nor transcluded, but remains as-is." [18:30:48] so it won't work [18:31:30] ah, thank you [18:31:41] I think maybe I know how to get it to work now [18:34:31] or at least that's a clue [18:37:56] pharos: you can use {{subst:#tag:ref|{{cite web … }} }} to allow substitution inside of the tag. (and yeah, this is nasty stuff, always preview before saving to make sure it works) [18:39:13] @MatmaRex will that work with the if statement too? [18:40:21] pharos: you'll need to add the subst: for every "inner" template/parserfunction too. so {{subst:#if:…, {{subst:wikidata|…, etc. [18:40:35] ok, sounds great [18:40:58] "great" is not a word i would use to describe this system, but it should work ;) [18:58:13] MatamaRex having some trouble still https://en.wikipedia.org/wiki/Template:Mbabel/MET [18:58:30] I don't suppose you could fix the actual text [18:58:46] I'm afraid it's uglier than you though even [19:06:32] @MatamaRex [19:06:54] pharos: hm [19:07:24] basically, first it checks whether t's a Met artwork [19:07:41] if yes, it gives the url for that [19:07:45] pharos: this is meant to be used like "{{subst:Mbabel/MET|Q42}}", right? [19:07:56] if not it takes whatever else is in wikidata [19:08:08] no, without subst [19:08:09] or is this preload text? [19:08:16] preload text [19:08:33] like {{Mbabel|Q42}} [19:09:05] see examples at https://en.wikipedia.org/wiki/Wikipedia:GLAM/Metropolitan_Museum_of_Art/Artworks [19:09:45] so like this? https://en.wikipedia.org/w/index.php?title=User:Matma_Rex/sandbox2&action=edit&preload=Template:Mbabel/MET&preloadparams[]=Q42 [19:10:03] yeah. okay [19:10:55] yes, basically [19:12:16] you might want to use a Q id like Q29384768 for it to be meaningful [19:13:42] pharos: hmm, i think it works? https://en.wikipedia.org/w/index.php?title=Template:Mbabel/MET&diff=779748120&oldid=779745063 [19:14:15] pharos: i viewed https://en.wikipedia.org/w/index.php?title=User:Matma_Rex/sandbox2&action=edit&preload=Template:Mbabel/MET&preloadparams[]=Q29384768 and clicked "Show changes", and the ref seems to get expanded in the final wikitext [19:14:35] it'll still look scary in the edit box until it's saved, but i don't think that's avoidable [19:15:03] thank you! [19:15:17] I tried it with non-Met art and irt works as well [19:15:31] yay :) [19:16:04] wonderful, now we are almost ready for https://meta.wikimedia.org/wiki/Met_Open_Access_Artworks_Challenge [22:19:40] hey do you guys handle anything with twinkle? [22:21:02] Chrissymad: not that i know of. i think it's all Hangouts or BlueJeans [22:21:17] but you never know what another team picked, heh [22:22:24] thanks mutante [22:22:32] * Chrissymad has no idea where to start with this request [22:23:23] Chrissymad: I believe the best place might be on the Twinkle talk page. [22:23:43] drewmutt: i think it might be easier to get a script [22:24:27] though i'm wondering now if it could be set up in twinkle like the 3rr reporting is [22:24:33] where it allows you to select the revisions [22:24:38] would certainlym ake it less complicated