User talk:Newbie856

I
"Nobody owns articles. This is a wiki, after all. This means words like "I," "we," or "me" should not be included in articles. " -- From our Style guide.

Err...Please try not to use the word (or letter if you prefer :P ) "I". The edit was fine, but the I was kinda annoying me. You can also check the RuneScape:Style Guide for more information. 11:49, September 24, 2009 (UTC)

Oh Sorry
Oh, sorry, I didn't know. Thanks for telling me though, I'll pay more attetion to it next time.

-- 00:03, September 25, 2009 (UTC)

Re:Forms/calculators
Beats me, but I can direct you to User:Quarenon, he's a genius at stuff like that, I'm sure he can help you. 02:40, September 25, 2009 (UTC)

Ok, thanks.
Ok, thanks.

Thanks
Thanks for your help, I think I understand it now. Also, I know Quarenon did it, but it was too advanced for me to understand. If you need help with anything, lemme know. -- 17:37, September 25, 2009 (UTC)

Re: Cool Calculators
It is possible to use your hiscore data for the calculator. In fact, that is exactly what I am doing on my userpage. To have it use your current stats for the calculator, you can use: If you would like to set a goal for yourself, you can use:  and the calculator will use your levels automatically (but only the calculator on your userpage; the one on mine will still use my hiscores). I hope this helps! -

Re: Polls
Yes, they are all important features that I am planning on adding at some point. The first one in the Runecrafting list will probably be done in the next five or ten minutes if all goes well, and maybe a half an hour to an hour if all goes... not well. I'm impressed that you managed to respond within 2 minutes of my creating the polls!

There isn't an official template yet, because the calculators are indeed still in the beta stage. I only got the Smithing calc working yesterday, and I still need to add some important features to it (namely the things on the polls to which you responded so quickly). Maybe after they have been tested more thoroughly they can be made into official templates.

Userboxes
I think it has become fairly obvious that I have a strange sense of humour. If not, see here to find the evidence :P

Calculator bug
Hmm... I sure hope the problem isn't in this page, though if the issue is in the profit, it almost certainly is. I will look into this further.


 * The green-ness of your signatures hurt my eyes -- 01:01, September 30, 2009 (UTC)

Re: Infinity...
I'm considering making a userbox that says "This user obviously has too much spare time, given that this user took the time to create this userbox".

As for Javascript and HTML, I consider myself to be fairly good, but the real expert is Quarenon. Feel free to ask me any questions you wish though, and I will do my best to answer them.
 * Well, to be honest, I've never really figured out how to use CreateElement and such functions; I always used document.getElementById(objID).innerHTML to write new HTML into the document. If you want to figure out issues with CreateElement that, you should probably ask Q.

RE: HTML
1) The  function that you posted seems to have been cut off.  So there might be a problem there, and there's also a difference between your code and the website's code in the   function:

var lastCol = tbl.rows[0].length - 1;

which should be:

var lastCol = tbl.rows[0].cells.length - 1;

You want the number of columns which is accessed by getting the length of the cells array.

2) I'm not sure what you want to do here. The website example puts in the column number into each cell when adding new rows.  It looks like you changed it to add the row number, which is fixed between cells when adding a new row.  What exactly are you trying to put into each cell?

3) Yep, using standard DOM calls it would be something like this:

// function createInput(cell, x, y) var input = document.createElement('input'); input.setAttribute('type', 'text'); input.setAttribute('name', 'row' + x + 'col' + y); cell.appendChild(input);

Just set x and y to be the column and row you want. This could be added into insRow easily since you have the i and lastRow variables giving the x and y positions, and use the object returned from  as your cell.

Two things though:
 * 1) You may want to look into jQuery.  It's a JavaScript framework that makes things like this much easier, and you can add nice visual effects when you're adding/deleting elements to the table.  I used it a couple of times for removing table rows, and you can see an example of it here.  The code to handle that is near the bottom of the page source.
 * 2) If you can give a link to where you are testing the code that would be great, just because it would be much easier to check for any errors that way.  If you can't for any reason then that's fine too

Anyways, good luck with the coding! -- 07:08, October 6, 2009 (UTC)


 * Ah, then you might be looking for something like this:

