User talk:-Matt/Archive 8

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search
This page or section is an archive.
Please do not edit the contents of this page. Direct any additional comments to the current talk page or contact an administrator for aid if no talk page exists.


Hi Matt -- Recent uploads SpineTalkGuest book 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. cqm 23:55, 1 Jan 2014 (UTC) (UTC)

I thought 7I was smelly? User_talk:Fswe1 Fswe1 Brassica Prime symbol.png 08:52, January 2, 2014 (UTC)


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.


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 dat ossumness. JOEYTJE50TALKpull my finger 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 Wink cqm 10:39, 21 Jan 2014 (UTC) (UTC)

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: (I have no idea to enter debug mode on these files)

    updateCharacterCount: function(event) {
        var inputField = $(, inputValue = inputField.val(), currentLength = inputValue.length, remaining = this.maxCharacterLimit - currentLength;
        $('body').toggleClass('warn', remaining <= 200).toggleClass('limit-near', remaining <= 100).toggleClass('limit-reached', remaining <= 0);

The changing of the body's classes 3x per key pressed, plus updating the text of the hidden element. The efficient code would be:

    updateCharacterCount: function(event) {
        var inputField = $(, inputValue = inputField.val(), currentLength = inputValue.length, remaining = this.maxCharacterLimit - currentLength, remainCounter = $('.remaining'), body = $('body');
        if (remaining <= 200) {
            if (!'.warn')) body.addClass('warn');

            if (remaining <= 100 && !'.limit-near')) body.addClass('limit-near');
            else if (remaining > 100 &&'.limit-near')) body.removeClass('limit-near');

            if (remaining <= 0 && !'.limit-reached')) body.addClass('limit-reached');
            else if (remaining > 0 &&'.limit-reached')) body.removeClass('limit-reached');

        } else if ('.warn, .limit-near, .limit-reached')) body.removeClass('warn limit-near limit-reached');

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 remaining < 100, 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 JOEYTJE50TALKpull my finger 21:09, January 21, 2014 (UTC)

Little late to the party, but I'm fairly sure that you should be using hasClass over is. 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 :/ cqm 23:49, 15 Jun 2014 (UTC) (UTC)

Switch infocat

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


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 {{:Exchange:Iron bar|view=price}} to {{exchange|Iron bar|view=price}}. There's some mockups at
[[w:c:camtest:Module:Exchange]] and notes at [[w:c:camtest:User:Cqm]].

So yeah, plenty to be done Wink cqm 23:49, 15 Jun 2014 (UTC) (UTC)

asking about infoboxes.

Hi, I'm trying to make a switchbox for my [[w:c:riskofrain|Risk of Rain Wiki]] and saw that you had done lots of work on the one that's used here. I was wondering if maybe I could use the code for my wiki? If so, could you send it to me or point out where it is on this site? I'm a little embarrassed to say that I can't seem to find it. I'm not the best at Javascript.


 DJ MATTTAM, Vanguard of Armadyl (level: 1) ▸ 

About Switch infobox

Hi, Im HenDaBen from finnish RuneWiki. I have used the switch infobox you made, but Im having a problem. When I add the template to an article, the infoboxes dont appear in one box; theyre all next to each other (example, i have 3 monsters in it)

I think Im missing couple of lines of code, but I dont know what. Example in finnish RuneWiki:

I was told you could help me.

Sincerely, ⒽⒺⓃⒹⒶⒷⒺⓃ 21:42, July 4, 2014 (UTC)

Ok so litterally two days ago i had a combat lvl 55... now im 32.... how

Murray99.91.207.59 22:06, July 14, 2014 (UTC)

Re: forEach

User:Cqm/ common.js is what I'm sort of working on at the moment as a replacement to the common.js. Would that be more what you had in mind? cqm 08:57, 25 Sep 2014 (UTC) (UTC)


For you. ;)

--Jlun2 (talk) 23:26, September 25, 2014 (UTC)

dumb name

How will I know what your bday is now? MolMan 12:30, September 26, 2014 (UTC)

