[06:25:27] Hi [06:25:48] How can i join [06:30:28] I think they’re lost... [11:11:24] When I try to add a new custom tool bar using https://www.mediawiki.org/wiki/Extension:WikiEditor/Toolbar_customization#action. It says "Uncaught TypeError: $(...).wikiEditor is not a function" [11:11:56] Any suggestion please [11:13:02] hard to say without seeing the code [11:13:46] do you load the module "ext.wikiEditor"? If so, how? [11:13:51] Well I am just using one example code [11:13:59] https://www.irccloud.com/pastebin/PhbcxZ3s/ [11:14:25] where do you use that code? [11:14:47] "11:13 AM do you load the module "ext.wikiEditor"? If so, how? [11:14:47] " I am not sure. I am just adding to my common.js at or.wikisource.org [11:14:54] If you do not load the module "ext.wikiEditor", how should your code know where to find .wikiEditor? [11:15:42] Yes. I got that point. I thought it will work as when I use external js it works. [11:16:18] When I import this on my local page it works https://meta.wikimedia.org/w/index.php?title=User:Indic-TechCom/Script/IndicOCR.js [11:16:39] But when I write the same code in my common.js it doesn't work [11:17:22] gyan: https://meta.wikimedia.org/w/index.php?title=User:Indic-TechCom/Script/IndicOCR.js has the line: $.when( mw.loader.using( 'ext.wikiEditor', 'mediawiki.notify' ), $.ready) [11:17:40] it loads ext.wikiEditor [11:19:55] Ahh I se [11:20:05] I thought ext.wikiEditor loads by default [14:05:16] hi [14:05:35] is it possible to add an option to change the colours on a skin for the user? [14:05:55] like during the day one colour scheme during night another scheme? [14:09:23] I guess you could write some script that resets the skin setting of every user twice a day to drive them mad [14:25:09] andre__: lol [14:25:21] no i want like [14:25:26] to add two styles to a skin [14:25:37] where an user choose dark or light scheme [15:01:41] Technical Advice IRC meeting starting in 60 minutes in channel #wikimedia-tech, hosts: @CFisch_WMDE - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [15:03:34] biberao: you make a copy of an existing skin, change its name by adding a suffix like "(Dark)", install it, done. [15:03:43] Maybe I don't understand the question? [15:07:21] biberao: there's Extension:Theme [15:07:40] https://www.mediawiki.org/wiki/Extension:Theme [15:23:35] Skizzerz: wow thanks [15:24:02] im trying to learn to develop a skin [15:24:10] i have a question if possible [15:24:19] on scripts.js i can add as much .js as i want? [15:25:05] like i already have jquery there and want to add bootstrap possible? i just need to issue the JS later on code [15:25:08] ? [15:25:57] I personally recommend using a CDN for common dependencies such as jquery and bootstrap [15:26:14] i see [15:26:15] but if you want to do it yourself, best practice is to have them each as a separate module and then use ResourceLoader to bring them in [15:26:28] note that mediawiki already ships with jquery so you don't need to add that yourself [15:27:18] i see [15:27:54] benefit of a CDN is generally faster loading times for end users since they probably have the CDN version already cached from other sites. Downside of a CDN is that you're handing over control of the code to the CDN, which has privacy implications (the CDN can sniff on who is visiting your site) and security implications (an attacker who compromises the CDN can inject code onto your site) [15:28:13] Like i see [15:28:26] some skins showing a lot of difference ways to pull it [15:28:38] im trying to work both a bit of vector and chameleon together [15:28:46] because chameleon has bootsrap [15:29:15] you may want to look into how ResourceLoader works behind the scenes, as you'll be interacting with it a LOT when developing a skin [15:29:32] https://www.mediawiki.org/wiki/ResourceLoader is a starting point [15:30:00] beyond that, I don't have a ton of experience in skinning myself so I won't be super helpful with specifics [15:31:25] thanks [15:31:29] im a newb :p [15:31:30] btw [15:31:35] how do you manage if you know [15:31:41] images with mobile responsiveness [15:32:50] can you define that more? usually when people talk about images they're talking about displaying different images based on screen density (so people with "retina" screens get a higher-res version of the image so it doesn't look blurry to them, whereas people with typical screens get a lower res version to save bandwidth) [15:33:12] responsiveness generally deals with rearranging page contents based on the width of the browser window [15:33:44] you CAN use css to vary what background image is shown based on width, but I don't recall that really being used widespread [15:39:34] like [15:39:41] ack sorry [15:39:59] we gotta define images 100% and have them allocated properly inside the infobox [15:41:52] as long as the image is inside of the infobox
and is using a relative width (like 100%) rather than a pixel width; you can add responsiveness to the infobox as a whole and the image should just work [15:42:15] example please? [15:46:14] None of the skins bundled with MediaWiki, including the latest default skin, Vector, are optimized for use with mobiles. This page provides advice for using MediaWiki on mobile devices, such as smartphones and tablets. [15:46:23] but Vector has a responsive mode [15:46:23] it seems [15:48:00] the skin chrome can be responsive, but making wiki page content be responsive requires that you actually code the wikimarkup to do so [15:48:25] making the chrome responsive isn't going to magically make your wiki markup responsive as well [15:49:02] how so [15:49:05] i mean [15:49:11] the wikimarkup means? [15:49:44] same way you design a responsive website in general; add in divs and such to denote breakpoints, columns, or whatnot [15:49:54] I don't have the time or inclination to give a tutorial on this [15:50:38] ok [15:50:52] sorry to give you a hassle [15:51:10] Technical Advice IRC meeting starting in 10 minutes in channel #wikimedia-tech, hosts: @CFisch_WMDE - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [20:51:03] so i should @media on Mediawiki:Mobile.css when with mobilefrontend? [21:29:37] how can use vector's responsive.less [21:29:37] ? [21:44:35] anomie: I was told to ask you: how should I go about creating a new DB driver to support Percona (which is MySQL with some restrictions to support clustering)? [21:46:25] hexmode: I would inherit from the MySQL driver [21:46:42] and replace the functions that need a different implementation [21:52:36] hexmode: What Platonides said. Specifically, extend either Wikimedia\Rdbms\DatabaseMysqlBase or Wikimedia\Rdbms\DatabaseMysqli depending on what exactly you need to override at the MediaWiki level. [21:53:28] I've started that. I'd really like to get it reviewed. I guess I'll file a bug and start pushing my work? [22:01:39] Technical Advice IRC meeting starting in 60 minutes in channel #wikimedia-tech, hosts: @tgr & @nuria - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [22:03:59] for mobilefrontend whats the name "minerva" "minervaneue" or "skinminerva [22:51:06] Technical Advice IRC meeting starting in 10 minutes in channel #wikimedia-tech, hosts: @tgr & @nuria - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting