User talk:Jsimlo
From Wikipedia, the free encyclopedia
Image:Physicslogo.png | How to use this talk page |
|
Contents |
[edit] POV
POV means Point of View. The Wikipedia has a neutral point of view, I changed the article to make it also have one. ComputerJoe 21:04, 15 February 2006 (UTC)
[edit] #if: with HTML-Tag's
I have MediaWiki 1.82 running. I'm trying to make a template with a table. I'd like to use #if so if there is a value to add an table-line. If there isn't, I won't print a blank line.
<table class="standard"> <tr><th>test:</th></tr> {{#if: {{{Name1|}}} | <tr><td>{{{Name1}}}</td></tr> | }} {{#if: {{{Name2|}}} | <tr><td>{{{Name2}}}</td></tr> | }} </table>
The problem is, that #if: parse the content as TEXT not as HTML! The result is <tr><td>Name1</td></tr> Whats wrong? Emergency144 11:34, 31 October 2006 (UTC)
- See MetaWikiPedia:ParserFunctions#Tables for issues about tables and parser conditions. -- jsimlo(talk|cont) 12:34, 31 October 2006 (UTC)
-
- Sorry that was not the solution. the #if: function is OK, but it parse the "then" and "else"-arguments as TEXT and not as HTML; emergency144 13:40, 31 October 2006 (UTC)
-
-
- I see. Okay and what about this: MetaWikiPedia:Talk:ParserFunctions##if inside table. I suggest you try to solve this problem there. Many people read that talk page. They may help you... :)) -- jsimlo(talk|cont) 17:42, 31 October 2006 (UTC)
-
[edit] My reverted edit to the page Notepad
Hi, you recently reverted by edit: http://en.wikipedia.org/w/index.php?title=Notepad&curid=143474&diff=88694797&oldid=88620763
This edit was completely serious and in my opinion a good idea because I recently downloaded "Finale Notepad" and looked under notepad for info on it - and found none. If you think it should be reworded or entered diffrently please say. --Flutefluteflute 12:00, 19 November 2006 (UTC)
- The problem is, that the list of Notepads is too long: Finale Notepad, TED Notepad, BDV Notepad, Notepad++, Notepad2, ... You just can't list them all on the top of Notepad's page. Furthermore, the Notepad's page is about a software - a text editor. Finale Notepad is not even a text editor. Now the reason, why Notebook (item of stationery) is linked there is to ease the navigation of the most common users, who are usually looking for Notepad - a stationery item. -- jsimlo(talk|cont) 13:48, 19 November 2006 (UTC)
[edit] Paint by Numbers
Hello Jsimlo! Why did you remove the text about honeycomb puzzles? They are - contrary to the link-a-pix and fill-a-pix - related to the paint-by-numbers puzzles! So I do not see any reason to remove the honeycomb puzzles. Photonsoncouch 19:09, 5 December 2006 (UTC)
- Well, I assumed that you have added that text only to post the following external link, but maybe I was wrong (See: WP:LINKS). Actually, I do not know, what honeycomb puzzles are. Why don't you write an article about them, or at least entire section within Paint by Numbers? -- jsimlo(talk|cont) 15:40, 7 December 2006 (UTC)
-
- Thank you for your answer! You wrote that you don't know what honeycomb puzzles are. I tried to explain them in the text that you removed:
-
- Honeycomb puzzles have hexagonal boxes instead of quadratic ones. The numbers are located at three (instead of two) sides of the puzzle. However, the rules stay the same.
-
- If you really want me to write an entire section about them, I will be happy to do so! In a few days I will have written the section. If you know another internet site where one can play honeycomb puzzles for free (other than puzlogical.com), then let me know. Best wishes, Photonsoncouch 14:21, 9 December 2006 (UTC)
[edit] StringFunctions
Thanks for your work on StringFunctions. Please see my comments at m:Talk:StringFunctions#Proposal for how to protect them against DOS attacks - without this, they will probably never be installed at Wikipedia, which we all want. Cheers from Guatemala, --Homunq 00:46, 14 January 2007 (UTC)
- I guess you are right. I will try to get to it ASAP. Thanks for the comments. -- jsimlo(talk|cont) 19:34, 14 January 2007 (UTC)
Thanks - that's great. However, there is still one hole. It might be covered by WP:DONT, but still: by doing something like {{#replace:aaaaa|a|bbbbbb}} you could multiply the input string by $wgStringFunctionsLimitReplace - even though your functions never actually return the result since it goes over $wgStringFunctionsLimitProduct, internally they are using that much memory, if I'm not mistaken. My kludgey but simple idea was to just not process things unless
$wgStringFunctionsLimitProduct > len(string) * len(product) / len(needle) / 2.
This limit should be easily avoidable in practice but it makes things safe against DOS. --Homunq 04:17, 9 February 2007 (UTC)
- Well, here I start to disagree. Just by now, much more stronger attack can be done by bruteforcing wikipedia's rendering engine with even a small piece of heavy wiki syntax. The parsing process is more time-consuming, than any kind of search and replace mechanism. For example, in order to attack wikipedia, I would rather create a smaller page (e.g. a template) full of heavy syntax and then force the wikipedia to render it over and over again. It would be much more efective, than doing this {{#replace:aaaaa|a|bbbbbb}}. Remember, that there is a top memory limit on every started process (about 20MB, I guess, and more than half of that amount is always consumed by the engine's objects). So, you do not need to worry about memory consumption that much. Btw: Every web server should be doing its own protection as well. -- jsimlo(talk|cont) 11:41, 9 February 2007 (UTC)
[edit] WikiSk template
Hello,
I have recently created a template which can be used on their user pages by those, who contribute to the Slovak Wikipedia as well. If you do and if you are interested, you can have a look at Template:User wikisk. Jan.Kamenicek 22:14, 2 February 2007 (UTC)
[edit] Navigation shortcuts
Hi Jsilmo,
I am from the Portuguese wikipedia, and I tried to install your navigation shortcuts there copying the text from {{Navshortcuts}} and putting in my monobook, but it didn't work. Can you help me? Do I have to have a copy of User:Jsimlo/shortcuts.js in Portuguese Wikipedia? Or do I have to change something im my code?Thank you, Thiago R Ramos 01:15, 3 February 2007 (UTC)
- That is weird. I have just created an account on the Portuguese wikipedia myself and tried it on my own. See pt:Usuário:Jsimlo/monobook.js. It works well for me when I am logged in. This leads me to a conclusion, that there may be some name conflict with other stuff you use in your pt:Usuário:Thiago R Ramos/monobook.js. So, as I have modified one function's name, try to test it again. If it still does not work, then try to find a function in User:Jsimlo/shortcuts.js that is also used (or included) in your pt:Usuário:Thiago R Ramos/monobook.js. -- jsimlo(talk|cont) 15:29, 3 February 2007 (UTC)
- Of course, the link to Wikipedia:Tools/Navigation shortcuts goes to an empty page, because there is no Wikipedia:Tools/Navigation shortcuts page on Portugese wikipedia. You need to use en:Wikipedia:Tools/Navigation shortcuts to make it work. -- jsimlo(talk|cont) 15:29, 3 February 2007 (UTC)
-
- I think I found the mistake. My monobbok has a document.write to pt:Usuário:Lijealso/quickimgdelete.js, and there is a code there that add links to the sidebar too. I'll try to correct(although I am not very good in monobooks, I learn trying and doing mistakes). Thanks, Thiago R Ramos 18:09, 3 February 2007 (UTC)
-
-
-
- It worked!! Thank you very much!! Thiago R Ramos 22:20, 3 February 2007 (UTC)
-
-
[edit] Portlet open
Cant close please help, --Darkest Hour 01:36, 6 March 2007 (UTC)
- I am sorry, but I have not understood where the problem is.. -- jsimlo(talk|cont) 14:12, 6 March 2007 (UTC)
-
- Sorry, The portlet's bottom is open. I cannot seem to be able to close it please help. Darkest Hour 16:18, 6 March 2007 (UTC)
- Code:
// [[User:Jsimlo/shortcuts.js]] document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Jsimlo/shortcuts.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); function shortcutsInit () { }
-
-
- That is weird. I have reviewed your monobook page a bit, but there seems to be no obvious problem. Unfortunatelly, I am unable to test it for you properly. Is it possible, that the navigation shortcuts extension is coliding with some other extension you use? The other extension may also be working with the potlets in the xhtml code and one of them does not consider the modifications from the other one.. Just guessing. -- jsimlo(talk|cont) 08:41, 8 March 2007 (UTC)
-
[edit] nav shortcut position
Your javascript mod to monobook is really handy. It'd be even better if I could move it to the top of the page, where the wikipedia logo and/or "Navigation" menu is currently located. Is it possible to change locations and/or suppress other sets of shortcuts? MrZaiustalk 06:51, 25 March 2007 (UTC)
- You can suppress other sets of shortcuts through your monobook.css. Simply add
#p-interaction { display: none; }
to your your monobook.css and the entire interaction portlet will disappear. -- jsimlo(talk|cont) 10:55, 31 March 2007 (UTC)
- Yes, it is also possible to to add new portlets to the top (below the wp logo), but it is not implemented within the Navigation shortcuts. I could see to it as an optional parameter.. -- jsimlo(talk|cont) 10:55, 31 March 2007 (UTC)