User:Espyo/Pikan: Difference between revisions

no edit summary
(Created page with "'''Pikan''' is a Javascript script I made for Pikipedia. The name is short for "'''Pik'''ipedia '''an'''alyzer", and it creates a new button on the editing interface that, whe...")
 
No edit summary
Line 97: Line 97:
::* You can add one more parameter to regex_check. This is a function that takes one regex match, and returns false if this match doesn't apply to match the problem with.
::* You can add one more parameter to regex_check. This is a function that takes one regex match, and returns false if this match doesn't apply to match the problem with.
:* To create your own code to find a problem, you can add the problem to the list with pikan.save_problem. Check the function in the code for a documentation comment explaining it.
:* To create your own code to find a problem, you can add the problem to the list with pikan.save_problem. Check the function in the code for a documentation comment explaining it.
:* There are more helper functions in the code. I documented all of them. At the end, you'll find code that's more or less Pikipedia-specific, so you can probably delete that.


==FAQ==
==FAQ==
;Why do I have to press search again every time I make a change?
;Why do I have to press search again every time I make a change?
:Because the positions of the old problem matches will be changed when you edit, and there's no reasonable way to keep track of them as you add and delete text.
:Because the positions of the old problem matches will be changed when you edit, and there's no reasonable way to keep track of them as you add and delete text.