What the hell is an australia? MolMan 00:19, September 27, 2014 (UTC)
Your wikia masthead says nothing about being in a relationship. So umm... I think ummm... you... youknowwherethisisgoing... *cough* MolMan 00:23, September 27, 2014 (UTC)
Wow. I've never had a boyfriend before. MolMan 00:27, September 27, 2014 (UTC)
You changed your masthead? Are we not dating anymore? MolMan 23:21, September 29, 2014 (UTC)

Clay harpoon

EoC mode pls. --dDbvitC.pngScuzzy Betahib8CAd.png 13:22, September 26, 2014 (UTC)

Runecrafting table and the BlueValueBox template

[00:29:02] <Everystat13> Ah I see where stuff went wrong
[00:29:08] <Everystat13> With the table
[00:29:37] <Everystat13> -Matt decided it would be a good idea to delete the template it used and then fix the redlinks with subst: using his bot
[00:29:45] <Everystat13> Thus breaking the entire thing
[00:29:56] <AnselaJonla> (facepalm)

Yeah it kinda was necessary. It's now been fixed with in-table CSS, but please check these things before you change them :/
User talk:ThePsionic.png: RS3 Inventory image of User talk:ThePsionic ThePsionic Special:Contributions/ThePsionic.png: RS3 Inventory image of Special:Contributions/ThePsionic 22:32, September 30, 2014 (UTC)

[00:30:29] <AnselaJonla> Could you please tell him that his bot did this on his talk page, as he may need to fix the bot to prevent that
[00:30:46] <AnselaJonla> Since that sort of stuff is meant to be done *before* the template is deleted
User talk:ThePsionic.png: RS3 Inventory image of User talk:ThePsionic ThePsionic Special:Contributions/ThePsionic.png: RS3 Inventory image of Special:Contributions/ThePsionic 22:34, September 30, 2014 (UTC)

Re: third

It's for implementing fetus' mainpage proposal, but it got held up as I didn't know what font to use for the tiles which I figured should be templated rather than hardcoded text on images. cqm 00:11, 1 Oct 2014 (UTC) (UTC)

Re: Why aren't you in chat more

My main reason for being here [on wikia] is information. I am not a people person, nor do I have an urge to join a community. I use chat only as a medium when something (possibly) requires immediate reaction; I have little interest in idle chitchat, or drama. IP83.101.44.209 (talk) 06:21, October 2, 2014 (UTC)

Red links

Could you please take a look at the red links that still exist after changes you have made with your bot? IP83.101.44.209 (talk) 04:16, October 3, 2014 (UTC)

May I also direct you to this comment? ^^ . IP83.101.44.209 (talk) 07:00, October 3, 2014 (UTC)
Why did you think it was a good idea to substitute the template like this. You introduced huge amounts of unnecessary code by just letting all of the switch parser be added to pages. MolMan 19:37, October 4, 2014 (UTC)

Template deletion

Hello - Your deletion of [[Template:BlueValueBox]] has broken the page Calculator:Runecrafting/Profit_per_trip, and should be reverted. Please remember to check on which pages a template is used on before deletion. Thank you, 03:17, October 5, 2014 (UTC)

What are you thinking?

Why? ʞooɔ 03:38, October 5, 2014 (UTC)

How is substituting {{Box}} 300 times useful?!? ʞooɔ 05:02, October 5, 2014 (UTC)
Request: Never use your admin tools in the template namespace again, Matt. MolMan 22:21, October 8, 2014 (UTC)

Can you stop please thanks Quest.png Gaz Lloyd 7:^]Events!99s 10:35, October 9, 2014 (UTC)

Your bot

It appears that your bot has edited my signature (a fact which I was prior unaware of), more than tripling its size in bytes and turning the code into a pile of something I can't fully understand. Hence my questions: Was this necessary? What was the purpose? (I realise many other pages are also affected). Can I revert to the previous version of the signature without breaking things? I'll have trouble tweaking it in its current state. Thanks in advance for clarifications. 5-x Talk 21:27, October 8, 2014 (UTC)

Need your help

Hello I am an admin of AdventureQuest wiki and I need your assistance. Can you please tell me how you made switching infoboxes as that would really help out my wiki thank you. smartzard (talk) 22:45, October 11, 2014 (UTC)

