[07:23:38] https://github.com/wikimedia/mediawiki-extensions-IPInfo/blob/master/modules/ext.ipInfo/widget.js#L16 [07:24:09] Where is this 'ext-ipinfo-widget' defined? I searched by this symbol but it only occurs here [07:34:04] No, its CSS is defined in that very codebase (re @cvictorovich: Where is this 'ext-ipinfo-widget' defined? I searched by this symbol but it only occurs here) [07:35:18] How do you search in a codebase? [07:37:17] On GitHub, there's a tool to search for a specific symbol (re @andreklapper: How do you search in a codebase?) [07:38:35] https://tools-static.wmflabs.org/bridgebot/f95485dc/file_52656.jpg [07:39:36] Posting screenshots without any context doesn't help anybody [07:39:59] Yeah, I'm going to insert those -, +, etc. links into the Category span below the page, how can I do this with PHP? [07:40:19] And that search shows results where that CSS is defined (re @cvictorovich: Where is this 'ext-ipinfo-widget' defined? I searched by this symbol but it only occurs here) [07:40:39] For instance, I don't know what's the internal name of these objects in MW [07:40:44] so it would answer your question. [07:40:58] https://github.com/search?q=repo%3Awikimedia/mediawiki-extensions-IPInfo%20%27ext-ipinfo-widget%27&type=code [07:41:12] I searched like this [07:41:41] I searched like this: https://github.com/search?q=repo%3Awikimedia%2Fmediawiki-extensions-IPInfo%20ext-ipinfo-widget&type=code [07:42:21] I came up with a thought that these buttons can be loaded before the page displays [07:42:23] Don't use apostrophes for no reason, and see which exact search result is highlighted in results. You searched for something else. [07:46:37] Which is better for a "window", js, PHP or CSS? [07:46:54] var HC = window.HotCat = {} [07:47:38] I have a function named this, inside which there are many vars looking like configs [07:49:06] Throwing in random questions with no context likely won't help anyone. (re @cvictorovich: Which is better for a "window", js, PHP or CSS?) [07:49:30] https://phabricator.wikimedia.org/P52548 [07:49:40] Full text here [07:50:03] Throwing in random links with hundreds of lines of code likely won't make anybody spend minutes reading that. [07:50:54] Then should I move it to another PHP/CSS file or not to move it? [07:51:28] (Pardon that the link before is my description of my question [07:51:52] Who is "it"? (re @cvictorovich: Then should I move it to another PHP/CSS file or not to move it?) [07:52:13] The whole chunk of the code, originally in the js [07:53:35] I'd recommend asking specific and clear questions, and providing sufficient context. I'd say so far throwing in random questions or links without context, or huge code chunks, looks like a time sink so I don't expect that much help will be provided. [07:53:54] Minimal test cases and specific questions might help. Good luck with your code! [07:54:11] How specific is your "specific"? [07:55:46] Specific enough that it shows that someone read docs, searched code before, etc., basically. [07:57:57] Ugh, to tell the truth I have read the docs on OOUI objects before, defined some objects but still cannot get them loaded correctly [08:10:21] Oh yes, the docs might be bad. So a minimal testcase may make sense. [08:41:25] you also need to adjust lines 68/69 (re @cvictorovich: Those 2 comment blocks are OOUI buttons I wrote) [08:47:57] see https://m.mediawiki.org/wiki/OOUI/Widgets/Buttons_and_Switches or the code I linked before, you can't pass the ooui objects to `append ` because `append` expects a html object, so you need to use the html object within the ooui object [08:48:49] (this is the code I mean) (re @Nikki: lines 61 to 77 of https://www.wikidata.org/wiki/MediaWiki:Gadget-RearrangeValues.js#L-61 might help - that adds actions (using ....) [08:50:23] Replace those 2 "append"? (re @Nikki: (this is the code I mean)) [08:52:01] please compare your code with the code on either of the pages I linked [08:57:48] Is '#button' an internal object? [09:03:53] no, that's part of a normal jquery css-style selector (https://api.jquery.com/category/selectors/). that only selects where on the page the button should go [09:05:57] In your example, why should it select "$( '#button' + statement_p )" [09:06:17] Seems statement_p is a pass-in argument [09:08:51] that bit isn't the problem (the other page I linked uses `document.body` directly) [09:42:49] How should I determine this? [09:43:44] uuuuuggggghhhhhhh [09:44:09] My OOUI objects displays now,but on a separate view [09:46:56] I merely attached them onto document.body [18:33:10] good day! If someone can help with this extremely complex query, I will be very happy: https://www.wikidata.org/wiki/Wikidata:Request_a_query#Displaying_all_the_participants_in_a_battle [19:12:52] Does anyone know what font is used for the logos on Georgian and Greek wikiquote projects? kawikiquote and elwikiquote