function insRow{ var tbl = document.getElementById('table'); // append table row var row = tbl.insertRow(tbl.rows.length); var lastRow = table.rows.length; // insert table cells to the new row for (var i=0; i<tbl.rows[0].cells.length; i++) { var cell = row.insertCell(i); if (i == 0) { createCell(cell, lastRow, 'row'); } else { var input = document.createElement('input'); input.setAttribute('type', 'text'); input.setAttribute('name', 'row' + lastRow + 'col' + i); cell.appendChild(input); } } }

function createCell(cell, text, style){ var div = document.createElement('div'); // create DIV element var txt = document.createTextNode(text); // create text node div.appendChild(txt);                   // append text node to the DIV div.setAttribute('class', style);       // set DIV class attribute div.setAttribute('className', style);   // set DIV class attribute for IE (?!) cell.appendChild(div);                  // append DIV to the table cell }

Let me know if you manage to get it to work -- 15:13, October 7, 2009 (UTC)


 * You've almost got it, just a syntax error in there and you'll want to change the text used in the first row. Try this:

function insCol{ var tbl = document.getElementById('table'); // table reference // open loop for each row and append cell for (var i=0; i<tbl.rows.length; i++) { var cols = tbl.rows[i].cells.length; var cell = tbl.rows[i].insertCell(cols); if (i == 0) { createCell(cell, cols, 'col'); } else { var input = document.createElement('input'); input.setAttribute('type', 'text'); input.setAttribute('size', '5'); cell.appendChild(input); } } }

In your  statements you need to use double equals, because you are trying to test a variable's value and not assigning a new value to it. -- 14:57, October 8, 2009 (UTC)


 * Heh, I'm glad to help -- 19:11, October 8, 2009 (UTC)

Sense of humour
Look at my user page now. Thou hast been foiled!

I shall not be defeated easily.


 * I'm afraid that trick won't work for you. You store your userboxes on a subpage, so it doesn't equate the pagename to Newbie856 (at least, not when viewing your userbox page directly - it still works on your main userpage). You'll also notice that I am now shielded from UserOwned as well. I expect that if this continues, we will be mildly told off for spam/edit warring. Truce?

Quest experience reward
I'm assuming that the template should have a parameter for which quest it is as well as the experience reward?


 * Okay, I think I see what you're doing now, but may I recommend one thing? When you access the skill parameter with:


 * You should instead use:


 * to let it default to attack (or another skill of your choice). This means that if the user passes an invalid parameter for the skill, your template doesn't end up looking like a fail. Also, when you use a switch, don't put this:

| caseattack = === Attack ===
 * This is the correct code:

| attack = === Attack ===
 * Hope this helps!
 * Adding an All option would be helpful, I expect. I don't know if you should redirect other pages to use the template yet, though.

Re: LOL
-- 22:08, October 11, 2009 (UTC)

RE: Quests
I know that! But I dó want to complete it. Happy Halloween! . 19:21, November 1, 2009 (UTC)

Re:Signature
Hey, first off, sorry if this is late, I've had some trouble logging in lately, so I haven't checked until now. Okay, I see what your problem is:Using the  function will automatically place all of the Template's coding onto the page, instead of just

. Obviously, this can and should be avoided, so there is a way to do this. Just put

Signatures/Newbie856

Into the signature section of your preferences, and check the 'Custom Signature' box. However, this only works if you have a template for your signature on the Wiki in question. If you do this, it will link to the template in whatever Wiki you are on, but if one doesn't exist, it'll just make a redlink. I'm not exactly sure if there is a way to make it work on any wiki without using the old method, but I think there is. Do you have a template on the RSC Wiki? If you do, than I'm sure the code I've given you will work fine. If not, then I guess you will have to make one. -- 18:32, November 19, 2009 (UTC)

P.S. You can call me Scizor, I don't mind any more.

Re: calc
I guess I never thought to double check the results. I fixed it, the bug was caused by the use of "defense" instead of "defence". - 21:40, December 12, 2009 (UTC)
 * Should be easily possible, I'll pass it on to Quarenon. - 21:46, December 12, 2009 (UTC)

Re:Music thing
Hey and thanks. I really expected it to be epic fail ) On the Blood Runs Deep article, it has these songs: Althogh, the guide isn't even finished so it is most likely incomlete. I'm gonna start the wikiguild straight away without proposing. We can discuss everythig there  Cheers,  02:21, December 16, 2009 (UTC)
 * The Fallen Hero
 * Jaws of the Dagganoth
 * Maiasaura

RE: Tempaltes Help
Is this related to User:Newbie856/sandbox/Calculator_with_current_user? In which case, you'll likely have to do complex parsing on the userpage data because the userbox parameter isn't readily available to the page that wants it.

Which gives:



I used User:Chicken7 as an example since this is one instance where the username on the wiki is not equal to their RS name. However, there may be more efficient ways to do this! This was just the first way I thought of.

Also, thanks! I'm working on reformatting my various userpages, I figured to start with my header -- 04:42, December 20, 2009 (UTC)


 * Oh, in that case it's much easier with the way charm logs are organized!

Which gives:

-- 21:13, December 20, 2009 (UTC)


 * That can be done by using Charm one stat for each table cell, however the table sorting may need tweaking since it will now be sorting against the lower bound of a confidence interval instead of the middlepoint. -- 15:37, December 21, 2009 (UTC)

Re:Vandal
No problem. And to link to images outside of the RuneScape Wiki, just place one bracket ([ ]) instead of two brackets (    ). -- 20:34, December 21, 2009 (UTC)

Hey!
Hello! First I want to thank you for making this image, as it has helped a good deal. Secondly, I wanted to ask if you could make one for the Varrock Diary, as it needs one. Thanks! -- 20:46, February 21, 2010 (UTC)
 * Okay, thanks! Until later... -- 16:02, February 24, 2010 (UTC)

Re: Vandal Watch
Yeah, most of what Vandal Watch is supposed to do is make the recent changes easier to use with navpopups and make reverting vandalism easier. Right after I had gotten it working, they changed something in MediaWiki that broke its main goal again. You can still use it for its auto-update feature, but that only works slightly better than the built in one for recent changes anyways. Someday, I may go back and rework the project in a new way, but for now, it's just a failed idea that sits in my sandbox, getting covered in sand.
 * Feel free to.

Re:Firemakign Calculator
Thanks!

The All Fired Up rewards sounds like a good idea to add, I think I'll do it now

09:25, February 27, 2010 (UTC)

Re:Test Site
Um... Thanks, but those... Are redlinks. =/ -- 02:00, March 12, 2010 (UTC)

WikiScript
I was wondering where the documentation for how to use WikiScript, like that used in the Combat level Calculator. I have experience with javascript and html, but would like to learn how to use the type of code used on that template. 16:01, May 18, 2010 (UTC)

RE: WikiScript
This is actually a proposed feature that will come in the next version of the JS calculator script. It's described here as the "submitunfocus" option, which can be made to do what you describe. The bad news is that it's taking me forever to get this version of the script ready for testing -- 03:12, July 26, 2010 (UTC)

RE: Prayer drain calc
Thanks, I fixed it in its move to mainspace. 15:23, July 26, 2010 (UTC)

Re:Mosquito
Do you mean on your userpage, or on your own computer screen? If it's the second, I don't know how to either. :\ -- 14:24, July 28, 2010 (UTC)

Vandalism
Please do not remove content from or add nonsense to RuneScape Wiki pages. It is considered vandalism. If you would like to experiment, please use the sandbox. Thank you. 09:44, August 1, 2010 (UTC)
 * Actually I can't tell you what page it was on...? I just remember seeing an edit by you that was 4-5 days old where you removed a huge chunk of the content. 21:58, August 1, 2010 (UTC)
 * Ok. But just saying, I wouldn't have mistaken you for someone else because I would've clicked on the link to your talk page directly from the history of that article. 22:09, August 1, 2010 (UTC)

RE: Chrome extension feedback
Thanks! A 'light' wiki browser may eventually be added, you never know! Enjoy the extension updates, as I know RuneScape itself has been lacking in that department the past several days. -- 04:29, August 3, 2010 (UTC)

RE:and
As far as I am aware, small is not deprecated but big is. There really isn't a specific number to use since it's always different on certain computers and browsers. I would recommend using px instead of %, though. 14:30, August 3, 2010 (UTC)

RE: While
I don't think there's a specific while template (probably is on Wikipedia, if you wanna look for it), but I'm sure with the current setup (with the vardefines at the start working out how many of each star to use) you can manipulate loop to get the desired result. 20:22, August 11, 2010 (UTC)

Re: Calcs, "ifeq"s and "|"s
Couldn't help but notice your question while watching the Recent Changes. In a, you can use | to insert a | without breaking the. It should work for tables just as | does, but I've seen a few bugs with it (could have just been poor coding on my part though). Hope this helps!

RE:Dung. potions
I wouldn't call it a mess, just a chance to add more. And don't forget to thank User:Coelacanth0794 :D! 21:15, August 29, 2010 (UTC)