How do we update important pages such as this one?:

It's semi-protected and wont let me Edit-update

JD 17:00, November 2, 2014 (UTC)


You might not have noticed, but we need some more obfuscated code for that thing you did a while back *hint hint*. It's broadly the same minor change as before :) cqm 15:01, 3 Dec 2014 (UTC) (UTC)

Fortunately, I had the foresight to keep a copy of the code separated out of the file it's part of. Nonetheless, it still took two hours of reverse engineering and lots of googling until I managed to figure out how to fix it. cqm 15:51, 19 Dec 2014 (UTC) (UTC)
Hey, it was a learning experience ;) And I saved an obfuscation method for if it ever needs doing again, let me know if you want a link to it for future use. cqm 02:20, 20 Dec 2014 (UTC) (UTC)


I've decided to implement the |1=foo|2=bar thing into the tabs extension after all. Thanks for the suggestion ^_^ JOEYTJE50TALKpull my finger 21:30, January 12, 2015 (UTC)


Stuff like is not implemented yet, is it :/

I've changed it to .wiki now, but the tabs extension is not enabled by being in the same directory :/ ah well, this already looks better. Thanks for the suggestion.

wow phone browsers are cool :o (sadly touch events are a nightmare to deal with in different browsers / OSes) JOEYTJE50TALKpull my finger 13:17, January 20, 2015 (UTC)

lel: re

i call bool shit = true. Unless you did something else in that reduce function, this is all a lie. JOEYTJE50TALKpull my finger 12:56, January 27, 2015 (UTC)

PS: why didn't you just revert the /qc.js code to the version before I started messing with it? I was away for the weekend btw (cologne and bonn) so I couldn't fixxor it. JOEYTJE50TALKpull my finger 13:10, January 27, 2015 (UTC)
Okay go ahead. But wouldn't it be much more useful to rewrite [[MediaWiki:Common.js/GECharts.js]]? Or would that "make sense" which you hate? JOEYTJE50TALKpull my finger 21:51, January 27, 2015 (UTC)


That is to make /namereq commands able to request someone's name without having to talk in the chat. I got the idea from CTCP messages in IRC. If you use that command, you change your wiki-chat status to username NAMEREQ. The onStatusMessage function is only called when the status message starts with the user's username (with underscores instead of spaces). See [[MediaWiki:Chat.js/newmessage.js]] for the code. Also, yes this was confuzzling for me too. JOEYTJE50TALKpull my finger 12:42, January 28, 2015 (UTC)

Happy 2602!

All the best noob. HaidroH rune.pngEagle feather 3.pngCandle (blood red).png 1XqyDNM.png Crystal triskelion fragment 3.pngHazelmere's signet ring.png 20:44, February 25, 2015 (UTC)

Regarding capes

Hey, regarding the attack cape you trans'd, that's now outdated. The updated ones look like the cooking cape; all squished up Sorry for overlooking it; I'll update them. --Jlun2 (talk) 10:55, May 2, 2015 (UTC)

You're invited!

To my 120 Runecrafting party. It's finally happening.


Runecrafting Guild

What world?

World 46


~ US ~

PST: 2:00 PM on 5-Dec
MST: 3:00 PM on 5-Dec
CST: 4:00 PM on 5-Dec
EST: 5:00PM on 5-Dec

~ Europe ~

UTC/GMT: 10:00PM on 5-Dec
BST: 11:00 PM on 5-Dec

~ Australia ~

AWST: 6:00 AM on 6-Dec
ACST: 7:30 AM on 6-Dec
AEST: 8:00 AM on 6-Dec
ACDT: 8:30 AM on 6-Dec
AEDT: 9:00 AM on 6-Dec

Thanks for coming if you can,; /* 04:13, November 29, 2015 (UTC) */

Edit: Change of date, also fixed some Australian timezones from PM to AM.; /* 22:07, December 3, 2015 (UTC) */


wow long time no seee!!!11!!1oenonenoe. HaidroH rune.pngEagle feather 3.pngCandle (blood red).png 1XqyDNM.png Crystal triskelion fragment 3.pngHazelmere's signet ring.png 06:11, November 13, 2016 (UTC)