User talk:-Matt

First
Hi Matt -- 00:40, January 1, 2014 (UTC)

You smell
But it had two things I needed to do and two messages I needed to reply to. Ps. you smell.
 * I thought 7I was smelly? 08:52, January 2, 2014 (UTC)

Hi,

I was trying to make a switchInfobox template on my wiki( runescapefanfiction ), I used your code from the pages User:Matthew2602/SwitchInfobox.js and User:Matthew2602/SwitchInfobox.css to implement the switchInfobox template on my wiki, however the SwitchInfobox isn't working properly, it shows all the items that are inside the SwitchInfobox when it should only show the item linked to the tab that I clicked on, also it displays alot of empty paragraphs out of nowhere. Could you please help me figure out whats going wrong here.

Thanks

Nabz010 (talk) 13:00, January 16, 2014 (UTC)

souper sekrit
Keepin real sekrit wat I r talkin bout, but I wud luv u if u include http://ace.c9.io/ dat ossumness. 21:01, January 16, 2014 (UTC)

Re: i've been meaning to tell you this for a while but I keep forgetting
I did get a decent way with it on my test wiki, see w:c:camtest:Special:PrefixIndex/MediaWiki:Common.css and the Common.js (might be in the page history now as I moved it so I could use a proper code editor on the computer). Less.js throws an error on Wikia (or rather wikia js throws the error due to less.js) due to something in their js that is normally found in node.js (it works fine regardless). As far as I can tell, the @import stuff doesn't work and I don't know how to fix it either.

What I did was to transclude each .less file into a separate page then use ajax to get that page with ?action=raw&templates=expand. My current stage is giving it a UI to identify lines with syntax errors. I think it currently just gives a line number which is a number in the combined less file which isn't helpful when you have so many files combined together. On the UI it would give some status reports (i.e. got combined less file, compiling, submitting edit). I was also working on some regexes to prettify the output a bit so we can edit it as css if we need a quick fix or if there's a bug. It's getting there

Bout the chat lag
I was wondering if you had sent a bug report to Wikia about the chat lag caused by the counter already? According to Cam, this needs to be done via S:Contact.

Just for keeping track of it all, here are the problems that are (most likely) causing all of this chat lag:

http://slot1.images1.wikia.nocookie.net/__am/62499/group/-/chat_js2: (I have no idea to enter debug mode on these files) The changing of the body's classes 3x per key pressed, plus updating the text of the hidden element. The efficient code would be:

That reduces the amount of class changes to at most 1, and only when a class needs to be added or removed, and only updates the counter when it's actually shown. I've also made it so that it performs the faster check first, and the slower one afterwards (first checks if, and only if it is, it checks if the body has a certain class).

If you haven't requested this yet, and if you were not planning on doing so, please let me know.

PS: if you have anything to optimise in that script, just doit :3 21:09, January 21, 2014 (UTC)


 * Little late to the party, but I'm fairly sure that you should be using  over  . If you've managed to get it accepted as a bug, then you can submit a pull request but don't expect it to get merged this year. Or the next :/

Switch infocat
Hi Mattchew, can you see what's wrong with the switch infobox in Waterfiend? It doesn't load at all :(. Thanks, 22:52, March 19, 2014 (UTC)

Re:Lua
Essentially, I'm picking templates I know are used on hundreds of pages and converting them bit by bit. For example, for navboxes I converted Tnavbar and Tnavbar-collapsible and then Navbox itself. If anything it's taught me what all the parser functions do in having to replace them with lua. I'm not going all out on conversion until mw.text and mw.title are backported, hopefully in the next couple of weeks, which will make life much easier and allow us to get rid or pretty much every parser function call except expr which needs a separate backport of mw:Extension:Variables.

I'm currently working on Infoboxes, see Module:Infobox and Module:Infobox/item. There is a wikia dev working on converting infobox item currently, but he's using a generic infobox builder module; I don't know if it's going to work so well for us especially when it comes to converting Infobox Monster which I want to merge back into one table. I did manage to get the view and talk links into the infobox which should stop them showing up on google page/wikia meta descriptions.

Mol is currently working on converting all the charm logs to modules, see Module:Charm log and it's subpages. Along with converting those, we need to modify the js to add logs to the pages and do something with an abusefilter too to stop the logs being edited by users without rollback/custodian/sysop rights.

After the charm logs (which should be simple-ish), I'll start on the exchange data which needs modifications to js (I keep meaning to rewrite the entire thing to make it easier for when the GED breaks) and the abusefilter. It'll probably require a complete overhaul of the exchange templates. So far I'm thinking of changing to. There's some mockups at w:c:camtest:Module:Exchange and notes at w:c:camtest:User:Cqm.

So yeah, plenty to be done