[01:44:21] Hi [01:44:31] I need to ask something [01:44:59] How do I use Extension:InterWiki to make an "Other languages" bar on the left side of every article? [01:53:08] Philmonte101: I believe that's in the Interwiki manual [01:53:17] Philmonte101: https://www.mediawiki.org/wiki/Manual:Interwiki#Interwiki_links_to_other_languages [04:31:23] hey you know is it possible to skype about stuff like this? [04:31:41] Because I'd find this stuff a lot easier if someone watched me with screenshare and helped me [04:31:44] Does anyone use Skype? [04:32:06] i'm trying to make it so my wiki has interwiki links on the sidebar [10:07:31] is there any sysop of mediawiki.org awake here? This user emailed me about being blocked by the abuse filter, but the edit was legitimate: https://www.mediawiki.org/wiki/Special:Contributions/ContributorQ [10:07:49] the block should be lifted [10:10:41] Vulpix: done [10:11:05] p858snake|_: thanks! [10:11:45] if they reply to that flow ticket it will trigger again by the looks [10:11:45] p858snake|_: do you have access to the filter to know what triggered the block? so he doesn't get trapped again? [10:11:54] whoops [10:13:06] " triggered filter 41, performing the action "reply" on Topic:Squej6hqqikk8bev. Actions taken: Block; Filter description: Temporary mass spambot attack (details | examine)" [10:14:16] so the match is because of the topic title, maybe? [10:16:02] I don't think so, But i'm not regexy [10:17:32] ok, I'd like to know, to tell him not use some special wording that may be blacklisted by the filter [10:25:29] Hi how can i rename tables in mediawiki since i have the syntax which is RENAME TABLE `hitcounter` TO `hit_counter_extension`; but not sure what code i use to rename the sql in the web updater for example using $updater-> but not sure which bit to use [10:44:10] paladox: is there any reason you are renaming it, its a long standing table name [10:44:32] Well it make it consistant with the extension. [11:13:38] p858snake|_: Hi the sql was created by someone else. It was there when the extension was first released since that sql is for the prevous mediawikis which had that table, But that table was removed in one of the mediawiki version but currently it is using $updater->modifyExtensionField to rename the table but that wont work because we arnt renaming a columb or a field we are renaming a table but i am not sure what [11:13:39] code i have to use to do that please could i have help. [12:34:44] Hi paladox. [12:35:19] Paladox: Try asking tomorrow since today is a Sunday and people who might know aren't around? :) [12:35:44] Ok. [12:36:25] Nice to see you here though, paladox! You have been helping on a lot of my patches in Gerrit! [12:36:47] Niharika: Thanks. [12:40:23] what was the question? [12:41:18] paladox: are you looking for a funtion in the DatabaseUpdater to rename the table? [12:41:30] Yes. [12:41:57] did you check $IP/includes/installer/DatabaseUpdater.php already? [12:42:08] because I sometimes chase PostgreSQL bugs [12:42:33] Nopes. But looking at it theres only a rename index function. [12:43:02] yes [12:43:48] Ive created a patch at https://gerrit.wikimedia.org/r/#/c/247085/ that adds support for renaming tables. Its code is similar to rename index but the names are different. [12:44:03] postgresql updater has renameTable I can see [12:45:43] Oh. So if postgresql has one shoulden it be added to mysql. [12:46:06] PostgreSQL support is missing in your patch [12:46:28] Oh. Ok i will try and add support now. [12:46:30] it makes little sense to write "generic" DB routines if they are MySQL only [12:46:40] can you rename table in mysql with alter table? [12:46:55] "ALTER TABLE $old RENAME TO $new" ); [12:47:05] you have it in PostgreSQL::renameTable already [12:47:39] also sqlite would be worth checking out since it is used for tests [12:48:19] Ok. [12:48:24] recent mysql seems to support the same syntax [12:49:04] sqlite> create table a (int b); [12:49:05] sqlite> alter table a rename to b; [12:49:05] sqlite> .schema [12:49:06] CREATE TABLE "b" (int b); [12:49:23] Ok. Maybe ALTER TABLE will work but modify filed wont work. So have to create a new function that adds the support. [12:49:29] looks like you can just migrate the PostgresUpdater method to the DatabaseUpdate [12:49:39] modify filed? [12:51:41] Sorry misspelled it, It meants to be Modify Field. [12:55:13] you can't rename fields in MySQL, can you? [12:55:40] ah no, you can [12:56:10] Yes by using alter table. [12:57:03] so...? [12:57:22] the problem with MysqlUpdater is that too many handwritten sql scripts are used [12:57:56] we really should have some generic schema handling [12:58:18] I doint thinkso I think it is just too less functions that help you to change the sql like rename a table in mysql. [12:59:43] Oh yes, I thouht you were asking a question sorry didnt read whole sentence yes i think there should be generic schema handling. [13:02:12] one step at a time [13:02:28] if you provide a generic renameTable and renameField methods now it will be a good stuff [13:02:38] would that solve the problem for you? [13:05:54] Yes. [13:09:13] shouldn't be too difficult [13:09:32] i have a problem with copying whole schemas for testing [13:09:52] https://gerrit.wikimedia.org/r/#/c/100141/ [13:14:34] Ok. [13:17:39] that's a bit more difficult than renaming tables [13:56:28] Are there any extensions around or so that would allow me to write a function and graph it on the fly on a wiki page? [14:28:32] FatalNIX: Not sure if this helps, but you can look at: https://phabricator.wikimedia.org/T109291 [14:29:20] https://www.mediawiki.org/wiki/Extension:Graph/Demo [14:30:56] huh. [14:31:13] it may just be better for me to upload the graphs maybe [14:31:35] but it would be cool if it was dynamic because then when I change the variables itl have the most up to date function output [14:33:55] Doesn't this dynamically update it based on the JSON? [14:44:09] yeah. It looks more of a data graph though [14:45:09] I'm looking for something I could set a function for like, f(t) = 5-5e^(-t/(4000*0.000001)) [14:45:50] which, that is the function for the voltage of a capacitor with respect to time (t), given a resistor that is 4K Ohms and capacitor that is 1 micro farads. [14:59:35] FatalNIX: Have a look at other graph extensions too: https://www.mediawiki.org/wiki/Category:Graph_extensions [14:59:42] There's gotta be something. [15:00:26] at first I was like, maybe I can embed google's graphing calculator, but it just so turns out that google calculator fails at graphing [15:02:03] FatalNIX: Check out https://www.mediawiki.org/wiki/Extension:WikiPlot [15:02:36] wwwwoooooooowwww [15:02:45] I avoid that one because I was thinking of dot plots [15:02:46] lol [15:02:52] should have looked :) [15:02:53] :) [15:04:29] FatalNIX: Consider giving the maintainers a thumbs up for it and logging bugs, if you find any! :) [15:08:13] :) Thanks! [15:22:39] saper: Ok ive updated the code at https://gerrit.wikimedia.org/r/#/c/247085/ which ive just copied code from postgres but changed it a bit. It should also support sqlite. [15:25:38] Hi, i am facing some issue while MediaWiki API [15:25:42] can anyone here help me out [15:31:17] My issue is, using API allpages i found the page number and title. I want to know which API to be used to actually get the content on that page [16:47:13] viku: so you have page_ids right? [16:47:18] !ap [16:47:19] There are multiple keys, refine your input: api, apiclient, apiinternal, [16:47:21] !api [16:47:21] The MediaWiki API provides direct, high-level access to the data contained in the MediaWiki databases. Client programs should be able to use the API to login, get data, and post changes. Find out more at < https://www.mediawiki.org/wiki/API >. For client libraries in various languages, see < https://www.mediawiki.org/wiki/API:Client_Code >. [16:48:41] viku: https://www.mediawiki.org/wiki/API:Parsing_wikitext Retrieving just the raw source wikitext can be done through prop=revisions. [16:49:46] @saper: yes i have the page_ids [16:51:06] viku: https://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=API|Main%20Page&rvprop=timestamp|user|comment|content [16:51:23] takes the content from lates revision of API:Main_Page [16:52:14] you can give pageids as well [16:52:57] if you do action=query to get pageids, you can get revision properties directly [16:54:03] I tried with pageid. But it is saying unrecognized parameter "pageid". As per the documentation, this parameter exists [16:54:57] "pageids" [16:55:39] That worked. Thanks [16:55:52] https://www.mediawiki.org/wiki/API:Parsing_wikitext needs to be updated. It shows pageid is a parameter [16:57:04] that's a different function [16:57:47] ohh yes.that's why i got confused [16:57:56] https://en.wikipedia.org/w/api.php?action=parse&pageid=27697087&contentmodel=wikitext <-- works [19:52:00] Hello everyone [19:52:33] I would like to ask a question [19:52:33] How do I add a certain template to every single page without having to manually edit them? [19:52:34] I'm thinking of adding this: http://ways-of-darkness.wikia.com/wiki/Template:Languages To every single article. [19:56:26] Anyone here? [19:56:26] Hi metalhead33, I am here, if you need anything, please ask, otherwise no one is going to help you... Thank you [19:56:37] Sure, thank you. [19:56:39] I got a question. [19:56:47] How do I add something to the beginning of every single article? [19:57:00] Like that template I just linked. [19:57:35] you could write a script to do it [19:57:40] AWB might support that, not sure [19:59:32] AWB? [20:01:00] Hmmm... if Wikia allows me to use it. [20:01:41] I might as well just ask a question on Wikia Community [20:01:50] I'm sure it will take them at least a week to answer though [20:06:41] are you an admin of this wiki? [20:07:07] Yes I am. [20:07:14] I would expect it to be allowed [20:07:26] just like any other API-based script [20:07:27] I have no idea how to do it though. [20:12:46] Well, first priority is to get it running under my Linux... after that, I wil lhave to figure out how to script it [20:33:48] http://answers.wikia.com/wiki/How_do_I_add_something_to_every_single_article_on_my_wiki%2C_without_manually_having_to_edit_them [20:35:30] ah, look what I found: https://www.mediawiki.org/wiki/Extension:MassEditRegex [20:36:04] Okay, now how do I isntall this at Wikia... [20:39:06] You can't [20:41:10] Damn... [20:49:38] Well, I did request that they do something, like tell me if there is anything that I can do without manually editing stuff. [20:51:56] And a way I could just parse {{Languages}} at the beginning of all articles? Like, without even having to mass-edit edit any existing articles... [20:52:56] no [20:53:54] Even worse... [20:54:08] So really, the only thing I can do is to just manually mass-edit every single article? [20:54:32] you could probably do that with JavaScript, calling api parse on client side, but you'll need to know to do that in JavaScript [20:54:52] Common.js is restricted, I can't edit it, despite being the admin of the wiki [20:56:18] wikia sucks [20:56:29] That's what I have to live with... [20:56:50] Besides, it's impossible to mass-migrate every single article [22:00:10] why does image syntax suck so badly? It seems width 200px with frame does nothing! https://www.mediawiki.org/wiki/User:SPage_%28WMF%29/temp?oldid=1917929 [22:01:32] ah, "An image with frame always ignores the size specification", le sigh [22:02:08] What does frame actually do? [22:02:09] [[File:Bug_Life_Cycle_Diagram.png|thumb|200px|center|Bug report life cycle]] [22:03:01] Reedy: I think it shows the image like a thumbnail, but without the icon to view full-size. [22:03:14] lol [22:03:22] So there's *NO WAY* to show an image with a caption at a large size. Crazy [22:05:18] just |thumb|LARGEpx [22:09:23] Reedy: that shows the Enlarge gadget, and my whole point is to show the image at a reasonable size. :-/ [22:10:39] MediaWiki image syntax, expressing 1990s HTML features in 2015 :) [22:15:09] File inclusion syntax is one of the rougher parts of MediaWiki, yes. [23:14:57] User:Monteirobrena added [[Template:Banner]] on mediawiki.org, that presents a full-width image, I can't believe it isn't built-in. (T90914 RFC) [23:22:43] (How) Can I sneak a global variable ($wgMySpecialImagePath) into LESS/CSS:, say, url($wgMySpecialImagePath) ? [23:25:57] https://www.mediawiki.org/w/index.php?title=Https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents&redirect=no wat [23:26:35] Are you going to delete that? [23:26:39] saper: $wgResourceLoaderLESSVars ? [23:26:46] gj Nemo_bis [23:26:54] Reedy: I assume he created it for a reason... [23:27:21] I'm a bit surprised we don't have a general help page on how to configure MW for HTTPS [23:29:59] legoktm: I think I'll just OutputPage::addInlineStyle() with what I need